AI comparison
Grounded in the excerpts below · verify against the source
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.
-
packages/modules/NetworkStack/src/android/net/apf/ApfFilter.java 1 match in 16 · 1 match in 13 AOSP 16 android-16.0.0_r4
lines 468–480 0.61@Override public void onReceive(Context context, Intent intent) { mHandler.post(() -> { if (mIsApfShutdown) return; final PowerManager powerManagerAOSP 13 android-13.0.0_r84
lines 368–377 0.59@Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED)) { -
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
lines 1880–1887 0.60public boolean canRunInDoze() { return appHasDozeExemption || (getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0 || shouldTreatAsUserInitiatedJob()AOSP 13 android-13.0.0_r84
lines 1199–1204 0.61public boolean canRunInDoze() { return appHasDozeExemption || (getFlags() & JobInfo.FLAG_WILL_BE_FOREGROUND) != 0 || ((shouldTreatAsExpeditedJob() || startedAsElines 1263–1272 0.59boolean setDeviceNotDozingConstraintSatisfied(final long nowElapsed, boolean state, boolean whitelisted) { appHasDozeExemption = whitelisted; if (setConstraintSatisfied(CON -
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
lines 573–598 0.60@Override public void onReceive(Context context, Intent intent) { switch (intent.getAction()) { case Intent.ACTION_SCREEN_ON: onInteractiveStateAOSP 13 android-13.0.0_r84
lines 442–467 0.59@Override public void onReceive(Context context, Intent intent) { switch (intent.getAction()) { case Intent.ACTION_SCREEN_ON: onInteractiveState -
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
lines 1–60 0.60package com.android.statementservice.domain import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import androidx.work.Constraints import androidx.workAOSP 13 android-13.0.0_r84
lines 1–60 0.60package com.android.statementservice.domain import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import androidx.work.Constraints import androidx.work -
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
lines 161–186 0.59void updateIdleMode(boolean enabled) { boolean changed = false; synchronized (mLock) { if (mDeviceIdleMode != enabled) { changed = true; }AOSP 13 android-13.0.0_r84
lines 149–174 0.60void 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.
-
private Operation enqueueCheckInWorkRequest(boolean isExpedited, Duration delay) { OneTimeWorkRequest.Builder builder = new OneTimeWorkRequest.Builder(DeviceCheckInWorker.class -
@Override @TargetApi(Build.VERSION_CODES.TIRAMISU) public void onReceive(Context context, Intent intent) { if (intent == null) return; if (isDeviceIdleModeChan -
public static final class WorkFailureAlarmReceiver extends BroadcastReceiver { private final Executor mExecutor = Executors.newSingleThreadExecutor(); @Override public void on -
private void maybeEnqueueFcmRegistrationTokenRetrievalWork( @Nullable String fcmRegistrationToken) { if (Strings.isNullOrEmpty(fcmRegistrationToken) || fcmRegistrationToken.isBlank -
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.
-
@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 -
package com.android.statementservice.domain import androidx.work.Constraints import androidx.work.ExistingPeriodicWorkPolicy import androidx.work.NetworkType import androidx.work.PeriodicWorkRequestB -
@Test @FlakyTest(bugId = 185169504) public void testExemptedSyncScheduled() throws Exception { setAndAssertBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, REASON_MAIN_FORCED_BY_SYSTEM) -
fun schedulePendingIntent(am: AlarmManager, triggerTime: Long, pi: PendingIntent?) { if (Utils.isMOrLater) { // Ensure the timer fires even if the device is dozing.