Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 1531) sorted by relevance

12345678910>>...62

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DHandleMenuAnimator.kt155 ObjectAnimator.ofFloat(appInfoPill, TRANSLATION_Z, 1f).apply { in animateAppInfoPillOpen()
163 ObjectAnimator.ofFloat(it, ALPHA, 1f).apply { in animateAppInfoPillOpen()
174 .apply { duration = HEADER_NONFREEFORM_SCALE_OPEN_DURATION } in captionHandleExpandIntoAppInfoPill()
178 .apply { duration = HEADER_NONFREEFORM_SCALE_OPEN_DURATION } in captionHandleExpandIntoAppInfoPill()
183 ObjectAnimator.ofFloat(handleMenu, TRANSLATION_Y, yStart, 0f).apply { in captionHandleExpandIntoAppInfoPill()
191 ObjectAnimator.ofFloat(appInfoPill, SCALE_X, HALF_INITIAL_SCALE, 1f).apply { in appInfoPillExpand()
196 ObjectAnimator.ofFloat(appInfoPill, SCALE_Y, HALF_INITIAL_SCALE, 1f).apply { in appInfoPillExpand()
204 ObjectAnimator.ofFloat(windowingPill, SCALE_X, HALF_INITIAL_SCALE, 1f).apply { in animateWindowingPillOpen()
210 ObjectAnimator.ofFloat(windowingPill, SCALE_Y, HALF_INITIAL_SCALE, 1f).apply { in animateWindowingPillOpen()
217 ObjectAnimator.ofFloat(windowingPill, ALPHA, 1f).apply { in animateWindowingPillOpen()
[all …]
DResizeVeil.kt188 t.apply() in showVeil()
217 veilAnimator = ValueAnimator.ofFloat(0f, 1f).apply { in showVeil()
221 .apply() in showVeil()
227 .apply() in showVeil()
231 veilAnimT.setAlpha(background, 1f).apply() in showVeil()
235 val iconAnimator = ValueAnimator.ofFloat(0f, 1f).apply { in showVeil()
239 .apply() in showVeil()
245 .apply() in showVeil()
249 iconAnimT.setAlpha(icon, 1f).apply() in showVeil()
257 .apply() in showVeil()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationCollectorTest.kt96 ParsedActivityImpl().apply { in verifyV1NoValidIntentFilter()
99 .apply { in verifyV1NoValidIntentFilter()
100 intentFilter.apply { in verifyV1NoValidIntentFilter()
113 ParsedActivityImpl().apply { in verifyV1NoValidIntentFilter()
116 .apply { in verifyV1NoValidIntentFilter()
117 intentFilter.apply { in verifyV1NoValidIntentFilter()
274 ParsedActivityImpl().apply { in mockPkg()
277 .apply { in mockPkg()
278 intentFilter.apply { in mockPkg()
293 .apply { in mockPkg()
[all …]
DDomainVerificationPersistenceTest.kt50 internal fun File.writeXml(block: (serializer: TypedXmlSerializer) -> Unit) = apply { in <lambda>()
55 .apply { in <lambda>()
63 .apply(block) in <lambda>()
64 .apply { in <lambda>()
99 val attached = DomainVerificationStateMap<DomainVerificationPkgState>().apply { in <lambda>()
103 val pending = ArrayMap<String, DomainVerificationPkgState>().apply { in <lambda>()
107 val restored = ArrayMap<String, DomainVerificationPkgState>().apply { in <lambda>()
186 val stateZero = mockEmptyPkgState(0, pkgNameToSignature = { "ACTIVE" }).apply { in <lambda>()
193 userStates[1] = DomainVerificationInternalUserState(1).apply { in <lambda>()
198 val stateOne = mockEmptyPkgState(1, pkgNameToSignature = { "RESTORED" }).apply { in <lambda>()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerTrustedPresentationListener_test.cpp67 t.reparent(mainLayer, nullptr).apply(); in TearDown()
83 .apply(); in thresholdsPrepared()
110 t.hide(mainLayer).apply(); in TEST_F()
124 .apply(); in TEST_F()
140 .apply(); in TEST_F()
148 t.setAlpha(mainLayer, 0.9).apply(); in TEST_F()
150 t.setAlpha(mainLayer, 1.0).apply(); in TEST_F()
159 t.setAlpha(mainLayer, 0.8).apply(); in TEST_F()
161 t.setAlpha(mainLayer, 0.9).apply(); in TEST_F()
171 t.setCrop(mainLayer, Rect(0, 0, 86, 86)).apply(); in TEST_F()
[all …]
DRelativeZ_test.cpp75 Transaction{}.setRelativeLayer(childLayer, mForegroundLayer, 1).show(childLayer).apply(); in TEST_F()
85 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F()
90 Transaction{}.reparent(childLayer, mBackgroundLayer).apply(); in TEST_F()
124 .apply(); in TEST_F()
134 Transaction{}.reparent(childLevel1, nullptr).apply(); in TEST_F()
142 Transaction{}.reparent(childLevel1, mForegroundLayer).apply(); in TEST_F()
167 .apply(); in TEST_F()
179 Transaction{}.reparent(relativeToLayer, nullptr).apply(); in TEST_F()
190 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F()
201 Transaction{}.reparent(childLayer, mForegroundLayer).apply(); in TEST_F()
[all …]
DMirrorLayer_test.cpp69 .apply(); in TEST_F()
80 .apply(); in TEST_F()
83 Transaction().setPosition(mirrorLayer, 550, 550).apply(); in TEST_F()
96 Transaction().setColor(grandchild, half3{1, 1, 1}).apply(); in TEST_F()
107 Transaction().setColor(mChildLayer, half3{0, 0, 0}).apply(); in TEST_F()
118 Transaction().reparent(grandchild, nullptr).apply(); in TEST_F()
134 Transaction().reparent(mChildLayer, nullptr).apply(); in TEST_F()
145 Transaction().reparent(grandchild, mChildLayer).apply(); in TEST_F()
156 Transaction().reparent(mChildLayer, mParentLayer).apply(); in TEST_F()
171 Transaction().show(bufferQueueLayer).apply(); in TEST_F()
[all …]
DLayerRenderTypeTransaction_test.cpp67 Transaction().setPosition(layer, 5, 10).apply(); in TEST_P()
86 Transaction().setPosition(layer, 0.5f - epsilon, 0.5f - epsilon).apply(); in TEST_P()
92 Transaction().setPosition(layer, 0.5f + epsilon, 0.5f + epsilon).apply(); in TEST_P()
104 Transaction().setPosition(layer, -32, -32).apply(); in TEST_P()
110 Transaction().setPosition(layer, mDisplayWidth, mDisplayHeight).apply(); in TEST_P()
123 Transaction().setPosition(layer, -30, -30).apply(); in TEST_P()
129 Transaction().setPosition(layer, mDisplayWidth - 2, mDisplayHeight - 2).apply(); in TEST_P()
158 Transaction().setPosition(layerG, 16, 16).setRelativeLayer(layerG, layerR, 1).apply(); in setRelativeZBasicHelper()
170 Transaction().setRelativeLayer(layerG, layerR, -1).apply(); in setRelativeZBasicHelper()
207 .apply(); in setRelativeZGroupHelper()
[all …]
DLayerTypeTransaction_test.cpp47 Transaction().setCrop(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P()
58 Transaction().reparent(layerB, parent).apply(); in TEST_P()
61 Transaction().setRelativeLayer(layerG, layerR, -1).setLayer(layerB, -2).apply(); in TEST_P()
90 .apply(); in TEST_P()
92 Transaction().setRelativeLayer(childLayer, parent, -1).setLayer(childLayer, 1).apply(); in TEST_P()
102 Transaction().setLayer(childLayer, 1).setRelativeLayer(childLayer, parent, -1).apply(); in TEST_P()
137 .apply(); in TEST_P()
139 Transaction().setRelativeLayer(childLayer, relativeParent, 1).apply(); in TEST_P()
149 Transaction().hide(relativeParent).apply(); in TEST_P()
168 .apply(true); in TEST_P()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/
DToastDefaultAnimation.kt41 val sX = ObjectAnimator.ofFloat(view, "scaleX", 0.9f, 1f).apply { in toastIn()
45 val sY = ObjectAnimator.ofFloat(view, "scaleY", 0.9f, 1f).apply { in toastIn()
49 val vA = ObjectAnimator.ofFloat(view, "alpha", 0f, 1f).apply { in toastIn()
54 val tA = ObjectAnimator.ofFloat(text, "alpha", 0f, 1f).apply { in toastIn()
60 val iA = ObjectAnimator.ofFloat(icon, "alpha", 0f, 1f).apply { in toastIn()
65 return AnimatorSet().apply { in toastIn()
79 val viewScaleX = ObjectAnimator.ofFloat(view, "scaleX", 1f, 0.9f).apply { in toastOut()
83 val viewScaleY = ObjectAnimator.ofFloat(view, "scaleY", 1f, 0.9f).apply { in toastOut()
88 view.elevation, 0f).apply { in toastOut()
93 val viewAlpha = ObjectAnimator.ofFloat(view, "alpha", 1f, 0f).apply { in toastOut()
[all …]
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTimeZoneCanonicalizerTest.java33 assertThat(mFunction.apply("America/Godthab")).isEqualTo("America/Nuuk"); in deprecatedTimeZonesAreEqualToCanonical()
34 assertThat(mFunction.apply("Australia/Currie")).isEqualTo("Australia/Hobart"); in deprecatedTimeZonesAreEqualToCanonical()
39 assertThat(mFunction.apply("America/Detroit")).isEqualTo("America/Detroit"); in wellKnownCanonicalIDs()
40 assertThat(mFunction.apply("Europe/London")).isEqualTo("Europe/London"); in wellKnownCanonicalIDs()
41 assertThat(mFunction.apply("America/New_York")).isEqualTo("America/New_York"); in wellKnownCanonicalIDs()
42 assertThat(mFunction.apply("Europe/Volgograd")).isEqualTo("Europe/Volgograd"); in wellKnownCanonicalIDs()
47 assertThat(mFunction.apply("Etc/GMT-11")).isEqualTo("Etc/GMT-11"); in timeZonesAsGmtOffsetsTreatedAsCanonical()
52 assertThat(mFunction.apply("Mars/Base")).isEqualTo("Mars/Base"); in nonExistingOneMappedToThemselves()
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/bluetooth/
DBluetoothLeBroadcastMetadataExtTest.kt36 val subgroup = BluetoothLeBroadcastSubgroup.Builder().apply { in toQrCodeString_encrypted()
42 addChannel(BluetoothLeBroadcastChannel.Builder().apply { in toQrCodeString_encrypted()
47 addChannel(BluetoothLeBroadcastChannel.Builder().apply { in toQrCodeString_encrypted()
54 val metadata = BluetoothLeBroadcastMetadata.Builder().apply { in toQrCodeString_encrypted()
74 val subgroup = BluetoothLeBroadcastSubgroup.Builder().apply { in toQrCodeString_non_encrypted()
80 addChannel(BluetoothLeBroadcastChannel.Builder().apply { in toQrCodeString_non_encrypted()
87 val metadata = BluetoothLeBroadcastMetadata.Builder().apply { in toQrCodeString_non_encrypted()
105 val subgroup = BluetoothLeBroadcastSubgroup.Builder().apply { in toQrCodeString_NoChannelSelected()
111 addChannel(BluetoothLeBroadcastChannel.Builder().apply { in toQrCodeString_NoChannelSelected()
116 addChannel(BluetoothLeBroadcastChannel.Builder().apply { in toQrCodeString_NoChannelSelected()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DRemoteComposeBuffer.java132 Header.COMPANION.apply(mBuffer, width, height, capabilities); in header()
136 RootContentDescription.COMPANION.apply(mBuffer, contentDescriptionId); in header()
175 BitmapData.COMPANION.apply(mBuffer, imageId, imageWidth, imageHeight, data); in drawBitmap()
181 DrawBitmapInt.COMPANION.apply( in drawBitmap()
197 TextData.COMPANION.apply(mBuffer, id, text); in addText()
230 ClickArea.COMPANION.apply(mBuffer, id, contentDescriptionId, in addClickArea()
254 RootContentBehavior.COMPANION.apply(mBuffer, scroll, alignment, sizing, mode); in setRootContentBehavior()
284 DrawArc.COMPANION.apply(mBuffer, left, top, right, bottom, startAngle, sweepAngle); in addDrawArc()
308 BitmapData.COMPANION.apply(mBuffer, imageId, imageWidth, imageHeight, data); in addDrawBitmap()
314 DrawBitmap.COMPANION.apply( in addDrawBitmap()
[all …]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DAssignableFromTest.java33 assertTrue(assignableFrom.apply(testMethodFor(Animal.class))); in testSelfIsAssignable()
37 assertTrue(assignableFrom.apply(testMethodFor(Mammal.class))); in testSubclassesAreAssignable()
38 assertTrue(assignableFrom.apply(testMethodFor(Human.class))); in testSubclassesAreAssignable()
42 assertFalse(assignableFrom.apply(testMethodFor(Pencil.class))); in testNotAssignable()
48 assertTrue(assignableFrom.apply(testMethodFor(Pencil.class))); in testImplementorsAreAssignable()
49 assertTrue(assignableFrom.apply(testMethodFor(Pen.class))); in testImplementorsAreAssignable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationGroupingUtil.java79 public void apply(View parent, View view, boolean apply, boolean reset) {
82 icon.setGrayedOut(apply);
151 mProcessors.get(compI).apply(row); in updateChildrenAppearance()
228 mProcessors.get(compI).apply(row, true /* reset */); in restoreChildNotification()
283 public void apply(ExpandableNotificationRow row) { in apply() method in NotificationGroupingUtil.Processor
284 apply(row, false /* reset */); in apply()
287 public void apply(ExpandableNotificationRow row, boolean reset) { in apply() method in NotificationGroupingUtil.Processor
288 boolean apply = mApply && !reset; in apply()
290 applyToView(apply, reset, row.getNotificationViewWrapper().getNotificationHeader()); in apply()
293 applyToView(apply, reset, row.getPrivateLayout().getContractedChild()); in apply()
[all …]
/frameworks/base/libs/hwui/
DDisplayList.h202 auto apply(T&& t) { in apply() function
209 auto apply(T&& t) const { in apply() function
237 apply([&](auto& it) { it.updateChildren(std::move(updateFn)); }); in updateChildren()
251 return apply([](const auto& it) -> auto { return it.isEmpty(); }); in isEmpty()
259 return apply([](const auto& it) -> auto { return it.containsProjectionReceiver(); }); in containsProjectionReceiver()
271 return apply([](const auto& it) -> auto { return it.hasVectorDrawables(); }); in hasVectorDrawables()
285 return apply([](const auto& it) -> auto { return it.getUsedSize(); }); in getUsedSize()
289 return apply([](const auto& it) -> auto { return it.getAllocatedSize(); }); in getAllocatedSize()
293 apply([&](const auto& it) { it.output(output, level); }); in output()
297 return apply([](const auto& it) -> auto { return it.hasFunctor(); }); in hasFunctor()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DDexmakerShareClassLoaderRuleTest.java49 mRule.apply(ASSERT_STATEMENT, null).evaluate(); in rule_setsProperty()
54 mRule.apply(ASSERT_STATEMENT, null).evaluate(); in rule_resetsProperty()
61 mRule.apply(ASSERT_STATEMENT, null).evaluate(); in rule_resetsProperty_toExactValue()
67 mRule.apply(new Statement() { in rule_preventsOtherThreadFromInterfering()
75 new DexmakerShareClassLoaderRule().apply(ASSERT_STATEMENT, null).evaluate(); in rule_preventsOtherThreadFromInterfering()
96 mRule.apply(new Statement() { in rule_isReentrant()
100 new DexmakerShareClassLoaderRule().apply(ASSERT_STATEMENT, null).evaluate(); in rule_isReentrant()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessLowPowerModeModifierTest.java55 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOff()
64 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOn()
76 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndLowPowerBrightnessFactorHigh()
87 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndMinBrightness()
96 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndLowPowerAlreadyApplied()
99 mModifier.apply(mRequest, builder); in testApply_lowPowerModeOnAndLowPowerAlreadyApplied()
109 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOffAfterLowPowerOn()
113 mModifier.apply(mRequest, builder); in testApply_lowPowerModeOffAfterLowPowerOn()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarBoundsProviderTest.kt61 startSideContent = spy(FrameLayout(context)).apply { setBoundsOnScreen(START_SIDE_BOUNDS) } in <lambda>()
62 endSideContent = spy(FrameLayout(context)).apply { setBoundsOnScreen(END_SIDE_BOUNDS) } in <lambda>()
82 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } in <lambda>()
91 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } in <lambda>()
102 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } in <lambda>()
112 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } in <lambda>()
122 val newBounds = Rect(START_SIDE_BOUNDS).apply { right += 1 } in <lambda>()
131 val newBounds = Rect(START_SIDE_BOUNDS).apply { right += 1 } in <lambda>()
142 val newBounds = Rect(START_SIDE_BOUNDS).apply { right += 1 } in <lambda>()
152 val newBounds = Rect(START_SIDE_BOUNDS).apply { right += 1 } in <lambda>()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppListRepositoryTest.kt79 on { getUserInfo(ADMIN_USER_ID) } doReturn UserInfo().apply { in <lambda>()
160 mockInstalledApplications(listOf(ApplicationInfo().apply { in <lambda>()
163 mockInstalledApplications(listOf(ApplicationInfo().apply { in <lambda>()
178 val secondaryUserOnlyApp = ApplicationInfo().apply { in <lambda>()
194 val app = ApplicationInfo().apply { in <lambda>()
209 val app = ApplicationInfo().apply { in <lambda>()
225 val app = ApplicationInfo().apply { in <lambda>()
240 val app = ApplicationInfo().apply { in <lambda>()
254 val app = ApplicationInfo().apply { in <lambda>()
422 val NORMAL_APP = ApplicationInfo().apply { in getShowSystemPredicate()
[all …]
DApplicationInfosTest.kt61 val app = ApplicationInfo().apply { in userId()
72 val app = ApplicationInfo().apply { in userHandle()
83 val app = ApplicationInfo().apply { in hasFlag()
94 val app = ApplicationInfo().apply { in installed()
105 val app = ApplicationInfo().apply { in isDisabledUntilUsed()
116 val app = ApplicationInfo().apply { in isDisallowControl()
130 val app = ApplicationInfo().apply { in isActiveAdmin()
144 val app = ApplicationInfo().apply { in toRoute()
DPackageManagersTest.kt64 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasRequestPermission_requestedPermissionsIsNull_returnFalse()
77 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasRequestPermission_notRequested_returnFalse()
90 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasRequestPermission_requested_returnTrue()
114 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasGrantPermission_requestedPermissionsIsNull_returnFalse()
127 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasGrantPermission_notRequested_returnFalse()
141 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasGrantPermission_notGranted_returnFalse()
155 fakePackageManagerWrapper.fakePackageInfo = PackageInfo().apply { in hasGrantPermission_granted_returnTrue()
172 val APP = ApplicationInfo().apply { in <lambda>()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DComparableUtils.java48 assertTrue(name.apply(x) + " is less than " + name.apply(y), in assertAscendingOrdering()
65 assertTrue(name.apply(x) + " is equal to " + name.apply(y),
89 final String nameX = name.apply(x);
93 final String nameY = name.apply(y);
98 final String nameZ = name.apply(z);
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DTransactionManagerTest.java82 transactionRecord.apply(false /* shouldApplyIndependently */); in testStartNewTransaction()
137 mTransactionManager.getCurrentTransactionRecord().apply( in testGetCurrentTransactionRecord()
148 transactionRecord.apply(false /* shouldApplyIndependently */); in testApply()
158 transactionRecord.apply(true /* shouldApplyIndependently */); in testApply()
169 transactionRecord.apply(false /* shouldApplyIndependently */); in testApply()
180 transactionRecord.apply(true /* shouldApplyIndependently */); in testApply()
188 () -> record.apply(false /* shouldApplyIndependently */)); in testApply()
190 () -> record.apply(true /* shouldApplyIndependently */)); in testApply()
203 () -> transactionRecord.apply(false /* shouldApplyIndependently */)); in testAbort()
205 () -> transactionRecord.apply(true /* shouldApplyIndependently */)); in testAbort()
/frameworks/native/services/vibratorservice/
DVibratorManagerHalController.cpp54 HalResult<T> ManagerHalController::apply(ManagerHalController::hal_fn<T>& halFn, in apply() function in android::vibrator::ManagerHalController
94 return apply(pingFn, "ping"); in ping()
110 return apply(getCapabilitiesFn, "getCapabilities"); in getCapabilities()
117 return apply(getVibratorIdsFn, "getVibratorIds"); in getVibratorIds()
123 return apply(getVibratorFn, "getVibrator"); in getVibrator()
130 return apply(prepareSyncedFn, "prepareSynced"); in prepareSynced()
138 return apply(triggerSyncedFn, "triggerSynced"); in triggerSynced()
145 return apply(cancelSyncedFn, "cancelSynced"); in cancelSynced()

12345678910>>...62