/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationHeaderUtil.java | 69 public void apply(View parent, View view, boolean apply, boolean reset) { 75 applyToChild(icon, apply, header.getOriginalIconColor()); 76 applyToChild(expand, apply, header.getOriginalNotificationColor()); 172 mComparators.get(compI).apply(row); in updateChildrenHeaderAppearance() 248 mComparators.get(compI).apply(row, true /* reset */); in restoreNotificationHeader() 301 public void apply(ExpandableNotificationRow row) { in apply() method in NotificationHeaderUtil.HeaderProcessor 302 apply(row, false /* reset */); in apply() 305 public void apply(ExpandableNotificationRow row, boolean reset) { in apply() method in NotificationHeaderUtil.HeaderProcessor 306 boolean apply = mApply && !reset; in apply() 308 applyToView(apply, reset, row.getNotificationHeader()); in apply() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerRenderTypeTransaction_test.cpp | 64 Transaction().setPosition(layer, 5, 10).apply(); in TEST_P() 83 Transaction().setPosition(layer, 0.5f - epsilon, 0.5f - epsilon).apply(); in TEST_P() 89 Transaction().setPosition(layer, 0.5f + epsilon, 0.5f + epsilon).apply(); in TEST_P() 101 Transaction().setPosition(layer, -32, -32).apply(); in TEST_P() 107 Transaction().setPosition(layer, mDisplayWidth, mDisplayHeight).apply(); in TEST_P() 120 Transaction().setPosition(layer, -30, -30).apply(); in TEST_P() 126 Transaction().setPosition(layer, mDisplayWidth - 2, mDisplayHeight - 2).apply(); in TEST_P() 142 Transaction().setPosition(layer, 5, 10).setSize(layer, 64, 64).apply(); in TEST_P() 163 Transaction().setSize(layer, 64, 64).apply(); in TEST_P() 191 .apply(); in TEST_P() [all …]
|
D | RelativeZ_test.cpp | 76 .apply(); in TEST_F() 86 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F() 91 Transaction{}.reparent(childLayer, mBackgroundLayer->getHandle()).apply(); in TEST_F() 125 .apply(); in TEST_F() 135 Transaction{}.reparent(childLevel1, nullptr).apply(); in TEST_F() 143 Transaction{}.reparent(childLevel1, mForegroundLayer->getHandle()).apply(); in TEST_F() 168 .apply(); in TEST_F() 180 Transaction{}.reparent(relativeToLayer, nullptr).apply(); in TEST_F() 191 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F() 202 Transaction{}.reparent(childLayer, mForegroundLayer->getHandle()).apply(); in TEST_F() [all …]
|
D | MirrorLayer_test.cpp | 63 .apply(); in TEST_F() 74 .apply(); in TEST_F() 86 Transaction().setColor(grandchild, half3{1, 1, 1}).apply(); in TEST_F() 97 Transaction().setColor(mChildLayer, half3{0, 0, 0}).apply(); in TEST_F() 108 Transaction().reparent(grandchild, nullptr).apply(); in TEST_F() 119 Transaction().reparent(mChildLayer, nullptr).apply(); in TEST_F() 130 Transaction().reparent(grandchild, mChildLayer->getHandle()).apply(); in TEST_F() 141 Transaction().reparent(mChildLayer, mParentLayer->getHandle()).apply(); in TEST_F() 156 Transaction().show(bufferQueueLayer).apply(); in TEST_F() 163 .apply(); in TEST_F() [all …]
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 68 Transaction().setLayer(layerR, mLayerZBase + 1).apply(); in TEST_P() 74 Transaction().setLayer(layerG, mLayerZBase + 2).apply(); in TEST_P() 93 .apply(); in TEST_P() 95 Transaction().reparent(layerG, nullptr).apply(); in TEST_P() 106 Transaction().setFlags(layer, layer_state_t::eLayerHidden, layer_state_t::eLayerHidden).apply(); in TEST_P() 112 Transaction().setFlags(layer, 0, layer_state_t::eLayerHidden).apply(); in TEST_P() 131 .apply(); in TEST_P() 137 Transaction().setFlags(layerR, 0, layer_state_t::eLayerOpaque).apply(); in TEST_P() 149 Transaction().setCrop_legacy(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P() 160 .apply(); in TEST_P() [all …]
|
D | LayerTypeTransaction_test.cpp | 46 Transaction().setCrop_legacy(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P() 57 Transaction().reparent(layerB, parent->getHandle()).apply(); in TEST_P() 60 Transaction().setRelativeLayer(layerG, layerR->getHandle(), -1).setLayer(layerB, -2).apply(); in TEST_P() 87 .apply(); in TEST_P() 92 .apply(); in TEST_P() 105 .apply(); in TEST_P() 140 .apply(); in TEST_P() 142 Transaction().setRelativeLayer(childLayer, relativeParent->getHandle(), 1).apply(); in TEST_P() 152 Transaction().hide(relativeParent).apply(); in TEST_P() 172 .apply(true); in TEST_P() [all …]
|
D | LayerCallback_test.cpp | 99 transaction.apply(); in TEST_F() 118 transaction.setFrame(layer, Rect(0, 0, 32, 32)).apply(); in TEST_F() 138 transaction.setFrame(layer, Rect(0, 0, 32, 32)).apply(); in TEST_F() 157 transaction.setFrame(layer, Rect(0, 0, 32, 32)).apply(); in TEST_F() 174 transaction.apply(); in TEST_F() 192 transaction.setFrame(layer, Rect(-100, -100, 100, 100)).apply(); in TEST_F() 218 transaction2.setFrame(layer2, Rect(32, 32, 64, 64)).merge(std::move(transaction1)).apply(); in TEST_F() 245 transaction2.setFrame(layer2, Rect(32, 32, 64, 64)).merge(std::move(transaction1)).apply(); in TEST_F() 273 transaction2.setFrame(layer2, Rect(32, 32, 64, 64)).merge(std::move(transaction1)).apply(); in TEST_F() 300 transaction2.merge(std::move(transaction1)).apply(); in TEST_F() [all …]
|
D | LayerUpdate_test.cpp | 116 .apply(); in TEST_F() 123 Transaction{}.detachChildren(mFGSurfaceControl).apply(); in TEST_F() 131 Transaction{}.hide(relative).apply(); in TEST_F() 266 .apply(true); in TEST_F() 274 .apply(true); in TEST_F() 298 t1.apply(); in TEST_F() 307 Transaction().hide(mFGSurfaceControl).apply(); in TEST_F() 321 t1.apply(); in TEST_F() 545 Transaction().reparent(mChild, nullptr).apply(); in TEST_F() 678 .apply(); in TEST_F() [all …]
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
D | AssignableFromTest.java | 33 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()
|
D | TestPredicatesTest.java | 48 return TestPredicates.hasAnnotation(Example.class).apply(testMethod); in hasExampleAnnotation() 78 public boolean apply(Object o) { 84 public boolean apply(Object o) { 90 assertTrue(TestPredicates.not(FALSE).apply(null)); in testNotPredicate() 91 assertFalse(TestPredicates.not(TRUE).apply(null)); in testNotPredicate()
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | DexmakerShareClassLoaderRuleTest.java | 49 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AppEntitiesHeaderControllerTest.java | 72 mController.setHeaderTitleRes(R.string.expand_button_title).apply(); in setHeaderTitleRes_setTextRes_shouldSetToTitleView() 80 mController.setHeaderDetailsRes(R.string.expand_button_title).apply(); in setHeaderDetailsRes_setTextRes_shouldSetToDetailsView() 88 mController.setHeaderDetails(TITLE).apply(); in setHeaderDetails_onlyDetailsTextSet_shouldSetToDetailsView() 97 mController.setHeaderDetails(TITLE).apply(); in setHeaderDetails_detailsTextAndResBothSet_shouldSetTextToDetailsView() 106 }).apply(); in setHeaderDetailsClickListener_setClickListener_detailsViewAttachClickListener() 128 mController.setAppEntity(0, mAppEntityInfo).apply(); in setAppEntity_addAppToIndex0_shouldShowAppView1() 143 mController.setAppEntity(1, mAppEntityInfo).apply(); in setAppEntity_addAppToIndex1_shouldShowAppView2() 158 mController.setAppEntity(2, mAppEntityInfo).apply(); in setAppEntity_addAppToIndex2_shouldShowAppView3() 174 .setAppEntity(1, mAppEntityInfo).apply(); in removeAppEntity_removeIndex0_shouldNotShowAppView1() 181 mController.removeAppEntity(0).apply(); in removeAppEntity_removeIndex0_shouldNotShowAppView1() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | ComparableUtils.java | 48 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationShadeWindowController.java | 377 private void apply(State state) { in apply() method in NotificationShadeWindowController 448 apply(mCurrentState); in setKeyguardShowing() 453 apply(mCurrentState); in setKeyguardOccluded() 458 apply(mCurrentState); in setKeyguardNeedsInput() 464 apply(mCurrentState); in setPanelVisible() 469 apply(mCurrentState); in setNotificationShadeFocusable() 474 apply(mCurrentState); in setBouncerShowing() 479 apply(mCurrentState); in setBackdropShowing() 484 apply(mCurrentState); in setKeyguardFadingAway() 489 apply(mCurrentState); in setQsExpanded() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowAnimationSpecTest.java | 65 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipNone() 75 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfter() 86 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfterOffsetPosition() 97 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeNoAnimationBounds() 111 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeNoStackBounds() 121 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_setCornerRadius() 124 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_setCornerRadius() 135 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_setCornerRadius_noClip() 147 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeSmallerAnimationClip() 160 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeSmallerStackClip()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsAnimations.kt | 107 val alphaAnimator = ObjectAnimator.ofFloat(view, "transitionAlpha", 0.0f, 1.0f).apply { in <lambda>() 113 val yAnimator = ObjectAnimator.ofFloat(view, "translationY", 0.0f).apply { in <lambda>() 119 return AnimatorSet().apply { in <lambda>() 133 val alphaAnimator = ObjectAnimator.ofFloat(view, "transitionAlpha", 0.0f).apply { in <lambda>() 139 val yAnimator = ObjectAnimator.ofFloat(view, "translationY", -translationY).apply { in <lambda>() 144 return AnimatorSet().apply { in <lambda>() 157 WindowTransition({ view: View -> enterAnimation(view) }).apply { in <lambda>() 162 WindowTransition({ view: View -> exitAnimation(view) }).apply { in <lambda>()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | CryptoSettings.java | 129 mSharedPreferences.edit().putString(KEY_ACTIVE_SECONDARY_ALIAS, activeAlias).apply(); in setActiveSecondaryKeyAlias() 141 mSharedPreferences.edit().putString(KEY_NEXT_SECONDARY_ALIAS, nextAlias).apply(); in setNextSecondaryAlias() 149 mSharedPreferences.edit().remove(KEY_NEXT_SECONDARY_ALIAS).apply(); in removeNextSecondaryKeyAlias() 158 mSharedPreferences.edit().putLong(SECONDARY_KEY_LAST_ROTATED_AT, timestamp).apply(); in setSecondaryLastRotated() 178 mSharedPreferences.edit().putBoolean(KEY_IS_INITIALIZED, true).apply(); in setIsInitialized() 206 .apply(); in setAncestralSecondaryKeyVersion() 220 sharedPrefsEditor.apply(); in clearAllSettingsForBackup()
|
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/ |
D | PackageSessionTests.kt | 81 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>() 94 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>() 107 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>() 120 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>() 148 .apply { in <lambda>() 175 .apply { in <lambda>()
|
/frameworks/ex/common/java/com/android/common/ |
D | OperationScheduler.java | 228 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time)); in getTimeBefore() 242 SharedPreferencesCompat.apply( in setTriggerTimeMillis() 254 SharedPreferencesCompat.apply(mStorage.edit() in setMoratoriumTimeMillis() 290 SharedPreferencesCompat.apply( in setEnabledState() 301 SharedPreferencesCompat.apply(mStorage.edit() in onSuccess() 319 SharedPreferencesCompat.apply(editor); in onTransientError() 329 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "errorCount")); in resetTransientError() 339 SharedPreferencesCompat.apply(mStorage.edit().putBoolean(PREFIX + "permanentError", true)); in onPermanentError() 347 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "permanentError")); in resetPermanentError()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest10.java | 62 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_validResult() 77 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_alreadyPinned() 110 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_alreadyPinnedByAnother() 125 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testCreateShortcutResult_defaultLauncherChanges() 133 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_2, USER_0)); in testCreateShortcutResult_defaultLauncherChanges() 169 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testStartConfigActivity_defaultLauncher() 177 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testStartConfigActivity_nonDefaultLauncher()
|
D | ShortcutManagerTest8.java | 92 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testIsRequestPinShortcutSupported() 93 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in testIsRequestPinShortcutSupported() 170 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testRequestPinShortcut_notSupported() 223 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testNotForeground() 252 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in checkRequestPinShortcut() 253 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in checkRequestPinShortcut() 335 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testRequestPinShortcut_explicitTargetActivity() 336 setDefaultLauncher(USER_10, mMainActivityFetcher.apply(LAUNCHER_2, USER_10)); in testRequestPinShortcut_explicitTargetActivity() 391 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testRequestPinShortcut_wrongTargetActivity() 409 setDefaultLauncher(USER_0, mMainActivityFetcher.apply(LAUNCHER_1, USER_0)); in testRequestPinShortcut_noTargetActivity_noMainActivity() [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | ColorSpace.h | 154 return apply(v, mOETF); in fromLinear() 162 return apply(v, mEOTF); in toLinear() 171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper); in xyzToRGB() 288 float3 linear = mSource.toLinear(apply(v, mSource.getClamper())); in transform() 289 return apply(mDestination.fromLinear(mTransform * linear), mDestination.getClamper()); in transform() 293 float3 linear = apply(v, mSource.getClamper()); in transformLinear() 294 return apply(mTransform * linear, mDestination.getClamper()); in transformLinear()
|
/frameworks/native/libs/ui/include/ui/ |
D | ColorSpace.h | 154 return apply(v, mOETF); in fromLinear() 162 return apply(v, mEOTF); in toLinear() 171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper); in xyzToRGB() 288 float3 linear = mSource.toLinear(apply(v, mSource.getClamper())); in transform() 289 return apply(mDestination.fromLinear(mTransform * linear), mDestination.getClamper()); in transform() 293 float3 linear = apply(v, mSource.getClamper()); in transformLinear() 294 return apply(mTransform * linear, mDestination.getClamper()); in transformLinear()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | DetailDialog.kt | 77 requireViewById<ViewGroup>(R.id.controls_activity_view).apply { in <lambda>() 81 requireViewById<ImageView>(R.id.control_detail_close).apply { in <lambda>() 85 requireViewById<ImageView>(R.id.control_detail_open_in_app).apply { in <lambda>() 96 activityView.apply { in <lambda>() 106 requireViewById<ViewGroup>(R.id.control_detail_root).apply { in <lambda>()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | DexmakerShareClassLoaderRule.java | 48 public Statement apply(Statement base, Description description) { in apply() method in DexmakerShareClassLoaderRule 49 return apply(base::evaluate).toStatement(); in apply() 61 apply(r::run).run(); in runWithDexmakerShareClassLoader() 71 private static <T extends Throwable> ThrowingRunnable<T> apply(ThrowingRunnable<T> r) { in apply() method in DexmakerShareClassLoaderRule
|