/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 | 94 private static final int USER_ID = 0; field in AppStandbyControllerTests 201 return new int[] {USER_ID}; in getRunningUserIds() 293 controller.initializeDefaultsForSystemApps(USER_ID); in setupController() 299 controller.checkIdleStates(USER_ID); in setupController() 301 controller.getAppStandbyBucket(PACKAGE_EXEMPTED_1, USER_ID, in setupController() 304 controller.getAppStandbyBucket(PACKAGE_1, USER_ID, in setupController() 403 mController.checkIdleStates(USER_ID); in testCharging() 509 controller.checkIdleStates(USER_ID); in assertTimeout() 511 controller.getAppStandbyBucket(PACKAGE_1, USER_ID, mInjector.mElapsedRealtime, in assertTimeout() 522 controller.reportEvent(ev, elapsedTime, USER_ID); in reportEvent() [all …]
|
D | AppTimeLimitControllerTests.java | 55 private static final int USER_ID = 10; field in AppTimeLimitControllerTests 190 mController.removeAppUsageObserver(UID, OBS_ID1, USER_ID); in testAppUsageObserver_RemoveObserver() 199 mController.removeUsageSessionObserver(UID, OBS_ID1, USER_ID); in testUsageSessionObserver_RemoveObserver() 208 mController.removeAppUsageLimitObserver(UID, OBS_ID1, USER_ID); in testAppUsageLimitObserver_RemoveObserver() 217 mController.removeAppUsageObserver(UID, OBS_ID1, USER_ID); in testAppUsageObserver_RemoveMissingObserver() 235 mController.removeUsageSessionObserver(UID, OBS_ID1, USER_ID); in testUsageSessionObserver_RemoveMissingObserver() 253 mController.removeAppUsageLimitObserver(UID, OBS_ID1, USER_ID); in testAppUsageLimitObserver_RemoveMissingObserver() 274 mController.removeAppUsageObserver(UID, OBS_ID1, USER_ID); in testAppUsageObserver_ObserverReAdd() 286 mController.removeUsageSessionObserver(UID, OBS_ID1, USER_ID); in testUsageSessionObserver_ObserverReAdd() 298 mController.removeAppUsageLimitObserver(UID, OBS_ID1, USER_ID); in testAppUsageLimitObserver_ObserverReAdd() [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() 92 USER_ID)).thenReturn(null); in testDisableCarrierAppsUntilPrivileged_MissingApp() 96 mTelephonyManager, mContentResolver, USER_ID, in testDisableCarrierAppsUntilPrivileged_MissingApp() 115 USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 117 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 142 USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 146 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 152 new String[] {appInfo.packageName}, USER_ID); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | CleanupManagerTest.java | 46 private static final int USER_ID = 10; field in CleanupManagerTest 71 when(mUserManager.getSerialNumberForUser(eq(UserHandle.of(USER_ID)))) in registerRecoveryAgent_unknownUser_storesInDb() 76 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_unknownUser_storesInDb() 79 verify(mDatabase).setUserSerialNumber(USER_ID, USER_SERIAL_NUMBER); in registerRecoveryAgent_unknownUser_storesInDb() 87 when(mUserManager.getSerialNumberForUser(eq(UserHandle.of(USER_ID)))) in registerRecoveryAgent_registersSameUser_doesntChangeDb() 90 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_registersSameUser_doesntChangeDb() 91 mManager.registerRecoveryAgent(USER_ID, UID); // ignored. in registerRecoveryAgent_registersSameUser_doesntChangeDb() 93 verify(mDatabase, times(1)).setUserSerialNumber(USER_ID, USER_SERIAL_NUMBER); in registerRecoveryAgent_registersSameUser_doesntChangeDb() 99 knownSerialNumbers.put(USER_ID, USER_SERIAL_NUMBER); in verifyKnownUsers_newSerialNumber_deletesData() 103 when(mDatabase.getRecoveryAgents(USER_ID)).thenReturn(recoveryAgents); in verifyKnownUsers_newSerialNumber_deletesData() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | SetupObserverTest.java | 58 private static final int USER_ID = 10; field in SetupObserverTest 75 USER_ID, in setUp() 89 changeSetupCompleteSettingForUser(true, USER_ID); in testOnChange_whenNewlySetup_updatesState() 101 changeSetupCompleteSettingForUser(false, USER_ID); in testOnChange_whenPreviouslySetup_doesNotUpdateState() 114 changeSetupCompleteSettingForUser(false, USER_ID); in testOnChange_whenNotPreviouslySetup_doesNotUpdateStateIfNoChange() 126 changeSetupCompleteSettingForUser(true, USER_ID); in testOnChange_whenNewlySetup_schedulesBackup() 138 USER_ID))) in testOnChange_whenNewlySetup_schedulesBackup() 145 USER_ID))) in testOnChange_whenNewlySetup_schedulesBackup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityTest.java | 52 private static final @UserIdInt int USER_ID = 270; field in WorkLockActivityTest 86 when(mDevicePolicyManager.getOrganizationColorForUser(eq(USER_ID))).thenReturn(orgColor); in testBackgroundAlwaysOpaque() 96 .putExtra(Intent.EXTRA_USER_ID, USER_ID) in testBackgroundAlwaysOpaque() 103 .putExtra(Intent.EXTRA_USER_ID, USER_ID) in testBackgroundAlwaysOpaque() 110 .putExtra(Intent.EXTRA_USER_ID, USER_ID)); in testBackgroundAlwaysOpaque()
|
D | WorkLockActivityControllerTest.java | 61 private static final int USER_ID = 333; field in WorkLockActivityControllerTest 94 mTaskStackListener.onTaskProfileLocked(TASK_ID, USER_ID); in testOverlayStartedWhenLocked() 107 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/robotests/backup/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 97 private static final int USER_ID = 10; field in UserBackupManagerServiceTest 1000 USER_ID, in testCreateAndInitializeService_postRegisterTransports() 1021 USER_ID, in testCreateAndInitializeService_doesNotRegisterTransportsSynchronously() 1040 USER_ID, in testCreateAndInitializeService_withNullContext_throws() 1056 USER_ID, in testCreateAndInitializeService_withNullTrampoline_throws() 1072 USER_ID, in testCreateAndInitializeService_withNullBackupThread_throws() 1088 USER_ID, in testCreateAndInitializeService_withNullStateDir_throws() 1108 USER_ID, in testCreateAndInitializeService_withNullDataDir_throws() 1128 USER_ID, in testCreateAndInitializeService_withNullTransportManager_throws() 1146 USER_ID, in testCreateAndInitializeService_registersPackageTrackingReceiver() [all …]
|
/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 | 72 final int USER_ID = 10; in testPasswordBasedSyntheticPassword() local 78 null, USER_ID); in testPasswordBasedSyntheticPassword() 81 PASSWORD_QUALITY_ALPHABETIC, USER_ID); in testPasswordBasedSyntheticPassword() 84 mGateKeeperService, handle, password, USER_ID, null); in testPasswordBasedSyntheticPassword() 89 badPassword, USER_ID, null); in testPasswordBasedSyntheticPassword()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 259 private static final int USER_ID = 0; field in NetworkPolicyManagerServiceTest 275 private static final int UID_A = UserHandle.getUid(USER_ID, APP_ID_A); 276 private static final int UID_B = UserHandle.getUid(USER_ID, APP_ID_B); 277 private static final int UID_C = UserHandle.getUid(USER_ID, APP_ID_C); 278 private static final int UID_D = UserHandle.getUid(USER_ID, APP_ID_D); 279 private static final int UID_E = UserHandle.getUid(USER_ID, APP_ID_E); 280 private static final int UID_F = UserHandle.getUid(USER_ID, APP_ID_F);
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ConnectionRecord.java | 241 proto.write(ConnectionRecordProto.USER_ID, binding.client.userId); in writeToProto()
|
D | BroadcastRecord.java | 422 proto.write(BroadcastRecordProto.USER_ID, userId); in writeToProto()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbUserSettingsManager.java | 378 dump.write("user_id", UsbUserSettingsManagerProto.USER_ID, mUser.getIdentifier()); in dump()
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | RoleUserState.java | 548 dumpOutputStream.write("user_id", RoleUserStateProto.USER_ID, mUserId); 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 | 257 proto.write(ServiceProto.USER_ID, userId); in dump() 1325 proto.write(ManagedServiceInfoProto.USER_ID, userid); in writeToProto()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 175 private static final int USER_ID = 10; field in KeyValueBackupTaskTest 230 USER_ID, mContext, mBaseStateDir, mDataDir, mTransportManager)); in setUp() 2547 new PackageManagerBackupAgent(mApplication.getPackageManager(), USER_ID); in createPmAgent() 2852 super(packageManager, USER_ID); in ThrowingPackageManagerBackupAgent()
|
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/ |
D | FingerprintService.java | 1049 proto.write(FingerprintUserStatsProto.USER_ID, userId); in dumpProto()
|
/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/biometrics/face/ |
D | FaceService.java | 1156 proto.write(FaceUserStatsProto.USER_ID, userId); in dumpProto()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityRecord.java | 138 import static com.android.server.wm.IdentifierProto.USER_ID; 3837 proto.write(USER_ID, mUserId); in writeIdentifierToProto()
|