Home
last modified time | relevance | path

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

12345678910>>...51

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDragDetectorTest.kt76 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
82 return@argThat it.action == MotionEvent.ACTION_UP && it.x == X && it.y == Y &&
95 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
108 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y &&
122 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
130 return@argThat it.action == MotionEvent.ACTION_MOVE && it.x == newX && it.y == Y &&
137 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y &&
150 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y &&
157 return@argThat it.action == MotionEvent.ACTION_MOVE && it.x == newX && it.y == Y &&
163 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y &&
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/
H A DConnectivityRepositoryImplTest.kt501 whenever(it.transportInfo).thenReturn(null)
518 whenever(it.transportInfo).thenReturn(null)
551 whenever(it.underlyingNetworks)
588 whenever(it.underlyingNetworks)
851 whenever(it.transportInfo).thenReturn(null)
878 whenever(it.transportInfo).thenReturn(null)
905 whenever(it.transportInfo).thenReturn(null)
932 whenever(it.transportInfo).thenReturn(null)
960 whenever(it.transportInfo).thenReturn(null)
977 whenever(it.transportInfo).thenReturn(null)
[all …]
/aosp14/frameworks/base/libs/hwui/
H A DRootRenderNode.cpp131 it = mRunningVDAnimators.erase(it); in runVectorDrawableAnimators()
133 it++; in runVectorDrawableAnimators()
145 it = mPausedVDAnimators.erase(it); in runVectorDrawableAnimators()
147 it++; in runVectorDrawableAnimators()
160 it = mRunningVDAnimators.erase(it); in runVectorDrawableAnimators()
162 it++; in runVectorDrawableAnimators()
174 it = mPausedVDAnimators.erase(it); in runVectorDrawableAnimators()
176 it++; in runVectorDrawableAnimators()
191 for (auto it = mPausedVDAnimators.begin(); it != mPausedVDAnimators.end();) { in trimPausedVDAnimators() local
198 it = mPausedVDAnimators.erase(it); in trimPausedVDAnimators()
[all …]
H A DDisplayList.h233 apply([&](auto& it) { it.updateChildren(std::move(updateFn)); }); in updateChildren()
247 return apply([](const auto& it) -> auto { return it.isEmpty(); }); in isEmpty()
267 return apply([](const auto& it) -> auto { return it.hasVectorDrawables(); }); in hasVectorDrawables()
281 return apply([](const auto& it) -> auto { return it.getUsedSize(); }); in getUsedSize()
285 return apply([](const auto& it) -> auto { return it.getAllocatedSize(); }); in getAllocatedSize()
289 apply([&](const auto& it) { it.output(output, level); }); in output()
293 return apply([](const auto& it) -> auto { return it.hasFunctor(); }); in hasFunctor()
305 apply([&](auto& it) { it.syncContents(data); }); in syncContents()
309 apply([&](auto& it) { it.onRemovedFromTree(); }); in onRemovedFromTree()
313 return apply([](const auto& it) -> auto { return it.hasText(); }); in hasText()
[all …]
/aosp14/system/core/init/
H A Dproperty_type.cpp65 auto it = value.begin(); in CheckType() local
66 while (it != value.end() && isdigit(*it)) { in CheckType()
67 it++; in CheckType()
69 if (it == value.begin() || it == value.end() || (*it != 'g' && *it != 'k' && *it != 'm')) { in CheckType()
72 it++; in CheckType()
73 return it == value.end(); in CheckType()
76 for (auto it = std::next(type_strings.begin()); it != type_strings.end(); ++it) { in CheckType() local
77 if (*it == value) { in CheckType()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DScreenOffAnimationController.kt54 animations.firstOrNull { it.startAnimation() }
75 animations.any { it.shouldPlayAnimation() }
82 animations.any { it.isAnimationPlaying() }
96 if (it.shouldAnimateInKeyguard()) {
108 animations.any { it.isAnimationPlaying() }
114 animations.all { !it.isAnimationPlaying() }
130 animations.any { it.isKeyguardShowDelayed() }
136 animations.any { it.isKeyguardHideDelayed() }
142 animations.any { it.shouldPlayAnimation() }
161 animations.any { it.isAnimationPlaying() }
[all …]
H A DConfigurationControllerImpl.kt61 it.onThemeChanged()
70 it.onConfigChanged(newConfig)
79 it.onDensityOrFontScaleChanged()
89 it.onSmallestScreenWidthChanged()
101 it.onMaxBoundsChanged()
109 it.onLocaleListChanged()
120 it.onUiModeChanged()
133 it.onThemeChanged()
141 it.onOrientationChanged(orientation)
167 if (f.invoke(it)) {
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
H A DDomainVerificationCoreApiTest.kt67 { it.packageNames }, { it.component1() }) { value, other ->
79 it.value to DomainVerificationState.convertToInfoState(it.index)
86 { it.identifier }, { it.component1() }, IS_EQUAL_TO
89 { it.packageName }, { it.component2() }, IS_EQUAL_TO
92 { it.hostToStateMap }, { it.component3() }, IS_MAP_EQUAL_TO
105 .associate { it.value to (it.index % 3) }
111 { it.identifier }, { it.component1() }, IS_EQUAL_TO
114 { it.packageName }, { it.component2() }, IS_EQUAL_TO
117 { it.user }, { it.component3() }, IS_EQUAL_TO
170 add(it(first))
[all …]
H A DDomainVerificationEnforcerTest.kt124 it,
140 it.target.block(it)
162 assertApprovedQuerent(it.callingUid, it.proxy)
165 assertApprovedVerifier(it.callingUid, it.proxy)
172 it.callingUid, it.callingUserId,
173 it.targetPackageName, it.userId
181 it.callingUid, it.callingUserId,
182 it.targetPackageName, it.userId
267 it.targetPackageName, it.userId,
272 getLegacyState(it.targetPackageName, it.userId)
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
H A DAndroidPackageTest.kt315 transformSet = { Bundle().apply { putString(it.first, it.second) } }
321 transformGet = { it.singleOrNull()?.let { Triple(it.tag, it.label, it.inheritFrom) } },
324 it.first,
325 it.second,
326 it.third
354 transformGet = { it.singleOrNull()?.let { it.first to it.second } },
358 { it.first },
382 transformGet = { it.publicKeys?.takeIf { it.size > 0 }?.valueAt(0) },
472 it.filterNot { it.name == "test.implicit.PERMISSION" }
477 it,
[all …]
H A DParcelableComponentTest.kt205 when (it) {
240 { setFunction.call(it.first() as ObjectType, transformSet(it[1] as CompareType)) },
262 { setFunction.call(it.first() as ObjectType, transformSet(it[1] as CompareType)) },
316 first?.let { property(it) } == second?.let { property(it) }
323 params.forEach { it.setFunction(arrayOf(before, it.value())) }
373 .mapNotNull { it.memberFunctions.find { it.name == "writeToParcel" } }
374 .filter { it.isFinal }
383 val creatorProperties = it.staticProperties.filter { it.name == "CREATOR" }
418 val expected = it.value()
429 + setters.map { it.name }
[all …]
/aosp14/frameworks/base/tools/processors/staledataclass/src/android/processor/staledataclass/
H A DStaleDataclassProcessor.kt78 processSingleFile(it)
130 it.kind == ElementKind.CLASS
131 && !isGenerated(it)
135 it.kind == ElementKind.CLASS
136 && !isGenerated(it)
192 it.kind == ElementKind.CLASS
195 || it.kind == ElementKind.ENUM
199 || isGenerated(it)
201 elemToString(it)
205 private fun isGenerated(it: Element) =
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DRecurrenceRuleTest.java60 final Iterator<Range<ZonedDateTime>> it = r.cycleIterator(); in testSimpleMonth() local
61 assertTrue(it.hasNext()); in testSimpleMonth()
65 assertTrue(it.hasNext()); in testSimpleMonth()
81 assertTrue(it.hasNext()); in testSimpleDays()
85 assertTrue(it.hasNext()); in testSimpleDays()
89 assertFalse(it.hasNext()); in testSimpleDays()
102 assertTrue(it.hasNext()); in testNotRecurring()
106 assertFalse(it.hasNext()); in testNotRecurring()
116 assertFalse(it.hasNext()); in testNever()
128 while (it.hasNext()) { in testSane()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
H A DRoundedCornerDecorProviderFactoryTest.kt70 ((it.viewId == R.id.rounded_corner_top_left)
71 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
75 ((it.viewId == R.id.rounded_corner_top_right)
76 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
95 ((it.viewId == R.id.rounded_corner_bottom_left)
100 ((it.viewId == R.id.rounded_corner_bottom_right)
121 ((it.viewId == R.id.rounded_corner_top_left)
122 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
126 ((it.viewId == R.id.rounded_corner_top_right)
131 ((it.viewId == R.id.rounded_corner_bottom_left)
[all …]
/aosp14/frameworks/base/tools/codegen/src/com/android/codegen/
H A DFileInfo.kt70 .flatMap { it.plusNested() }
71 .filterNot { it.isInterface }
100 codeChunks.forEach { print(it) }
112 .flatMap { (it as CodeChunk.Code).lines }
148 nested.filter { it.isDataclass }.sortedBy { it.range.start }
152 …val baseIndentLength = fileInfo.sourceLines.find { "class $name" in it }!!.takeWhile { it == ' ' }…
180 appendln(it)
250 }.let { Code(it) }
260 generatedCode?.owner = it
285 .flatMap { it.plusNested() }
[all …]
H A DClassPrinter.kt43 .find { "class $ClassName" in it }!!
44 .takeWhile { it.isWhitespace() }
95 .find { it.nameAsString == DataClass }
96 ?.let { it as? NormalAnnotationExpr }
129 || fields.any { it.hasDefault }
167 if (it.startsWith("$CANONICAL_BUILDER_CLASS.")) {
168 it.removePrefix("$CANONICAL_BUILDER_CLASS.")
199 it.name.asString() == name &&
200 it.parameters.map { it.type.asString() } == argTypes.toList()
205 .filter { it.isTransient && !it.isStatic }
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DLockscreenShadeKeyguardTransitionController.kt96 it.increaseIndent()
97 it.println("Resources:")
98 it.increaseIndent()
102 it.decreaseIndent()
103 it.println("State:")
104 it.increaseIndent()
105 it.println("dragDownAmount: $dragDownAmount")
106 it.println("alpha: $alpha")
107 it.println("alphaProgress: $alphaProgress")
108 it.println("statusBarAlpha: $statusBarAlpha")
[all …]
H A DLockscreenShadeScrimTransitionController.kt69 it.println("LockscreenShadeScrimTransitionController:")
70 it.increaseIndent()
71 it.println("Resources:")
72 it.increaseIndent()
73 it.println("scrimTransitionDistance: $scrimTransitionDistance")
75 it.println(
77 it.decreaseIndent()
78 it.println("State")
79 it.increaseIndent()
80 it.println("dragDownAmount: $dragDownAmount")
[all …]
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
H A DGainmapTransformsTest.kt47 val sdrBitmap = result.also { it.gainmap = null }
62 process { it.copy(Bitmap.Config.ARGB_8888, false) }
69 process { Bitmap.createScaledBitmap(it, it.width / 3, it.height / 3, true) }
74 val width: Int = it.width
75 val height: Int = it.height
85 val width: Int = it.width
86 val height: Int = it.height
97 val width: Int = it.width
98 val height: Int = it.height
106 val width: Int = it.width
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
H A DPrivacyDialogController.kt215 getLabelForPackage(it.packageName, it.uid)
220 it.packageName,
223 it.attributionTag,
224 it.attributionLabel,
225 it.proxyLabel,
227 it.isActive,
230 it.isPhoneCall,
294 if ((it == PrivacyType.TYPE_CAMERA || it == PrivacyType.TYPE_MICROPHONE) &&
296 it
298 it
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
H A DLightRevealScrimRepositoryTest.kt86 { it == DEFAULT_REVEAL_EFFECT },
95 { it == DEFAULT_REVEAL_EFFECT },
104 { it == DEFAULT_REVEAL_EFFECT },
116 { it == DEFAULT_REVEAL_EFFECT },
118 it is CircleReveal &&
137 { it == DEFAULT_REVEAL_EFFECT },
139 it is CircleReveal &&
143 { it == DEFAULT_REVEAL_EFFECT },
154 { it == DEFAULT_REVEAL_EFFECT },
156 it is CircleReveal &&
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
H A DKeyguardTransitionCoreStartable.kt39 when (it) {
40 is FromPrimaryBouncerTransitionInteractor -> Log.d(TAG, "Started $it")
41 is FromAodTransitionInteractor -> Log.d(TAG, "Started $it")
42 is FromGoneTransitionInteractor -> Log.d(TAG, "Started $it")
43 is FromLockscreenTransitionInteractor -> Log.d(TAG, "Started $it")
44 is FromDreamingTransitionInteractor -> Log.d(TAG, "Started $it")
45 is FromOccludedTransitionInteractor -> Log.d(TAG, "Started $it")
46 is FromDozingTransitionInteractor -> Log.d(TAG, "Started $it")
47 is FromAlternateBouncerTransitionInteractor -> Log.d(TAG, "Started $it")
48 is FromDreamingLockscreenHostedTransitionInteractor -> Log.d(TAG, "Started $it")
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
H A DSystemPartitionParseTest.kt49 .flatMap { listOfNotNull(it.appFolder, it.privAppFolder, it.overlayFolder) }
51 it.listFiles()
60 files.removeAll { it ->
61 it.listFiles()?.toList().orEmpty()
62 .filter { it.name.endsWith(PackageManagerService.COMPRESSED_EXTENSION) }
63 .also { compressedFiles.addAll(it) }
71 it.resolve(input.nameWithoutExtension + ".apk")
85 it, ParsingPackageUtils.PARSE_IS_SYSTEM_DIR, false /*useCaches*/)
88 .mapNotNull { it.exceptionOrNull() }
89 .filterNot { (it as? PackageManagerException)?.error ==
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DAllModelTest.kt86 .setZone(zoneMap(it))
89 it in favoritesIndices
118 assertEquals("Error in item at index $index", it.first, it.second)
140 assertEquals("Error in item at index $index", it.first, it.second)
148 assertTrue(sameControl(it.first, it.second))
161 assertTrue(sameControl(it.first, it.second))
175 it is ControlStatusWrapper && it.controlStatus.control.controlId == id
193 assertTrue(sameControl(it.first, it.second))
210 assertTrue(sameControl(it.first, it.second))
224 it is ControlStatusWrapper && it.controlStatus.control.controlId == id
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
H A DCommandParser.kt87 .find { it.matches(token) }
89 it.inner = true
96 .find { it.matches(token) }
98 it.parseArgsFromIter(iterator)
105 .find { it.matches(token) }
143 .find { it.matches(token) }
145 it.inner = true
152 .find { it.matches(token) }
154 it.parseArgsFromIter(iter)
196 get() = params.filter { (it is SingleArgParam<*>) && !it.handled }
[all …]

12345678910>>...51