/frameworks/native/libs/renderengine/skia/filters/ |
D | StretchShaderFactory.cpp | 218 if (mBuilder == nullptr) { in createSkShader() 221 mBuilder = std::make_unique<SkRuntimeShaderBuilder>(instance.effect); in createSkShader() 224 mBuilder->child("uContentTexture") = inputShader; in createSkShader() 225 mBuilder->uniform("uInterpolationStrength").set(&INTERPOLATION_STRENGTH_VALUE, 1); in createSkShader() 226 mBuilder->uniform("uStretchAffectedDistX").set(&StretchEffect::CONTENT_DISTANCE_STRETCHED, 1); in createSkShader() 227 mBuilder->uniform("uStretchAffectedDistY").set(&StretchEffect::CONTENT_DISTANCE_STRETCHED, 1); in createSkShader() 228 mBuilder->uniform("uDistanceStretchedX").set(&distanceStretchedX, 1); in createSkShader() 229 mBuilder->uniform("uDistanceStretchedY").set(&distanceStretchedY, 1); in createSkShader() 230 mBuilder->uniform("uInverseDistanceStretchedX").set(&inverseDistanceStretchedX, 1); in createSkShader() 231 mBuilder->uniform("uInverseDistanceStretchedY").set(&inverseDistanceStretchedY, 1); in createSkShader() [all …]
|
D | StretchShaderFactory.h | 32 std::unique_ptr<SkRuntimeShaderBuilder> mBuilder;
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
D | BrightnessLowPowerModeModifierTest.java | 41 private final DisplayBrightnessState.Builder mBuilder = prepareBuilder(); field in BrightnessLowPowerModeModifierTest 55 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOff() 57 assertEquals(DEFAULT_BRIGHTNESS, mBuilder.getBrightness(), FLOAT_TOLERANCE); in testApply_lowPowerModeOff() 58 assertEquals(0, mBuilder.getBrightnessReason().getModifier()); in testApply_lowPowerModeOff() 59 assertTrue(mBuilder.isSlowChange()); in testApply_lowPowerModeOff() 64 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOn() 66 assertEquals(EXPECTED_LOW_POWER_BRIGHTNESS, mBuilder.getBrightness(), FLOAT_TOLERANCE); in testApply_lowPowerModeOn() 68 mBuilder.getBrightnessReason().getModifier()); in testApply_lowPowerModeOn() 69 assertFalse(mBuilder.isSlowChange()); in testApply_lowPowerModeOn() 76 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndLowPowerBrightnessFactorHigh() [all …]
|
D | DisplayDimModifierTest.java | 58 private final DisplayBrightnessState.Builder mBuilder = prepareBuilder(); field in DisplayDimModifierTest 78 mModifier.apply(mRequest, mBuilder); in testApply_noDimPolicy() 80 assertEquals(DEFAULT_BRIGHTNESS, mBuilder.getBrightness(), FLOAT_TOLERANCE); in testApply_noDimPolicy() 81 assertEquals(0, mBuilder.getBrightnessReason().getModifier()); in testApply_noDimPolicy() 82 assertTrue(mBuilder.isSlowChange()); in testApply_noDimPolicy() 87 mBuilder.setBrightness(0.4f); in testApply_dimPolicyFromResources() 88 mModifier.apply(mRequest, mBuilder); in testApply_dimPolicyFromResources() 90 assertEquals(0.4f - MIN_DIM_AMOUNT, mBuilder.getBrightness(), FLOAT_TOLERANCE); in testApply_dimPolicyFromResources() 92 mBuilder.getBrightnessReason().getModifier()); in testApply_dimPolicyFromResources() 93 assertFalse(mBuilder.isSlowChange()); in testApply_dimPolicyFromResources() [all …]
|
/frameworks/base/libs/hwui/effects/ |
D | StretchEffect.cpp | 207 if (mBuilder == nullptr) { in getShader() 208 mBuilder = std::make_unique<SkRuntimeShaderBuilder>(getStretchEffect()); in getShader() 211 mBuilder->child(CONTENT_TEXTURE) = in getShader() 214 mBuilder->uniform("uInterpolationStrength").set(&INTERPOLATION_STRENGTH_VALUE, 1); in getShader() 215 mBuilder->uniform("uStretchAffectedDistX").set(&width, 1); in getShader() 216 mBuilder->uniform("uStretchAffectedDistY").set(&height, 1); in getShader() 217 mBuilder->uniform("uDistanceStretchedX").set(&distanceStretchedX, 1); in getShader() 218 mBuilder->uniform("uDistanceStretchedY").set(&distanceStretchedY, 1); in getShader() 219 mBuilder->uniform("uInverseDistanceStretchedX").set(&inverseDistanceStretchedX, 1); in getShader() 220 mBuilder->uniform("uInverseDistanceStretchedY").set(&inverseDistanceStretchedY, 1); in getShader() [all …]
|
D | GainmapRenderer.cpp | 175 SkRuntimeShaderBuilder mBuilder{mShader}; member in android::uirenderer::DeferredGainmapShader 211 mBuilder.child("linearBase") = std::move(linearBaseImageShader); in setupChildren() 212 mBuilder.child("base") = std::move(baseImageShader); in setupChildren() 213 mBuilder.child("gainmap") = std::move(gainmapImageShader); in setupChildren() 214 mBuilder.child("workingSpaceToLinearSrgb") = std::move(colorXformGainmapToDst); in setupChildren() 237 mBuilder.uniform("logRatioMin") = logRatioMin; in setupGenericUniforms() 238 mBuilder.uniform("logRatioMax") = logRatioMax; in setupGenericUniforms() 239 mBuilder.uniform("gainmapGamma") = gainmapInfo.fGainmapGamma; in setupGenericUniforms() 240 mBuilder.uniform("epsilonSdr") = gainmapInfo.fEpsilonSdr; in setupGenericUniforms() 241 mBuilder.uniform("epsilonHdr") = gainmapInfo.fEpsilonHdr; in setupGenericUniforms() [all …]
|
D | StretchEffect.h | 115 mBuilder = nullptr; in clear() 133 mutable std::unique_ptr<SkRuntimeShaderBuilder> mBuilder; variable
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardBuilder.java | 121 private StringBuilder mBuilder; field in VCardBuilder 190 mBuilder = new StringBuilder(); in clear() 322 mBuilder.append(VCardConstants.PROPERTY_N); in appendNamePropertiesV40() 327 mBuilder.append(VCARD_PARAM_SEPARATOR); in appendNamePropertiesV40() 331 mBuilder.append("SORT-AS=").append( in appendNamePropertiesV40() 335 mBuilder.append(VCARD_DATA_SEPARATOR); in appendNamePropertiesV40() 336 mBuilder.append(escapedFamily); in appendNamePropertiesV40() 337 mBuilder.append(VCARD_ITEM_SEPARATOR); in appendNamePropertiesV40() 338 mBuilder.append(escapedGiven); in appendNamePropertiesV40() 339 mBuilder.append(VCARD_ITEM_SEPARATOR); in appendNamePropertiesV40() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SysUiStatsEvent.java | 27 private final StatsEvent.Builder mBuilder; field in SysUiStatsEvent.Builder 30 mBuilder = builder; in Builder() 34 return mBuilder.build(); in build() 38 mBuilder.setAtomId(atomId); in setAtomId() 43 mBuilder.writeInt(value); in writeInt() 48 mBuilder.addBooleanAnnotation(annotation, value); in addBooleanAnnotation() 53 mBuilder.writeString(value); in writeString() 58 mBuilder.writeBoolean(value); in writeBoolean() 63 mBuilder.writeByteArray(value); in writeByteArray()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | RadioMetadataTest.java | 52 private final RadioMetadata.Builder mBuilder = new RadioMetadata.Builder(); field in RadioMetadataTest 105 mBuilder.putString(invalidStringKey, "value"); in putString_withIllegalKey() 118 mBuilder.putInt(invalidIntKey, INT_KEY_VALUE); in putInt_withIllegalKey() 131 mBuilder.putBitmap(invalidIntKey, mBitmapValue); in putBitmap_withIllegalKey() 144 mBuilder.putClock(invalidClockKey, /* utcSecondsSinceEpoch= */ 1, in putClock_withIllegalKey() 159 mBuilder.putStringArray(invalidStringArrayKey, UFIDS_VALUE); in putStringArray_withIllegalKey_throwsException() 172 mBuilder.putStringArray(/* key= */ null, UFIDS_VALUE); in putStringArray_withNullKey_throwsException() 184 mBuilder.putStringArray(RadioMetadata.METADATA_KEY_UFIDS, /* value= */ null); in putStringArray_withNullString_throwsException() 194 RadioMetadata metadata = mBuilder.putInt(key, INT_KEY_VALUE).build(); in containsKey_withKeyInMetadata() 203 RadioMetadata metadata = mBuilder.putInt(key, INT_KEY_VALUE).build(); in containsKey_withKeyNotInMetadata() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 130 private Builder mBuilder; field in Layout 145 mBuilder = builder; in Layout() 164 if (mBuilder.hasNavBar()) { in Layout() 165 navBar = createNavBar(getContext(), mBuilder.useGestureNav(), density, isRtl, in Layout() 174 if (mBuilder.hasAppCompatActionBar()) { in Layout() 181 if (mBuilder.hasTitleBar()) { in Layout() 184 } else if (mBuilder.hasFrameworkActionBar()) { in Layout() 200 mBuilder = null; in Layout() 234 int rule = mBuilder.isNavBarVertical() ? RelativeLayout.START_OF : RelativeLayout.ABOVE; in createContentFrame() 235 if (mBuilder.hasSolidNavBar()) { in createContentFrame() [all …]
|
/frameworks/base/core/java/android/util/ |
D | LogWriter.java | 30 private StringBuilder mBuilder = new StringBuilder(128); field in LogWriter 76 mBuilder.append(c); in write() 82 if (mBuilder.length() > 0) { in flushBuilder() 83 Log.println_native(mBuffer, mPriority, mTag, mBuilder.toString()); in flushBuilder() 84 mBuilder.delete(0, mBuilder.length()); in flushBuilder()
|
D | StringBuilderPrinter.java | 25 private final StringBuilder mBuilder; field in StringBuilderPrinter 33 mBuilder = builder; in StringBuilderPrinter() 37 mBuilder.append(x); in println() 40 mBuilder.append('\n'); in println()
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | ExtendedMockitoRuleTest.java | 74 private final ExtendedMockitoRule.Builder mBuilder = field in ExtendedMockitoRuleTest 98 assertThrows(NullPointerException.class, () -> mBuilder.setStrictness(null)); in testBuilder_setStrictness_null() 103 assertThrows(NullPointerException.class, () -> mBuilder.mockStatic(null)); in testBuilder_mockStatic_null() 108 assertThrows(NullPointerException.class, () -> mBuilder.spyStatic(null)); in testBuilder_spyStatic_null() 114 () -> mBuilder.addStaticMockFixtures((Supplier<StaticMockFixture>) null)); in testBuilder_addStaticMockFixtures_null() 119 assertThrows(NullPointerException.class, () -> mBuilder.afterSessionFinished(null)); in testBuilder_afterSessionFinished_null() 125 () -> mBuilder.setMockitoFrameworkForTesting(null)); in testBuilder_setMockitoFrameworkForTesting_null() 131 () -> mBuilder.setMockitoSessionForTesting(null)); in testBuilder_setMockitoSessionForTesting_null() 136 mBuilder.build().apply(mStatement, mDescription).evaluate(); in testMocksInitialized() 171 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMocksStatic() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 145 private DisplayRotationBuilder mBuilder; field in DisplayRotationTests 177 mBuilder = new DisplayRotationBuilder(); in setUp() 195 mBuilder.build(); in testLocksUserRotation_LockRotation_DefaultDisplay() 210 mBuilder.setIsDefaultDisplay(false).build(); in testPersistsUserRotation_LockRotation_NonDefaultDisplay() 223 mBuilder.setIsDefaultDisplay(false).build(); in testUserRotationSystemProperty_NonDefault_InternalDisplay() 238 mBuilder.setIsDefaultDisplay(false).build(); in testUserRotationSystemProperty_NonDefault_ExternalDisplay() 253 mBuilder.setIsDefaultDisplay(false).build(); in testUserRotationSystemProperty_NonDefault_OverlayDisplay() 268 mBuilder.setIsDefaultDisplay(false).build(); in testUserRotationSystemProperty_NonDefault_VirtualDisplay() 296 mBuilder.build(); in testPersistUserRotation_UnlockRotation_DefaultDisplay() 308 mBuilder.setIsDefaultDisplay(false).build(); in testPersistsUserRotation_UnlockRotation_NonDefaultDisplay() [all …]
|
D | DeviceStateControllerTests.java | 55 private DeviceStateControllerBuilder mBuilder; field in DeviceStateControllerTests 66 mBuilder = new DeviceStateControllerBuilder(); in setUp() 71 mBuilder.setSupportFold(supportFold, supportHalfFold); in initialize() 75 mBuilder.setDelegate(mDelegate); in initialize() 76 mBuilder.build(); in initialize()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | KMLFormatter.java | 70 private StringBuilder mBuilder; field in KMLFormatter.LineBuilder 73 mBuilder = new StringBuilder(); in LineBuilder() 77 mBuilder.append(line); in addLine() 78 mBuilder.append("\n"); in addLine() 83 return mBuilder.toString(); in toString()
|
/frameworks/base/tests/utils/testutils/tests/src/com/android/test/filters/ |
D | SelectTestTests.java | 90 private SelectTestBuilder mBuilder; field in SelectTestTests 94 mBuilder = new SelectTestBuilder(); in setUp() 193 final Filter filter = mBuilder.build(); in testFilterDisabled() 199 final Filter filter = mBuilder.withSelectTest(PACKAGE_A, PACKAGE_B).build(); in testSelectPackage() 205 final Filter filter = mBuilder.withSelectTest(CLASS_A1, CLASS_A2, CLASS_B3).build(); in testSelectClass() 211 final Filter filter = mBuilder in testSelectMethod() 218 final Filter filter = mBuilder.withSelectTest(CLASS_A1, PACKAGE_B, CLASS_C5).build(); in testSelectClassAndPackage() 224 final Filter filter = mBuilder.withSelectTest(METHOD_A1K, PACKAGE_B, METHOD_C5W).build(); in testSelectMethodAndPackage() 230 final Filter filter = mBuilder.withSelectTest(METHOD_A1K, CLASS_C5, METHOD_B3P).build(); in testSelectMethodAndClass() 236 final Filter filter = mBuilder.withSelectTest( in testSelectClassAndSamePackage() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | ZenDurationDialogTest.java | 48 private AlertDialog.Builder mBuilder; field in ZenDurationDialogTest 59 mBuilder = new AlertDialog.Builder(mContext); in setup() 66 mController.setupDialog(mBuilder); in testAlwaysPrompt() 80 mController.setupDialog(mBuilder); in testForever() 93 mController.setupDialog(mBuilder); in testSpecificDuration() 108 mController.setupDialog(mBuilder); in testChooseAlwaysPromptSetting() 122 mController.setupDialog(mBuilder); in testChooseForeverSetting() 136 mController.setupDialog(mBuilder); in testChooseTimeSetting() 151 mController.setupDialog(mBuilder); in testGetTimeFromBucket() 215 mController.setupDialog(mBuilder); in testAccessibility()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationRowContentBinderImplTest.kt | 69 private lateinit var mBuilder: Notification.Builder in <lambda>() variable in com.android.systemui.statusbar.notification.row.NotificationRowContentBinderImplTest 100 mBuilder = in <lambda>() 107 val row = mHelper.createRow(mBuilder.build()) in <lambda>() 128 val builder = spy(mBuilder) in <lambda>() 146 val builder = spy(mBuilder) in <lambda>() 278 mBuilder.setStyle(Notification.MediaStyle()) in <lambda>() 279 val mediaView = mBuilder.createContentView() in <lambda>() 280 mBuilder.setStyle(Notification.DecoratedCustomViewStyle()) in <lambda>() 281 mBuilder.setCustomContentView( in <lambda>() 284 val decoratedMediaView = mBuilder.createContentView() in <lambda>() [all …]
|
D | NotificationContentInflaterTest.java | 90 private Notification.Builder mBuilder; field in NotificationContentInflaterTest 122 mBuilder = new Notification.Builder(mContext).setSmallIcon( in setUp() 131 ExpandableNotificationRow row = mHelper.createRow(mBuilder.build()); in setUp() 152 Notification.Builder builder = spy(mBuilder); in testIncreasedHeadsUpBeingUsed() 169 Notification.Builder builder = spy(mBuilder); in testIncreasedHeightBeingUsed() 276 mBuilder.setStyle(new Notification.MediaStyle()); in doesntReapplyDisallowedRemoteView() 277 RemoteViews mediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView() 278 mBuilder.setStyle(new Notification.DecoratedCustomViewStyle()); in doesntReapplyDisallowedRemoteView() 279 mBuilder.setCustomContentView(new RemoteViews(getContext().getPackageName(), in doesntReapplyDisallowedRemoteView() 281 RemoteViews decoratedMediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView() [all …]
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 7875 protected Builder mBuilder; field in Notification.Builder.Style 7894 if (mBuilder != builder) { in setBuilder() 7895 mBuilder = builder; in setBuilder() 7896 if (mBuilder != null) { in setBuilder() 7897 mBuilder.setStyle(this); in setBuilder() 7903 if (mBuilder == null) { in checkBuilder() 7910 StandardTemplateParams p = mBuilder.mParams.reset() in getStandardView() 7912 .fillTextsFrom(mBuilder); in getStandardView() 7934 return mBuilder.applyStandardTemplateWithActions(layoutId, p, result); in getStandardView() 8029 return mBuilder.build(); in build() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | DialogPreference.java | 64 private AlertDialog.Builder mBuilder; field in DialogPreference 315 mBuilder = new AlertDialog.Builder(context) in showDialog() 324 mBuilder.setView(contentView); in showDialog() 326 mBuilder.setMessage(mDialogMessage); in showDialog() 329 onPrepareDialogBuilder(mBuilder); in showDialog() 334 final Dialog dialog = mDialog = mBuilder.create(); in showDialog() 390 LayoutInflater inflater = LayoutInflater.from(mBuilder.getContext()); in onCreateDialogView()
|
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/ |
D | ValidatorHierarchy.java | 30 public @Nullable ValidatorResult.Builder mBuilder = null; field in ValidatorHierarchy 40 return mBuilder != null && mView != null; in isHierarchyBuilt()
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 2017 private Builder mBuilder; field in EditStyledText.StyledTextDialog 2038 mBuilder = builder; in setBuilder() 2072 if (mBuilder == null) { in checkColorAlertParams() 2089 if (mBuilder == null) { in checkSizeAlertParams() 2108 if (mBuilder == null) { in checkAlignAlertParams() 2122 if (mBuilder == null) { in checkMarqueeAlertParams() 2134 mBuilder.setTitle(title); in buildDialogue() 2135 mBuilder.setIcon(0); in buildDialogue() 2136 mBuilder.setPositiveButton(null, null); in buildDialogue() 2137 mBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in buildDialogue() [all …]
|