/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppIdleHistoryTests.java | 44 final static int USER_ID = 0; field in AppIdleHistoryTests 67 aih.writeAppIdleTimes(USER_ID); in testFilesCreation() 69 assertTrue(new File(new File(mStorageDir, "users/" + USER_ID), in testFilesCreation() 97 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 1000, STANDBY_BUCKET_ACTIVE, in testBuckets() 100 assertFalse(aih.isIdle(PACKAGE_1, USER_ID, 2000)); in testBuckets() 102 aih.setAppStandbyBucket(PACKAGE_2, USER_ID, 2000, STANDBY_BUCKET_ACTIVE, in testBuckets() 104 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 3000, STANDBY_BUCKET_RARE, in testBuckets() 107 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 3000), STANDBY_BUCKET_RARE); in testBuckets() 108 assertEquals(aih.getAppStandbyBucket(PACKAGE_2, USER_ID, 3000), STANDBY_BUCKET_ACTIVE); in testBuckets() 109 assertEquals(aih.getAppStandbyReason(PACKAGE_1, USER_ID, 3000), REASON_MAIN_TIMEOUT); in testBuckets() [all …]
|
D | AppStandbyControllerTests.java | 93 private static final int USER_ID = 0; field in AppStandbyControllerTests 188 return new int[] {USER_ID}; in getRunningUserIds() 273 controller.initializeDefaultsForSystemApps(USER_ID); in setupController() 279 controller.checkIdleStates(USER_ID); in setupController() 281 controller.getAppStandbyBucket(PACKAGE_EXEMPTED_1, USER_ID, in setupController() 284 controller.getAppStandbyBucket(PACKAGE_1, USER_ID, in setupController() 370 mController.checkIdleStates(USER_ID); in testCharging() 401 controller.checkIdleStates(USER_ID); in assertTimeout() 403 controller.getAppStandbyBucket(PACKAGE_1, USER_ID, mInjector.mElapsedRealtime, in assertTimeout() 414 controller.reportEvent(ev, elapsedTime, USER_ID); in reportEvent() [all …]
|
D | AppTimeLimitControllerTests.java | 49 private static final int USER_ID = 10; field in AppTimeLimitControllerTests 147 mController.removeObserver(UID, OBS_ID1, USER_ID); in testRemoveObserver() 158 mController.getObserverGroup(OBS_ID1, USER_ID).timeLimit == TIME_10_MIN); in testObserverReAdd() 159 mController.removeObserver(UID, OBS_ID1, USER_ID); in testObserverReAdd() 173 long timeRemaining = mController.getObserverGroup(OBS_ID1, USER_ID).timeRemaining; in testAccumulation() 180 timeRemaining = mController.getObserverGroup(OBS_ID1, USER_ID).timeRemaining; in testAccumulation() 192 assertEquals(0, mController.getObserverGroup(OBS_ID1, USER_ID).timeRemaining); in testAccumulation() 276 mController.addObserver(ANOTHER_UID, OBS_ID11, GROUP1, TIME_30_MIN, null, USER_ID); in testMaxObserverLimit() 300 mController.moveToForeground(packageName, "class", USER_ID); in moveToForeground() 304 mController.moveToBackground(packageName, "class", USER_ID); in moveToBackground() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 54 private static final int USER_ID = 12345; field in CarrierAppUtilsTest 74 mContentResolver, Settings.Secure.CARRIER_APPS_HANDLED, 0, USER_ID); in setUp() 81 mTelephonyManager, mContentResolver, USER_ID, new ArraySet<>(), in testDisableCarrierAppsUntilPrivileged_EmptyList() 90 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS, USER_ID)).thenReturn(null); in testDisableCarrierAppsUntilPrivileged_MissingApp() 94 mTelephonyManager, mContentResolver, USER_ID, in testDisableCarrierAppsUntilPrivileged_MissingApp() 110 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS, USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 112 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 134 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS, USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 138 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 143 new String[] {appInfo.packageName}, USER_ID); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityTest.java | 51 private static final @UserIdInt int USER_ID = 270; field in WorkLockActivityTest 85 when(mDevicePolicyManager.getOrganizationColorForUser(eq(USER_ID))).thenReturn(orgColor); in testBackgroundAlwaysOpaque() 95 .putExtra(Intent.EXTRA_USER_ID, USER_ID) in testBackgroundAlwaysOpaque() 102 .putExtra(Intent.EXTRA_USER_ID, USER_ID) in testBackgroundAlwaysOpaque() 109 .putExtra(Intent.EXTRA_USER_ID, USER_ID)); in testBackgroundAlwaysOpaque()
|
D | WorkLockActivityControllerTest.java | 60 private static final int USER_ID = 333; field in WorkLockActivityControllerTest 92 mTaskStackListener.onTaskProfileLocked(TASK_ID, USER_ID); in testOverlayStartedWhenLocked() 105 mTaskStackListener.onTaskProfileLocked(TASK_ID, USER_ID); in testRemoveTaskOnFailureToStartOverlay()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | TransferOwnershipMetadataManagerTest.java | 65 private final static int USER_ID = 123; field in TransferOwnershipMetadataManagerTest 67 TARGET_COMPONENT, USER_ID, ADMIN_TYPE_DEVICE_OWNER); 94 + "<" + TAG_USER_ID + ">" + USER_ID + "</" + TAG_USER_ID + ">\n" in testFileContentValid()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | SenderFilter.java | 73 return USER_ID; 105 private static final Filter USER_ID = new Filter() { field in SenderFilter
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/ |
D | uiautomator | 39 if [ ${USER_ID} -ne 0 ]; then
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 67 final int USER_ID = 10; in testPasswordBasedSyntheticPassword() local 73 null, USER_ID); in testPasswordBasedSyntheticPassword() 76 USER_ID); in testPasswordBasedSyntheticPassword() 79 mGateKeeperService, handle, PASSWORD, USER_ID, null); in testPasswordBasedSyntheticPassword() 83 BADPASSWORD, USER_ID, null); in testPasswordBasedSyntheticPassword()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SharedUserSetting.java | 67 proto.write(PackageServiceDumpProto.SharedUserProto.USER_ID, userId); in writeToProto()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ConnectionRecord.java | 167 proto.write(ConnectionRecordProto.USER_ID, binding.client.userId); in writeToProto()
|
D | BroadcastRecord.java | 344 proto.write(BroadcastRecordProto.USER_ID, userId); in writeToProto()
|
D | ProcessRecord.java | 694 proto.write(ProcessRecordProto.USER_ID, userId); in writeToProto()
|
D | ActivityRecord.java | 123 import static com.android.server.wm.IdentifierProto.USER_ID; 3024 proto.write(USER_ID, userId); in writeIdentifierToProto()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 258 private static final int USER_ID = 0; field in NetworkPolicyManagerServiceTest 273 private static final int UID_A = UserHandle.getUid(USER_ID, APP_ID_A); 274 private static final int UID_B = UserHandle.getUid(USER_ID, APP_ID_B); 275 private static final int UID_C = UserHandle.getUid(USER_ID, APP_ID_C); 276 private static final int UID_D = UserHandle.getUid(USER_ID, APP_ID_D); 277 private static final int UID_E = UserHandle.getUid(USER_ID, APP_ID_E); 278 private static final int UID_F = UserHandle.getUid(USER_ID, APP_ID_F);
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbUserSettingsManager.java | 312 dump.write("user_id", UsbUserSettingsManagerProto.USER_ID, mUser.getIdentifier()); in dump()
|
D | UsbProfileGroupSettingsManager.java | 165 dump.write("user_id", UserPackageProto.USER_ID, user.getIdentifier()); in dump()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ContentObserverController.java | 471 proto.write(StateControllerProto.ContentObserverController.Observer.USER_ID, userId); in dumpControllerStateLocked()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 247 proto.write(ServiceProto.USER_ID, userId); in dump() 1170 proto.write(ManagedServiceInfoProto.USER_ID, userid); in writeToProto()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 1349 proto.write(ExemptedPackage.USER_ID, mExemptedPackages.keyAt(i)); in dumpProto()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 1452 proto.write(FingerprintUserStatsProto.USER_ID, userId); in dumpProto()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | UserState.java | 816 dumpStream.write("user_id", PrintUserStateProto.USER_ID, mUserId); in dump()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowState.java | 111 import static com.android.server.wm.IdentifierProto.USER_ID; 3296 proto.write(USER_ID, UserHandle.getUserId(mOwnerUid)); in writeIdentifierToProto()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProtoDumpUtil.java | 68 proto.write(UserSettingsProto.USER_ID, user.getIdentifier()); in dumpProtoUserSettingsLocked()
|