Home
last modified time | relevance | path

Searched refs:USER_ID (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java44 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 …]
DAppStandbyControllerTests.java93 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 …]
DAppTimeLimitControllerTests.java49 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/
DCarrierAppUtilsTest.java54 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/
DWorkLockActivityTest.java51 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()
DWorkLockActivityControllerTest.java60 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/
DTransferOwnershipMetadataManagerTest.java65 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/
DSenderFilter.java73 return USER_ID;
105 private static final Filter USER_ID = new Filter() { field in SenderFilter
/frameworks/base/cmds/uiautomator/cmds/uiautomator/
Duiautomator39 if [ ${USER_ID} -ne 0 ]; then
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java67 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/
DSharedUserSetting.java67 proto.write(PackageServiceDumpProto.SharedUserProto.USER_ID, userId); in writeToProto()
/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java167 proto.write(ConnectionRecordProto.USER_ID, binding.client.userId); in writeToProto()
DBroadcastRecord.java344 proto.write(BroadcastRecordProto.USER_ID, userId); in writeToProto()
DProcessRecord.java694 proto.write(ProcessRecordProto.USER_ID, userId); in writeToProto()
DActivityRecord.java123 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/
DNetworkPolicyManagerServiceTest.java258 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/
DUsbUserSettingsManager.java312 dump.write("user_id", UsbUserSettingsManagerProto.USER_ID, mUser.getIdentifier()); in dump()
DUsbProfileGroupSettingsManager.java165 dump.write("user_id", UserPackageProto.USER_ID, user.getIdentifier()); in dump()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DContentObserverController.java471 proto.write(StateControllerProto.ContentObserverController.Observer.USER_ID, userId); in dumpControllerStateLocked()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java247 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/
DAppStateTracker.java1349 proto.write(ExemptedPackage.USER_ID, mExemptedPackages.keyAt(i)); in dumpProto()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java1452 proto.write(FingerprintUserStatsProto.USER_ID, userId); in dumpProto()
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java816 dumpStream.write("user_id", PrintUserStateProto.USER_ID, mUserId); in dump()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java111 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/
DSettingsProtoDumpUtil.java68 proto.write(UserSettingsProto.USER_ID, user.getIdentifier()); in dumpProtoUserSettingsLocked()

12