Home
last modified time | relevance | path

Searched refs:ifPresent (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionParamsUnitTest.java218 installLocation.ifPresent(params::setInstallLocation); in checkSessionParams()
219 size.ifPresent(params::setSize); in checkSessionParams()
220 appPackageName.ifPresent(params::setAppPackageName); in checkSessionParams()
221 appIcon.ifPresent(params::setAppIcon); in checkSessionParams()
222 appLabel.ifPresent(params::setAppLabel); in checkSessionParams()
223 originatingUri.ifPresent(params::setOriginatingUri); in checkSessionParams()
224 originatingUid.ifPresent(params::setOriginatingUid); in checkSessionParams()
225 referredUri.ifPresent(params::setReferrerUri); in checkSessionParams()
226 installReason.ifPresent(params::setInstallReason); in checkSessionParams()
246 installLocation.ifPresent(i -> assertThat(info.getInstallLocation()).isEqualTo(i)); in checkSessionParams()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiClass.java121 apiConstructor.ifPresent(constructor -> constructor.setCovered(coveredbyApk)); in markConstructorCovered()
139 apiMethod.ifPresent(method -> method.setCovered(coveredbyApk)); in markMethodCovered()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DCtsTestUtils.java43 Optional.ofNullable(callee).ifPresent(action); in runIfNotNull()