Home
last modified time | relevance | path

Searched refs:isPrimary (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsCbEtwsInfoTest.java38 assertFalse(info.isPrimary()); in testIsPrimary()
42 assertTrue(info2.isPrimary()); in testIsPrimary()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/annotations/enterprise/
DEnsureHasDelegate.java64 boolean isPrimary() default false; in isPrimary() method
DEnsureHasProfileOwner.java53 boolean isPrimary() default false; in isPrimary() method
DEnsureHasDeviceOwner.java64 boolean isPrimary() default false; in isPrimary() method
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/annotations/parameterized/
DIncludeRunOnNonAffiliatedDeviceOwnerSecondaryUser.java39 @EnsureHasDeviceOwner(isPrimary = true, affiliationIds = {})
DIncludeRunOnProfileOwnerPrimaryUser.java41 @EnsureHasProfileOwner(isPrimary = true)
DIncludeRunOnDeviceOwnerUser.java41 @EnsureHasDeviceOwner(isPrimary = true)
DIncludeRunOnUnaffiliatedProfileOwnerSecondaryUser.java41 @EnsureHasProfileOwner(affiliationIds = "not-affiliated", isPrimary = true)
DIncludeRunOnAffiliatedDeviceOwnerSecondaryUser.java40 @EnsureHasDeviceOwner(isPrimary = true, affiliationIds = "affiliated")
DIncludeRunOnAffiliatedProfileOwnerSecondaryUser.java41 @EnsureHasProfileOwner(affiliationIds = "affiliated", isPrimary = true)
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserReference.java321 public Boolean isPrimary() { in isPrimary() method in UserReference
324 mIsPrimary = adbUser().isPrimary(); in isPrimary()
326 mIsPrimary = userInfo().isPrimary(); in isPrimary()
DAdbUser.java114 public Boolean isPrimary() { in isPrimary() method in AdbUser
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/
DUserReferenceTest.java232 assertThat(user.isPrimary()).isTrue(); in isPrimary_isPrimary_returnsTrue()
241 assertThat(user.isPrimary()).isFalse(); in isPrimary_isNotPrimary_returnsFalse()
248 assertThrows(NeneException.class, user::isPrimary); in isPrimary_userDoesNotExist_throwsException()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java361 ensureHasDelegateAnnotation.isPrimary());
370 ensureHasDeviceOwnerAnnotation.isPrimary(),
409 ensureHasProfileOwnerAnnotation.isPrimary(),
1073 .stream().filter(UserReference::isPrimary).findFirst()
1435 EnsureHasDelegate.AdminType adminType, List<String> scopes, boolean isPrimary) {
1442 if (isPrimary && mPrimaryPolicyManager != null
1459 if (isPrimary) {
1519 private void ensureHasDeviceOwner(FailureMode failureMode, boolean isPrimary,
1525 if (isPrimary && mPrimaryPolicyManager != null && !userReference.equals(
1580 if (isPrimary) {
[all …]
DPolicy.java218 String[] scopes, boolean isPrimary) { in ensureHasDelegate() argument
219 return new AutoAnnotation_Policy_ensureHasDelegate(admin, scopes, isPrimary); in ensureHasDelegate()
228 Annotation annotation, boolean isPrimary) { in generateDelegateAnnotation() argument
237 isPrimary); in generateDelegateAnnotation()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DTestHelper.java356 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithConnect()
520 assertThat(wifiInfo.isPrimary()).isFalse(); in testConnectionFlowWithSuggestionInternal()
522 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithSuggestionInternal()
718 assertThat(wifiInfo.isPrimary()).isFalse(); in testConnectionFlowWithSpecifierWithShellIdentity()
720 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithSpecifierWithShellIdentity()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java88 if (!volume.isPrimary()) { in testActivityFailsForAllVolumesAndDirectories()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayClientTests.java219 private void testViewGetDisplay(boolean isPrimary) { in testViewGetDisplay() argument
225 final int displayId = isPrimary ? DEFAULT_DISPLAY : newDisplay.mId; in testViewGetDisplay()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java215 assertTrue("Should be primary", volume.isPrimary()); in testGetPrimaryVolume()
258 if (volume.isPrimary()) { in testGetStorageVolumes()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java3158 int isPrimary; in testCalendarIsPrimary() local
3168 isPrimary = cursor.getInt(0); in testCalendarIsPrimary()
3170 assertEquals("isPrimary should be 0 if ownerAccount != account_name", 0, isPrimary); in testCalendarIsPrimary()
3178 isPrimary = cursor.getInt(0); in testCalendarIsPrimary()
3180 assertEquals("isPrimary should be 1 if ownerAccount == account_name", 1, isPrimary); in testCalendarIsPrimary()
3188 isPrimary = cursor.getInt(0); in testCalendarIsPrimary()
3190 assertEquals("isPrimary should be the value it was set to", SOME_ARBITRARY_INT, isPrimary); in testCalendarIsPrimary()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1720 private static void assertVolumeType(boolean isPrimary) { in assertVolumeType() argument
1724 if (isPrimary) { in assertVolumeType()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/
Dtest-current.txt873 method public boolean isPrimary();