Home
last modified time | relevance | path

Searched refs:userId2 (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsProviderMultiUsersTest.java108 private void assertSettingsDifferent(String type, int userId1, int userId2) throws Exception { in assertSettingsDifferent() argument
110 setSetting(type, SETTINGS, "noValue", userId2); in assertSettingsDifferent()
118 String value = getSetting(type, SETTINGS, userId2); in assertSettingsDifferent()
122 setSetting(type, SETTINGS, "value2", userId2); in assertSettingsDifferent()
130 private void assertSettingsShared(String type, int userId1, int userId2) throws Exception { in assertSettingsShared() argument
132 setSetting(type, SETTINGS, "noValue", userId2); in assertSettingsShared()
140 String value = getSetting(type, SETTINGS, userId2); in assertSettingsShared()
144 setSetting(type, SETTINGS, "value2", userId2); in assertSettingsShared()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenController.java621 final int userId2 = SplitScreenUtils.getUserId(taskId, mTaskOrganizer); in startShortcutAndTaskWithLegacyTransition() local
622 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startShortcutAndTaskWithLegacyTransition()
653 final int userId2 = SplitScreenUtils.getUserId(taskId, mTaskOrganizer); in startShortcutAndTask() local
654 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startShortcutAndTask()
692 final int userId2 = SplitScreenUtils.getUserId(taskId, mTaskOrganizer); in startIntentAndTaskWithLegacyTransition() local
693 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentAndTaskWithLegacyTransition()
721 final int userId2 = SplitScreenUtils.getUserId(taskId, mTaskOrganizer); in startIntentAndTask() local
723 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentAndTask()
750 PendingIntent pendingIntent2, int userId2, @Nullable ShortcutInfo shortcutInfo2, in startIntentsWithLegacyTransition() argument
758 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentsWithLegacyTransition()
[all …]
DISplitScreen.aidl137 int userId2, in ShortcutInfo shortcutInfo2, in Bundle options2, int splitPosition, in startIntentsWithLegacyTransition() argument
145 int userId2, in ShortcutInfo shortcutInfo2, in Bundle options2, int splitPosition, in startIntents() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java284 int userId2 = 44; in getUserSerialNumbers_returnsSerialNumbers() local
288 mRecoverableKeyStoreDb.setUserSerialNumber(userId2, serialNumber2); in getUserSerialNumbers_returnsSerialNumbers()
292 assertEquals(serialNumber2, mRecoverableKeyStoreDb.getUserSerialNumbers().get(userId2)); in getUserSerialNumbers_returnsSerialNumbers()
330 int userId2 = 44; in getRemoteBadGuessCounter_returnsStoredValue() local
335 mRecoverableKeyStoreDb.setBadRemoteGuessCounter(userId2, badGuessCounter2); in getRemoteBadGuessCounter_returnsStoredValue()
338 assertEquals(badGuessCounter2, mRecoverableKeyStoreDb.getBadRemoteGuessCounter(userId2)); in getRemoteBadGuessCounter_returnsStoredValue()
344 int userId2 = 44; in getBadRemoteGuessCounter_returnsStoredValue() local
349 mRecoverableKeyStoreDb.setBadRemoteGuessCounter(userId2, badGuessCounter2); in getBadRemoteGuessCounter_returnsStoredValue()
352 assertEquals(badGuessCounter2, mRecoverableKeyStoreDb.getBadRemoteGuessCounter(userId2)); in getBadRemoteGuessCounter_returnsStoredValue()
927 int userId2 = 23; in setRecoveryServiceMetadataEntry_allowsTwoUsersToHaveTheSameUid() local
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DMultiInstanceHelper.kt124 userId1: Int, userId2: Int): Boolean { in samePackage()
125 return (packageName1 != null && packageName1 == packageName2) && (userId1 == userId2) in samePackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
DShellRecentTaskListProviderTest.kt265 userId2: Int = 0, in createTaskPair()
270 createTaskInfo(taskId2, userId2, isVisible), in createTaskPair()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyService.java949 forAllUsers(userId2 -> { in setToggleSensorPrivacyStateForProfileGroup()
950 if (parentId == mUserManagerInternal.getProfileParentId(userId2)) { in setToggleSensorPrivacyStateForProfileGroup()
951 setToggleSensorPrivacyState(userId2, source, sensor, state); in setToggleSensorPrivacyStateForProfileGroup()
1146 forAllUsers(userId2 -> { in setToggleSensorPrivacyForProfileGroup()
1147 if (parentId == mUserManagerInternal.getProfileParentId(userId2)) { in setToggleSensorPrivacyForProfileGroup()
1148 setToggleSensorPrivacy(userId2, source, sensor, enable); in setToggleSensorPrivacyForProfileGroup()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java2799 final int userId2 = 12; in testHasAccessConsidersUserVisibilityForBackgroundVisibleUsers() local
2801 final int uid2 = UserHandle.getUid(userId2, appId); in testHasAccessConsidersUserVisibilityForBackgroundVisibleUsers()
2806 doReturn(false).when(mWm.mUmInternal).isUserVisible(userId2, displayId); in testHasAccessConsidersUserVisibilityForBackgroundVisibleUsers()
2816 final int userId2 = 12; in testHasAccessIgnoresUserVisibilityForPrivateDisplay() local
2817 final int uid2 = UserHandle.getUid(userId2, appId); in testHasAccessIgnoresUserVisibilityForPrivateDisplay()
2826 verify(mWm.mUmInternal, never()).isUserVisible(userId2, displayId); in testHasAccessIgnoresUserVisibilityForPrivateDisplay()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java2971 int userId2 = 456;
2975 userInfo2.id = userId2;
2977 when(mUserManager.getUserSerialNumber(userId2)).thenReturn(45678);
3018 int userId2 = 456;
3022 userInfo2.id = userId2;
3024 when(mUserManager.getUserSerialNumber(userId2)).thenReturn(45678);
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java5008 int userId2 = 12; //work profile in testSetNASMigrationDoneAndResetDefault_multiProfile() local
5010 setNASMigrationDone(false, userId2); in testSetNASMigrationDoneAndResetDefault_multiProfile()
5011 setUsers(new int[]{userId1, userId2}); in testSetNASMigrationDoneAndResetDefault_multiProfile()
5012 when(mUm.isManagedProfile(userId2)).thenReturn(true); in testSetNASMigrationDoneAndResetDefault_multiProfile()
5013 when(mUm.getProfileIds(userId1, false)).thenReturn(new int[]{userId1, userId2}); in testSetNASMigrationDoneAndResetDefault_multiProfile()
5017 assertTrue(mService.isNASMigrationDone(userId2)); in testSetNASMigrationDoneAndResetDefault_multiProfile()
5023 int userId2 = 12; in testSetNASMigrationDoneAndResetDefault_multiUser() local
5025 setNASMigrationDone(false, userId2); in testSetNASMigrationDoneAndResetDefault_multiUser()
5026 setUsers(new int[]{userId1, userId2}); in testSetNASMigrationDoneAndResetDefault_multiUser()
5028 when(mUm.getProfileIds(userId2, false)).thenReturn(new int[]{userId2}); in testSetNASMigrationDoneAndResetDefault_multiUser()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DComputerEngine.java4233 final int userId2 = UserHandle.getUserId(uid2); in checkUidSignaturesForAllUsers() local
4236 enforceCrossUserPermission(callingUid, userId2, false /* requireFullPermission */, in checkUidSignaturesForAllUsers()
4241 getSigningDetailsAndFilterAccess(uid2, callingUid, userId2); in checkUidSignaturesForAllUsers()