Home
last modified time | relevance | path

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

123456

/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 …]
/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()
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/hostsidetests/securitybulletin/securityPatch/CVE-2021-0925/
Dt4t.cpp152 for (auto it = ctx.Data.cbegin() + 1; it != ctx.Data.cend(); ++it) { in Fuzz_Run() local
159 p_msg = (NFC_HDR*)GKI_getbuf(sizeof(NFC_HDR) + it->size()); in Fuzz_Run()
167 FUZZLOG(MODULE_NAME ": GKI_getbuf returns null, size=%zu", it->size()); in Fuzz_Run()
172 p_msg->len = it->size(); in Fuzz_Run()
176 memcpy(p, it->data(), it->size()); in Fuzz_Run()
184 it - ctx.Data.cbegin(), ctx.Data.size() - 1, BytesToHex(*it).c_str()); in Fuzz_Run()
/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/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/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/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/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/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/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/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/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAccessibilityNodeInfoUtils.kt28 val AccessibilityNodeInfo.bounds: Rect get() = Rect().also { getBoundsInScreen(it) } in <lambda>()
39 child?.depthFirstSearch(condition)?.let { return it } in AccessibilityNodeInfo()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiPackage.java83 Iterator<Entry<String, ApiClass>> it = mApiClassMap.entrySet().iterator(); in resolveSuperClasses() local
84 while (it.hasNext()) { in resolveSuperClasses()
85 Map.Entry<String, ApiClass> entry = it.next(); in resolveSuperClasses()
/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.
/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/resourcesloader/src/android/content/res/loader/cts/
DUtils.kt31 when (val name = it.method.name) { in <lambda>()
32 "toString" -> return@Answer Answers.CALLS_REAL_METHODS.answer(it) in <lambda>()
/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/tests/tests/identity/
DAndroid.bp48 // The comment below is not particularly accurate, but it's copied from other
49 // tests that do the same thing, so anyone grepping for it will find it here.

123456