/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | UserUtilsTest.java | 53 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testGetCorpUser() 55 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 62 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER, in testGetCorpUser() 65 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 75 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER); in testGetCorpUser() 77 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 84 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CLONE_PROFILE_USER, in testGetCorpUser() 87 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 101 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER, in testShouldUseParentsContacts() 104 um.myUser = MockUserManager.PRIMARY_USER.id; in testShouldUseParentsContacts() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | MissedCallNotifierImplTest.java | 155 private static final UserHandle PRIMARY_USER = UserHandle.of(0); field in MissedCallNotifierImplTest 213 cancelNotificationTestInternal(PRIMARY_USER); in testCancelNotificationInPrimaryUser() 226 missedCallNotifier.clearMissedCalls(PRIMARY_USER); in testDefaultDialerClear() 239 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testDefaultDialerIncrement() 256 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testCallLogUriSentToNotifier() 287 return makeMissedCallNotifier(fakeBuilderFactory, PRIMARY_USER); in setupMissedCallNotificationThroughDefaultDialer() 297 PRIMARY_USER); in cancelNotificationTestInternal() 326 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifyMultipleMissedCalls() 349 notificationArgumentCaptor.capture(), eq(PRIMARY_USER)); in testNotifyMultipleMissedCalls() 385 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifySingleCallInPrimaryUser() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | SatelliteAccessControllerTest.kt | 52 private const val PRIMARY_USER = 0 constant 54 private val PRIMARY_USER_HANDLE = UserHandle.of(PRIMARY_USER) 67 private val PRIMARY_USER_SMS_APP_UID1 = UserHandle.getUid(PRIMARY_USER, SMS_APP_ID1) 68 private val PRIMARY_USER_SMS_APP_UID2 = UserHandle.getUid(PRIMARY_USER, SMS_APP_ID2)
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | CloneContactsProvider2Test.java | 20 import static com.android.providers.contacts.ContactsActor.MockUserManager.PRIMARY_USER; 73 mActor.mockUserManager.setUsers(ContactsActor.MockUserManager.PRIMARY_USER, in setUp() 75 mCloneContactsActor.mockUserManager.setUsers(ContactsActor.MockUserManager.PRIMARY_USER, in setUp() 97 any(), eq(PRIMARY_USER)); in getCloneContactsProviderWithMockedCallToParent()
|
D | ContactsActor.java | 21 import static com.android.providers.contacts.ContactsActor.MockUserManager.PRIMARY_USER; 174 public static final UserInfo PRIMARY_USER = createUserInfo("primary", 0, 0, field in ContactsActor.MockUserManager 190 mUsers.add(PRIMARY_USER); // Add the primary user. in MockUserManager() 439 return PRIMARY_USER.getUserHandle(); in ContactsActor()
|
D | ContactsProvider2Test.java | 2333 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider() 2351 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider() 3103 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testQueryCorpContactsProvider()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/ |
D | CSTest.kt | 176 val PRIMARY_USER = 0 in setFeatureEnabled() constant in com.android.server.CSTest 178 PRIMARY_USER, in setFeatureEnabled() 182 val PRIMARY_USER_HANDLE = UserHandle(PRIMARY_USER) in setFeatureEnabled()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 962 return intRangesExcludingUids(PRIMARY_USER, excludedUidsList); in intRangesPrimaryExcludingUids() 1838 private static final int PRIMARY_USER = 0; field in ConnectivityServiceTest 1842 UidRange.createForUser(UserHandle.of(PRIMARY_USER)); 1843 private static final int APP1_UID = UserHandle.getUid(PRIMARY_USER, 10100); 1844 private static final int APP2_UID = UserHandle.getUid(PRIMARY_USER, 10101); 1845 private static final int VPN_UID = UserHandle.getUid(PRIMARY_USER, 10043); 1846 private static final UserInfo PRIMARY_USER_INFO = new UserInfo(PRIMARY_USER, "", 1848 private static final UserHandle PRIMARY_USER_HANDLE = new UserHandle(PRIMARY_USER); 1858 RESTRICTED_USER_INFO.restrictedProfileParentId = PRIMARY_USER; 1874 doReturn(PRIMARY_USER_INFO).when(mUserManager).getUserInfo(PRIMARY_USER); in setUp() [all …]
|