/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStorePlacementTest.java | 45 import java.util.Optional; 121 assertTrue(updatePlacement(uri, null, Optional.of(name))); in testDisplayName_SameMime() 139 assertTrue(updatePlacement(uri, null, Optional.of(name))); in testDisplayName_DifferentMime() 156 Optional.ofNullable(null), null)); in testDirectory_Valid() 162 Optional.of("DCIM/Vacation"), null)); in testDirectory_Valid() 168 Optional.of("DCIM/Misc"), null)); in testDirectory_Valid() 174 Optional.of("Pictures/Misc"), null)); in testDirectory_Valid() 180 Optional.of("Pictures"), null)); in testDirectory_Valid() 192 Optional.of("Random"), null)); in testDirectory_Invalid() 194 Optional.of(Environment.DIRECTORY_ALARMS), null)); in testDirectory_Invalid() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstallSessionParamsUnitTest.java | 59 private static Optional UNSET = new Optional(false, null); 62 public Optional<Integer> mode; 64 public Optional<Integer> installLocation; 66 public Optional<Integer> size; 68 public Optional<String> appPackageName; 70 public Optional<Bitmap> appIcon; 72 public Optional<String> appLabel; 74 public Optional<Uri> originatingUri; 76 public Optional<Integer> originatingUid; 78 public Optional<Uri> referredUri; [all …]
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | MultiUserBackupStateTest.java | 31 import java.util.Optional; 39 private Optional<Integer> mProfileUserId = Optional.empty(); 48 mProfileUserId = Optional.of(profileUserId); in setUp() 58 mProfileUserId = Optional.empty(); in tearDown() 81 mProfileUserId = Optional.empty(); in testBackupDeactivatedWhenUserIsRemoved()
|
D | ProfileSerialNumberHostSideTest.java | 30 import java.util.Optional; 45 private Optional<Integer> mProfileUserId = Optional.empty(); 55 mProfileUserId = Optional.of(profileUserId); in setUp() 67 mProfileUserId = Optional.empty(); in tearDown()
|
D | ProfileFullBackupRestoreHostSideTest.java | 31 import java.util.Optional; 39 private Optional<Integer> mProfileUserId = Optional.empty(); 52 mProfileUserId = Optional.of(profileUserId); in setUp() 75 mProfileUserId = Optional.empty(); in tearDown()
|
D | RestoreSessionHostSideTest.java | 33 import java.util.Optional; 53 private Optional<String> mOldTransport = Optional.empty(); 60 mOldTransport = Optional.of(setBackupTransport(mBackupUtils.getLocalTransportName())); in setUp() 69 mOldTransport = Optional.empty(); in tearDown()
|
D | ProfileKeyValueBackupRestoreHostSideTest.java | 31 import java.util.Optional; 47 private Optional<Integer> mProfileUserId = Optional.empty(); 60 mProfileUserId = Optional.of(profileUserId); in setUp() 83 mProfileUserId = Optional.empty(); in tearDown()
|
D | ProfileScheduledJobHostSideTest.java | 33 import java.util.Optional; 68 private Optional<Integer> mProfileUserId = Optional.empty(); 79 mProfileUserId = Optional.of(profileUserId); in setUp() 91 mProfileUserId = Optional.empty(); in tearDown()
|
D | ParallelUserBackupRestoreHostSideTest.java | 35 import java.util.Optional; 58 private Optional<Integer> mProfileUserId = Optional.empty(); 72 mProfileUserId = Optional.of(profileUserId); in setUp() 88 mProfileUserId = Optional.empty(); in tearDown()
|
D | BaseMultiUserBackupHostSideTest.java | 38 import java.util.Optional; 65 private Optional<Integer> mInitialUser = Optional.empty(); 79 mInitialUser = Optional.of(currentUserId); in setUp() 93 mInitialUser = Optional.empty(); in tearDown()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | ParsedAttestationRecord.java | 24 import java.util.Optional; 112 public Optional<Integer> getSoftwareAuthorizationInteger(int tag) { in getSoftwareAuthorizationInteger() 114 return Optional.ofNullable(entry).map(ParsedAttestationRecord::getIntegerFromAsn1); in getSoftwareAuthorizationInteger() 117 public Optional<Integer> getTeeAuthorizationInteger(int tag) { in getTeeAuthorizationInteger() 119 return Optional.ofNullable(entry).map(ParsedAttestationRecord::getIntegerFromAsn1); in getTeeAuthorizationInteger() 131 public Optional<byte[]> getSoftwareAuthorizationByteString(int tag) { in getSoftwareAuthorizationByteString() 133 return Optional.ofNullable(entry).map(ASN1OctetString::getOctets); in getSoftwareAuthorizationByteString() 136 public Optional<byte[]> getTeeAuthorizationByteString(int tag) { in getTeeAuthorizationByteString() 138 return Optional.ofNullable(entry).map(ASN1OctetString::getOctets); in getTeeAuthorizationByteString()
|
D | AttestationTest.java | 38 import java.util.Optional; 126 Optional<byte[]> attestationApplicationId = in attestationTest()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApiClass.java | 25 import java.util.Optional; 120 Optional<ApiConstructor> apiConstructor = getConstructor(parameterTypes); in markConstructorCovered() 138 Optional<ApiMethod> apiMethod = getMethod(name, parameterTypes); in markMethodCovered() 179 private Optional<ApiMethod> getMethod(String name, List<String> parameterTypes) { in getMethod() 185 return Optional.of(method); in getMethod() 188 return Optional.empty(); in getMethod() 263 private Optional<ApiConstructor> getConstructor(List<String> parameterTypes) { in getConstructor() 266 return Optional.of(constructor); in getConstructor() 269 return Optional.empty(); in getConstructor()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | LaunchSequence.java | 28 import java.util.Optional; 107 return new ConsecutiveLaunch(this, intent, false, Optional.empty()); in append() 118 return new ConsecutiveLaunch(this, intent, false, Optional.of(launchFrom)); in append() 126 return new ConsecutiveLaunch(this, intent, true, Optional.empty()); in act() 136 return new ConsecutiveLaunch(this, intent, true, Optional.of(launchFrom)); in act() 175 boolean act, Optional<LaunchSequence> launchFrom) { in ConsecutiveLaunch() 186 private Optional<LaunchSequence> mLaunchFrom;
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStream.java | 29 import java.util.Optional; 103 public Optional<ImeEvent> findFirst(Predicate<ImeEvent> condition) { in findFirst() 108 return Optional.empty(); in findFirst() 111 return Optional.of(latest.mArray[index]); in findFirst() 131 public Optional<ImeEvent> seekToFirst(Predicate<ImeEvent> condition) { in seekToFirst() 135 return Optional.empty(); in seekToFirst() 138 return Optional.of(latest.mArray[mCurrentPosition]); in seekToFirst()
|
D | ImeEventStreamTestUtils.java | 26 import java.util.Optional; 106 Optional<ImeEvent> result; in expectEvent() 317 final Optional<ImeEvent> event = stream.seekToFirst(layoutFilter);
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | CtsTestUtils.java | 20 import java.util.Optional; 43 Optional.ofNullable(callee).ifPresent(action); in runIfNotNull()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 51 import java.util.Optional; 545 Optional<SelfManagedConnection> connectionOptional = connectionService.getConnections() in waitForAndGetConnection()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/ |
D | CameraFormatsActivity.java | 55 import java.util.Optional; 218 Optional<CameraCombination> combination = mUntestedCombinations.stream().filter( in setUntestedCombination()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
D | CameraVideoActivity.java | 59 import java.util.Optional; 340 Optional<CameraCombination> combination = mUntestedCombinations.stream().filter( in setUntestedCombination()
|