/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppIdleHistoryTests.java | 43 final static int USER_ID = 0; field in AppIdleHistoryTests 66 aih.writeAppIdleTimes(USER_ID); in testFilesCreation() 68 assertTrue(new File(new File(mStorageDir, "users/" + USER_ID), in testFilesCreation() 96 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 1000, STANDBY_BUCKET_ACTIVE, in testBuckets() 99 assertFalse(aih.isIdle(PACKAGE_1, USER_ID, 2000)); in testBuckets() 101 aih.setAppStandbyBucket(PACKAGE_2, USER_ID, 2000, STANDBY_BUCKET_ACTIVE, in testBuckets() 103 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 3000, STANDBY_BUCKET_RARE, in testBuckets() 106 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 3000), STANDBY_BUCKET_RARE); in testBuckets() 107 assertEquals(aih.getAppStandbyBucket(PACKAGE_2, USER_ID, 3000), STANDBY_BUCKET_ACTIVE); in testBuckets() 108 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 | 60 private static final int USER_ID = 12345; field in CarrierAppUtilsTest 79 mContentResolver, Settings.Secure.CARRIER_APPS_HANDLED, 0, USER_ID); in setUp() 86 mTelephonyManager, mContentResolver, USER_ID, new ArraySet<>(), in testDisableCarrierAppsUntilPrivileged_EmptyList() 98 USER_ID)).thenReturn(null); in testDisableCarrierAppsUntilPrivileged_MissingApp() 102 mTelephonyManager, mContentResolver, USER_ID, in testDisableCarrierAppsUntilPrivileged_MissingApp() 121 USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 123 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 152 USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 156 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 162 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/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | SettingsWrapperTest.kt | 34 private const val USER_ID = 0 constant 54 val decoded = wrapper.decode(value, USER_ID) in testDecodeUnnecessary() 59 verify(migration).migrate(value, USER_ID) in testDecodeUnnecessary() 70 val decoded = wrapper.decode(value, USER_ID) in testDecodeJSON() 82 val decoded = wrapper.decode(value, USER_ID) in testDecodeJSONWithoutClockField() 86 verify(migration, never()).migrate(value, USER_ID) in testDecodeJSONWithoutClockField() 91 assertThat(wrapper.decode(null, USER_ID)).isNull() in testDecodeNullJSON()
|
/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/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 73 final int USER_ID = 10; in testPasswordBasedSyntheticPassword() local 79 null, USER_ID); in testPasswordBasedSyntheticPassword() 82 PASSWORD_QUALITY_ALPHABETIC, USER_ID); in testPasswordBasedSyntheticPassword() 85 mGateKeeperService, handle, password, USER_ID, null); in testPasswordBasedSyntheticPassword() 90 badPassword, USER_ID, null); in testPasswordBasedSyntheticPassword()
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/ |
D | uiautomator | 39 if [ ${USER_ID} -ne 0 ]; then
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 260 private static final int USER_ID = 0; field in NetworkPolicyManagerServiceTest 276 private static final int UID_A = UserHandle.getUid(USER_ID, APP_ID_A); 277 private static final int UID_B = UserHandle.getUid(USER_ID, APP_ID_B); 278 private static final int UID_C = UserHandle.getUid(USER_ID, APP_ID_C); 279 private static final int UID_D = UserHandle.getUid(USER_ID, APP_ID_D); 280 private static final int UID_E = UserHandle.getUid(USER_ID, APP_ID_E); 281 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 | 381 dump.write("user_id", UsbUserSettingsManagerProto.USER_ID, mUser.getIdentifier()); in dump()
|
D | UsbProfileGroupSettingsManager.java | 166 dump.write("user_id", UserPackageProto.USER_ID, user.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 | 260 proto.write(ServiceProto.USER_ID, userId); in dump() 1357 proto.write(ManagedServiceInfoProto.USER_ID, userid); in writeToProto()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 174 private static final int USER_ID = 10; field in KeyValueBackupTaskTest 229 USER_ID, mContext, mBaseStateDir, mDataDir, mTransportManager)); in setUp() 2546 new PackageManagerBackupAgent(mApplication.getPackageManager(), USER_ID); in createPmAgent() 2851 super(packageManager, USER_ID); in ThrowingPackageManagerBackupAgent()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 1351 proto.write(ExemptedPackage.USER_ID, mExemptedPackages.keyAt(i)); in dumpProto()
|
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/ |
D | FingerprintService.java | 1050 proto.write(FingerprintUserStatsProto.USER_ID, userId); in dumpProto()
|