Home
last modified time | relevance | path

Searched refs:Optional (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/
DMediaStorePlacementTest.java45 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/
DInstallSessionParamsUnitTest.java59 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/
DMultiUserBackupStateTest.java31 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()
DProfileSerialNumberHostSideTest.java30 import java.util.Optional;
45 private Optional<Integer> mProfileUserId = Optional.empty();
55 mProfileUserId = Optional.of(profileUserId); in setUp()
67 mProfileUserId = Optional.empty(); in tearDown()
DProfileFullBackupRestoreHostSideTest.java31 import java.util.Optional;
39 private Optional<Integer> mProfileUserId = Optional.empty();
52 mProfileUserId = Optional.of(profileUserId); in setUp()
75 mProfileUserId = Optional.empty(); in tearDown()
DRestoreSessionHostSideTest.java33 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()
DProfileKeyValueBackupRestoreHostSideTest.java31 import java.util.Optional;
47 private Optional<Integer> mProfileUserId = Optional.empty();
60 mProfileUserId = Optional.of(profileUserId); in setUp()
83 mProfileUserId = Optional.empty(); in tearDown()
DProfileScheduledJobHostSideTest.java33 import java.util.Optional;
68 private Optional<Integer> mProfileUserId = Optional.empty();
79 mProfileUserId = Optional.of(profileUserId); in setUp()
91 mProfileUserId = Optional.empty(); in tearDown()
DParallelUserBackupRestoreHostSideTest.java35 import java.util.Optional;
58 private Optional<Integer> mProfileUserId = Optional.empty();
72 mProfileUserId = Optional.of(profileUserId); in setUp()
88 mProfileUserId = Optional.empty(); in tearDown()
DBaseMultiUserBackupHostSideTest.java38 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/
DParsedAttestationRecord.java24 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()
DAttestationTest.java38 import java.util.Optional;
126 Optional<byte[]> attestationApplicationId = in attestationTest()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiClass.java25 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/
DLaunchSequence.java28 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/
DImeEventStream.java29 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()
DImeEventStreamTestUtils.java26 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/
DCtsTestUtils.java20 import java.util.Optional;
43 Optional.ofNullable(callee).ifPresent(action); in runIfNotNull()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java51 import java.util.Optional;
545 Optional<SelfManagedConnection> connectionOptional = connectionService.getConnections() in waitForAndGetConnection()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java55 import java.util.Optional;
218 Optional<CameraCombination> combination = mUntestedCombinations.stream().filter( in setUntestedCombination()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java59 import java.util.Optional;
340 Optional<CameraCombination> combination = mUntestedCombinations.stream().filter( in setUntestedCombination()