Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 201) sorted by relevance

123456789

/cts/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/
DSharedVerifications.kt37 ShellUtils.runShellCommand(DomainUtils.setAppLinks(it, "STATE_NO_RESPONSE", "all")) in reset()
38 ShellUtils.runShellCommand(DomainUtils.resetAppLinks(it)) in reset()
39 ShellUtils.runShellCommand(DomainUtils.setAppLinksAllowed(it, context.userId, true)) in reset()
41 DomainUtils.setAppLinksUserSelection(it, context.userId, false, "all") in reset()
61 Truth.assertThat(it.packageName).isEqualTo(packageName) in verifyDomains()
62 Truth.assertThat(it.isLinkHandlingAllowed).isTrue() in verifyDomains()
63 Truth.assertThat(it.user).isEqualTo(user) in verifyDomains()
64 Truth.assertThat(it.hostToStateMap).containsExactlyEntriesIn( in verifyDomains()
79 Truth.assertThat(it.packageName).isEqualTo(packageName) in verifyDomains()
80 Truth.assertThat(it.isLinkHandlingAllowed).isTrue() in verifyDomains()
[all …]
DDomainVerificationIntentTestBase.kt77 .let { context.packageManager.queryIntentActivities(it, 0) } in parameters()
78 .map { it.activityInfo } in parameters()
79 .map { ComponentName(it.packageName, it.name) } in parameters()
80 .also { assumeTrue(it.isNotEmpty()) } in parameters()
107 assertThat(ShellUtils.runShellCommand(it)).isEmpty() in runShellCommand()
123 .map { it.activityInfo } in assertResolvesTo()
124 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo()
130 .map { it.activityInfo } in assertResolvesTo()
131 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo()
135 browsers.contains(it) || (isComponentEnabled( in assertResolvesTo()
[all …]
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.kt113 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode()
129 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode()
140 assertThat(noted.map { it.first.attributionTag to it.first.op }) in noteSyncOpFromNativeCode()
142 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
153 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode()
154 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
169 assertThat(noted.map { it.first.attributionTag }) in noteSyncOpFromNativeCode()
181 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_FINE_LOCATION) in noteSyncOpFromNativeCode()
182 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
196 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode()
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskSave.cpp86 std::list<TaskCase::BufferPair>::iterator it = buffersp->begin(); in handleFile() local
88 for (; it != end; it++) { in handleFile()
90 fileName.appendPath(it->first); in handleFile()
91 if (!it->second->saveToFile(fileName)) { in handleFile()
124 std::list<TaskCase::ValuePair>::iterator it = values->begin(); in handleReport() local
127 for (; it != end; it++) { in handleReport()
128 if (it->second.getType() == TaskCase::Value::ETypeDouble) { in handleReport()
129 details.appendFormat(" %s: %f\n", it->first.string(), it->second.getDouble()); in handleReport()
131 details.appendFormat(" %s: %" PRId64 "\n", it->first.string(), in handleReport()
132 it->second.getInt64()); in handleReport()
DTaskCase.cpp71 typename std::map<android::String8, T>::iterator it; in registerGeneric() local
72 it = map.find(name); in registerGeneric()
73 if (it != map.end()) { in registerGeneric()
86 typename std::map<android::String8, T>::iterator it; in findGeneric() local
87 it = map.find(name); in findGeneric()
88 if (it == map.end()) { in findGeneric()
91 data = it->second; in findGeneric()
99 typename std::map<android::String8, T>::iterator it; in updateGeneric() local
100 it = map.find(name); in updateGeneric()
101 if (it == map.end()) { in updateGeneric()
[all …]
DTaskGeneric.cpp127 auto it = mAllowedStringAttributes.find(key); in addStringAttribute() local
128 if (it == mAllowedStringAttributes.end()) { in addStringAttribute()
137 auto it = mStringAttributes.find(key); in findStringAttribute() local
138 if (it == mStringAttributes.end()) { in findStringAttribute()
141 value = it->second; in findStringAttribute()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellChecker.kt70 return textInfos.map { matchSentenceSuggestion(configuration, it) }.toTypedArray() in onGetSentenceSuggestionsMultiple()
78 return configuration.suggestionRulesList.find { it.match == textInfo.text } in matchSentenceSuggestion()
81 arrayOf(suggestionsInfo(it, textInfo.cookie, textInfo.sequence)), in matchSentenceSuggestion()
82 intArrayOf(if (it.hasStartOffset()) it.startOffset else 0), in matchSentenceSuggestion()
83 intArrayOf(if (it.hasLength()) it.length else textInfo.text.length)) in matchSentenceSuggestion()
97 .find { it.match == textInfo.text } in onGetSuggestions()
98 ?.let { suggestionsInfo(it) } in onGetSuggestions()
116 rule.suggestionsList.map { prefix + it }.toTypedArray() in suggestionsInfo()
/cts/suite/audio_quality/lib/src/
DReport.cpp93 std::list<StringPair>::const_iterator it; in writeResult() local
94 for (it = begin; it != end; it++) { in writeResult()
96 printf(" <test title=\"%s\" result=\"pass\" >", it->first.string()); in writeResult()
98 printf(" <test title=\"%s\" result=\"fail\" >", it->first.string()); in writeResult()
100 printf(" <details>\n%s", it->second.string()); in writeResult()
/cts/tests/tests/instantapp/src/android/cts/instantapp/resolver/
DResolverServiceMethodFallbackTest.kt85 private val infoTwo: Method = { onGetInstantAppResolveInfo(it.intent, testArray, testToken, in <lambda>()
87 private val infoThree: Method = { onGetInstantAppResolveInfo(it.intent, testArray, testUser, in <lambda>()
89 private val infoFour: Method = { onGetInstantAppResolveInfo(it, testResolutionCallback) } in <lambda>()
93 private val filterTwo: Method = { onGetInstantAppIntentFilter(it.intent, testArray, in <lambda>()
95 private val filterThree: Method = { onGetInstantAppIntentFilter(it.intent, testArray, in <lambda>()
97 private val filterFour: Method = { onGetInstantAppIntentFilter(it, testResolutionCallback) } in <lambda>()
110 val versions = Array(5) { it } in <lambda>()
164 methodList[it].invoke(verify(mockService, never()), info) in <lambda>()
169 methodList[it].invoke(verify(mockService), info) in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCtsTestHelper.java30 Intent it = new Intent(); in storeCtsTestResult() local
31 it.putExtra(REPORTED_FOV_EXTRA, reportedFOV); in storeCtsTestResult()
32 it.putExtra(MEASURED_FOV_EXTRA, measuredFOV); in storeCtsTestResult()
33 activity.setResult(Activity.RESULT_OK, it); in storeCtsTestResult()
/cts/hostsidetests/securitybulletin/securityPatch/includes/
DomxUtils.cpp44 for (std::list<omx_message>::const_iterator it = messages.cbegin(); in handleMessages() local
45 it != messages.cend();) { in handleMessages()
46 mMessageQueue.push_back(*it); in handleMessages()
47 const omx_message &msg = *it++; in handleMessages()
86 List<omx_message>::iterator it = mMessageQueue.begin(); in dequeueMessageForNode() local
87 while (it != mMessageQueue.end()) { in dequeueMessageForNode()
88 *msg = *it; in dequeueMessageForNode()
89 mMessageQueue.erase(it); in dequeueMessageForNode()
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/
DDomainVerificationWorkProfileTestsBase.kt127 .map { it.activityInfo } in <lambda>()
128 .map { ComponentName(it.packageName, it.name) } in <lambda>()
129 .also { assumeTrue(it.isNotEmpty()) } in <lambda>()
142 .map { it.activityInfo } in <lambda>()
143 .map { ComponentName(it.packageName, it.name) } in <lambda>()
150 ShellUtils.runShellCommand(DomainUtils.setAppLinks(it, "STATE_APPROVED", DOMAIN_1)) in <lambda>()
159 testApis.withUserContext(it) { in <lambda>()
160 SharedVerifications.reset(it, resetEnable = true) in <lambda>()
312 .validate { it.trim().endsWith("new state: disabled-user") } in <lambda>()
319 .validate { it.trim().endsWith("new state: disabled") } in <lambda>()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageSetInstallerTest.kt163 .filterValues { it != null } in runTest()
240 .dropWhile { !it.startsWith("Packages:") } // Wait for package header in <lambda>()
242 .takeWhile { it.isEmpty() || it.first().isWhitespace() } // Until next header in <lambda>()
243 .dropWhile { !it.trim().startsWith("User $mPrimaryUserId:") } // Find user in <lambda>()
245 .takeWhile { !it.trim().startsWith("User") } // Until next user in <lambda>()
246 .filter { it.contains("$permission: granted=") } in <lambda>()
253 block()?.let { return it } in retry()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRuntimePermissionProperties.kt74 .filter { it.protection == PROTECTION_DANGEROUS } in <lambda>()
75 private val platformBgPermNames = platformRuntimePerms.mapNotNull { it.backgroundPermission } in <lambda>()
80 platformRuntimePerms.filter { !platformBgPermNames.contains(it.name) } in allRuntimeForegroundPermissionNeedAnAppOp()
97 .filter { (it.protectionFlags and PROTECTION_FLAG_APPOP) != 0 } in allAppOpPermissionNeedAnAppOp()
100 it.name != PACKAGE_USAGE_STATS in allAppOpPermissionNeedAnAppOp()
114 platformRuntimePerms.filter { platformBgPermNames.contains(it.name) } in allRuntimeBackgroundPermissionCantHaveAnAppOp()
157 assertThat(expectedPerms).containsExactlyElementsIn(platformRuntimePerms.map { it.name }) in runtimePermissionsShouldHaveBeenSplitFromPreviousPermission()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHostActivity.kt32 val child = views.apply(this, it) in onCreate()
33 it.id = R.id.content in onCreate()
34 it.addView(child, LayoutParams(LayoutParams.MATCH_PARENT, height)) in onCreate()
/cts/tests/tests/systemui/src/android/systemui/cts/
DNotificationListener.kt82 it.activeNotifications.firstOrNull(predicate) in waitForNotificationToAppear()
91 wait { it.activeNotifications.none(predicate) } in waitForNotificationToDisappear()
96 val (success, _) = waitForResult(extractor = condition, validator = { it }) in wait()
104 validator: (R) -> Boolean = { it != null } in waitForResult()
/cts/hostsidetests/packagemanager/parsing/host/src/android/content/pm/parsing/cts/host/
DUsesSdkTest.kt254 .dropWhile { !it.startsWith("Packages:") } in assertSdks()
255 .map { it.trim() } in assertSdks()
256 .first { it.startsWith("minExtensionVersions=") } in assertSdks()
263 it.split("=") in assertSdks()
266 .let { it.first() to it.last() } in assertSdks()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DVpnDisclosureTest.kt98 it.isVpnConnectedNotification in assertVpnConnectedNotificationPresent()
106 it.isVpnDisconnectedNotification in assertVpnDisconnectedNotificationPresent()
114 it.isVpnConnectedNotification || it.isVpnDisconnectedNotification in assertNoVpnNotificationsPresent()
DTvTestBase.kt146 append(it.flattenToShortString()) in composeAmShellCommand()
150 append(it) in composeAmShellCommand()
154 append(it) in composeAmShellCommand()
157 append(it.withFlag("ez")) in composeAmShellCommand()
160 append(it.withFlag("ei")) in composeAmShellCommand()
163 append(it.withFlag("es")) in composeAmShellCommand()
DMicIndicatorTest.kt137 it.containsWindow(MIC_INDICATOR_WINDOW_TITLE) && in assertIndicatorWindowVisible()
138 it.isWindowVisible(MIC_INDICATOR_WINDOW_TITLE) in assertIndicatorWindowVisible()
146 !it.containsWindow(MIC_INDICATOR_WINDOW_TITLE) in assertIndicatorWindowGone()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DPocPusher.java62 for (Iterator<String> it = filesToCleanup.iterator(); it.hasNext();) { in finished()
63 String file = it.next(); in finished()
71 it.remove(); in finished()
/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp222 std::map<android::String8, int>::iterator it; in getDataId() local
223 it = mIdMap.find(name); in getDataId()
224 if (it == mIdMap.end()) { in getDataId()
228 return it->second; in getDataId()
241 std::map<int, android::sp<Buffer> >::iterator it; in startPlayback() local
242 it = mBufferList.find(id); in startPlayback()
243 if (it == mBufferList.end()) { in startPlayback()
255 handler->getParam().mBuffer = it->second; in startPlayback()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt197 appOpsManager.setOnOpNotedCallback(Executor { it.run() }, in nativeNoteOp()
231 assertThat(selfNoted.map { it.first.attributionTag to it.first.op }) in nativeNoteOp()
240 assertThat(selfNoted.map { it.first.attributionTag }).containsExactly(TEST_ATTRIBUTION_TAG) in nativeNoteOp()
452 assertThat(noted[0].second.map { it.methodName }).contains("getWifiScanResults") in nativeNoteOp()
475 var filteredAsync = asyncNoted.filter { it.op == OPSTR_FINE_LOCATION } in nativeNoteOp()
478 filteredAsync = asyncNoted.filter { it.op == OPSTR_BLUETOOTH_SCAN } in nativeNoteOp()
540 assertThat(noted.map { it.first.op }).containsAnyOf(OPSTR_COARSE_LOCATION, in nativeNoteOp()
543 assertThat(noted[0].second.map { it.methodName }).contains("getLastKnownLocation") in nativeNoteOp()
580 assertThat(noted.map { it.first.op }) in nativeNoteOp()
584 assertThat(asyncNoted.map { it.op }) in nativeNoteOp()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaFormatTest.java344 Iterator<String> it = keySet.iterator(); in testKeySetContainsAndRemove() local
345 while (it.hasNext()) { in testKeySetContainsAndRemove()
346 String k = it.next(); in testKeySetContainsAndRemove()
386 Iterator<String> it = keySet.iterator(); in testKeySetContainsAndRemove() local
387 while (it.hasNext()) { in testKeySetContainsAndRemove()
388 String k = it.next(); in testKeySetContainsAndRemove()
391 it.remove(); in testKeySetContainsAndRemove()
447 Iterator<String> it = featureSet.iterator(); in testFeatureKeySetContainsAndRemove() local
448 while (it.hasNext()) { in testFeatureKeySetContainsAndRemove()
449 String k = it.next(); in testFeatureKeySetContainsAndRemove()
[all …]
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/
DAndroid.bp29 // Feature splits are dependent on this split, so it must be exported.
43 // isolated splits, it must only be unique across a dependency chain.
56 // Feature splits are dependent on this split, so it must be exported.
70 // isolated splits, it must only be unique across a dependency chain.

123456789