Single-version search →
5 files in both · 5 only in 16 · 4 only in 13 · 1412 ms

in both Files changed across versions

These files exist in both AOSP 16 and 13 and matched the query. Compare the excerpts side‑by‑side to see how they evolved.

  1. packages/modules/NetworkStack/src/android/net/apf/ApfFilter.java 1 match in 16 · 1 match in 13

    AOSP 16 android-16.0.0_r4

    java
    @Override
            public void onReceive(Context context, Intent intent) {
                mHandler.post(() -> {
                    if (mIsApfShutdown) return;
                    final PowerManager powerManager 

    AOSP 13 android-13.0.0_r84

    java
    @Override
            public void onReceive(Context context, Intent intent) {
                String action = intent.getAction();
                if (action.equals(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED)) {
  2. frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/JobStatus.java 1 match in 16 · 2 matches in 13

    AOSP 16 android-16.0.0_r4

    java
    public boolean canRunInDoze() {
            return appHasDozeExemption
                    || (getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0
                    || shouldTreatAsUserInitiatedJob()
               

    AOSP 13 android-13.0.0_r84

    java
    public boolean canRunInDoze() {
            return appHasDozeExemption
                    || (getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0
                    || ((shouldTreatAsExpeditedJob() || startedAsE
    java
    boolean setDeviceNotDozingConstraintSatisfied(final long nowElapsed,
                boolean state, boolean whitelisted) {
            appHasDozeExemption = whitelisted;
            if (setConstraintSatisfied(CON
  3. frameworks/base/apex/jobscheduler/service/java/com/android/server/job/JobConcurrencyManager.java 1 match in 16 · 1 match in 13

    AOSP 16 android-16.0.0_r4

    java
    @Override
            public void onReceive(Context context, Intent intent) {
                switch (intent.getAction()) {
                    case Intent.ACTION_SCREEN_ON:
                        onInteractiveState

    AOSP 13 android-13.0.0_r84

    java
    @Override
            public void onReceive(Context context, Intent intent) {
                switch (intent.getAction()) {
                    case Intent.ACTION_SCREEN_ON:
                        onInteractiveState
  4. frameworks/base/packages/StatementService/src/com/android/statementservice/domain/BootCompletedReceiver.kt 1 match in 16 · 1 match in 13

    AOSP 16 android-16.0.0_r4

    kotlin
    package com.android.statementservice.domain
    
    import android.content.BroadcastReceiver
    import android.content.Context
    import android.content.Intent
    import androidx.work.Constraints
    import androidx.work

    AOSP 13 android-13.0.0_r84

    kotlin
    package com.android.statementservice.domain
    
    import android.content.BroadcastReceiver
    import android.content.Context
    import android.content.Intent
    import androidx.work.Constraints
    import androidx.work
  5. frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/DeviceIdleJobsController.java 1 match in 16 · 1 match in 13

    AOSP 16 android-16.0.0_r4

    java
    void updateIdleMode(boolean enabled) {
            boolean changed = false;
            synchronized (mLock) {
                if (mDeviceIdleMode != enabled) {
                    changed = true;
                }
         

    AOSP 13 android-13.0.0_r84

    java
    void updateIdleMode(boolean enabled) {
            boolean changed = false;
            synchronized (mLock) {
                if (mDeviceIdleMode != enabled) {
                    changed = true;
                }
         

only in 16 Files matched only in AOSP 16

These files matched the query in AOSP 16 but didn't appear in the top results for AOSP 13. They may have been removed, renamed, or refactored beyond the query's reach.

  1. Lines 483–495 · java · AOSP 16
    private Operation enqueueCheckInWorkRequest(boolean isExpedited, Duration delay) {
            OneTimeWorkRequest.Builder builder =
                    new OneTimeWorkRequest.Builder(DeviceCheckInWorker.class
  2. Lines 184–200 · java · AOSP 16
    @Override
            @TargetApi(Build.VERSION_CODES.TIRAMISU)
            public void onReceive(Context context, Intent intent) {
                if (intent == null) return;
    
                if (isDeviceIdleModeChan
  3. Lines 93–172 · java · AOSP 16
    public static final class WorkFailureAlarmReceiver extends BroadcastReceiver {
            private final Executor mExecutor = Executors.newSingleThreadExecutor();
    
            @Override
            public void on
  4. Lines 226–251 · java · AOSP 16
    private void maybeEnqueueFcmRegistrationTokenRetrievalWork(
                @Nullable String fcmRegistrationToken) {
            if (Strings.isNullOrEmpty(fcmRegistrationToken) || fcmRegistrationToken.isBlank
  5. Lines 3275–3285 · java · AOSP 16
    void setProcessAnimatingWhileDozing(WindowProcessController proc) {
            if (proc == null) return;
            // Set to activity manager directly to make sure the state can be seen by the subsequent
     

only in 13 Files matched only in AOSP 13

These files matched the query in AOSP 13 but didn't appear in the top results for AOSP 16. They may be new in this version, or refactored from older files that no longer match the query.

  1. Lines 743–754 · java · AOSP 13
    @Override public void onReceive(Context context, Intent intent) {
                // When coming out of a deep idle, we will add in some delay before we allow
                // the system to settle down and 
  2. Lines 1–78 · kotlin · AOSP 13
    package com.android.statementservice.domain
    
    import androidx.work.Constraints
    import androidx.work.ExistingPeriodicWorkPolicy
    import androidx.work.NetworkType
    import androidx.work.PeriodicWorkRequestB
  3. Lines 1815–1833 · java · AOSP 13
    @Test
        @FlakyTest(bugId = 185169504)
        public void testExemptedSyncScheduled() throws Exception {
            setAndAssertBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, REASON_MAIN_FORCED_BY_SYSTEM)
  4. Lines 800–807 · kotlin · AOSP 13
    fun schedulePendingIntent(am: AlarmManager, triggerTime: Long, pi: PendingIntent?) {
                if (Utils.isMOrLater) {
                    // Ensure the timer fires even if the device is dozing.
           

Want this comparison inside Claude Code, Cursor, or Cline? MCP setup →