Home
last modified time | relevance | path

Searched refs:mBuilder (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/native/libs/renderengine/skia/filters/
DStretchShaderFactory.cpp218 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 …]
DStretchShaderFactory.h32 std::unique_ptr<SkRuntimeShaderBuilder> mBuilder;
/frameworks/base/libs/hwui/effects/
DStretchEffect.cpp207 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 …]
DStretchEffect.h115 mBuilder = nullptr; in clear()
133 mutable std::unique_ptr<SkRuntimeShaderBuilder> mBuilder; variable
/frameworks/opt/vcard/java/com/android/vcard/
DVCardBuilder.java121 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/
DSysUiStatsEvent.java27 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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/
DKeyValueListingBuilderTest.java47 private KeyValueListingBuilder mBuilder; field in KeyValueListingBuilderTest
51 mBuilder = new KeyValueListingBuilder(); in setUp()
56 assertThrows(NullPointerException.class, () -> mBuilder.addPair(null, TEST_HASH_1)); in addPair_nullKey_throws()
61 assertThrows(IllegalArgumentException.class, () -> mBuilder.addPair("", TEST_HASH_1)); in addPair_emptyKey_throws()
66 assertThrows(NullPointerException.class, () -> mBuilder.addPair(TEST_KEY_1, null)); in addPair_nullHash_throws()
71 KeyValueListingProto.KeyValueListing listing = mBuilder.build(); in build_noPairs_buildsEmptyListing()
78 mBuilder.addPair(TEST_KEY_1, TEST_HASH_1); in build_returnsCorrectListing()
80 KeyValueListingProto.KeyValueListing listing = mBuilder.build(); in build_returnsCorrectListing()
95 mBuilder.addAll(pairs); in addAll_addsAllPairsInMap()
96 KeyValueListingProto.KeyValueListing listing = mBuilder.build(); in addAll_addsAllPairsInMap()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java126 private Builder mBuilder; field in Layout
141 mBuilder = builder; in Layout()
160 if (mBuilder.hasNavBar()) { in Layout()
170 if (mBuilder.hasAppCompatActionBar()) { in Layout()
177 if (mBuilder.hasTitleBar()) { in Layout()
180 } else if (mBuilder.hasFrameworkActionBar()) { in Layout()
196 mBuilder = null; in Layout()
211 int rule = mBuilder.isNavBarVertical() ? RelativeLayout.START_OF : RelativeLayout.ABOVE; in createContentFrame()
212 if (mBuilder.hasSolidNavBar()) { in createContentFrame()
216 if (mBuilder.mAppCompatActionBarSize > 0) { in createContentFrame()
[all …]
/frameworks/base/core/java/android/util/
DLogWriter.java29 private StringBuilder mBuilder = new StringBuilder(128); field in LogWriter
75 mBuilder.append(c); in write()
81 if (mBuilder.length() > 0) { in flushBuilder()
82 Log.println_native(mBuffer, mPriority, mTag, mBuilder.toString()); in flushBuilder()
83 mBuilder.delete(0, mBuilder.length()); in flushBuilder()
DStringBuilderPrinter.java24 private final StringBuilder mBuilder; field in StringBuilderPrinter
32 mBuilder = builder; in StringBuilderPrinter()
36 mBuilder.append(x); in println()
39 mBuilder.append('\n'); in println()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java138 private DisplayRotationBuilder mBuilder; field in DisplayRotationTests
169 mBuilder = new DisplayRotationBuilder(); in setUp()
187 mBuilder.build(); in testLocksUserRotation_LockRotation_DefaultDisplay()
202 mBuilder.setIsDefaultDisplay(false).build(); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
215 mBuilder.build(); in testPersistUserRotation_UnlockRotation_DefaultDisplay()
227 mBuilder.setIsDefaultDisplay(false).build(); in testPersistsUserRotation_UnlockRotation_NonDefaultDisplay()
239 mBuilder.build(); in testPersistsFixedToUserRotation()
265 mBuilder.build(); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
277 mBuilder.build(); in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape()
290 mBuilder.build(); in testReturnsSeascape_UserRotationLockedSeascape_AppRequestsSeascape()
[all …]
DDeviceStateControllerTests.java52 private DeviceStateControllerBuilder mBuilder; field in DeviceStateControllerTests
61 mBuilder = new DeviceStateControllerBuilder(); in setUp()
66 mBuilder.setSupportFold(supportFold, supportHalfFold); in initialize()
70 mBuilder.setDelegate(delegate); in initialize()
71 mBuilder.build(); in initialize()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DKMLFormatter.java70 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/java/com/android/test/filters/
DSelectTestTests.java90 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/
DZenDurationDialogTest.java48 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/
DNotificationContentInflaterTest.java88 private Notification.Builder mBuilder; field in NotificationContentInflaterTest
115 mBuilder = new Notification.Builder(mContext).setSmallIcon( in setUp()
124 ExpandableNotificationRow row = helper.createRow(mBuilder.build()); in setUp()
140 Notification.Builder builder = spy(mBuilder); in testIncreasedHeadsUpBeingUsed()
157 Notification.Builder builder = spy(mBuilder); in testIncreasedHeightBeingUsed()
262 mBuilder.setStyle(new Notification.MediaStyle()); in doesntReapplyDisallowedRemoteView()
263 RemoteViews mediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView()
264 mBuilder.setStyle(new Notification.DecoratedCustomViewStyle()); in doesntReapplyDisallowedRemoteView()
265 mBuilder.setCustomContentView(new RemoteViews(getContext().getPackageName(), in doesntReapplyDisallowedRemoteView()
267 RemoteViews decoratedMediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView()
[all …]
/frameworks/base/core/java/android/preference/
DDialogPreference.java64 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/base/core/java/android/app/
DNotification.java7137 protected Builder mBuilder; field in Notification.Builder.Style
7156 if (mBuilder != builder) { in setBuilder()
7157 mBuilder = builder; in setBuilder()
7158 if (mBuilder != null) { in setBuilder()
7159 mBuilder.setStyle(this); in setBuilder()
7165 if (mBuilder == null) { in checkBuilder()
7172 StandardTemplateParams p = mBuilder.mParams.reset() in getStandardView()
7174 .fillTextsFrom(mBuilder); in getStandardView()
7196 return mBuilder.applyStandardTemplateWithActions(layoutId, p, result); in getStandardView()
7278 return mBuilder.build(); in build()
[all …]
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/
DValidatorHierarchy.java30 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/
DEditStyledText.java2017 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 …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothLeBroadcastAssistant.java63 private BluetoothLeBroadcastMetadata.Builder mBuilder; field in LocalBluetoothLeBroadcastAssistant
117 mBuilder = new BluetoothLeBroadcastMetadata.Builder(); in LocalBluetoothLeBroadcastAssistant()
174 mBuilder.setSourceDevice(sourceDevice, sourceAddressType) in buildMetadata()
DLocalBluetoothLeBroadcast.java82 private BluetoothLeAudioContentMetadata.Builder mBuilder; field in LocalBluetoothLeBroadcast
213 mBuilder = new BluetoothLeAudioContentMetadata.Builder(); in LocalBluetoothLeBroadcast()
438 mBluetoothLeAudioContentMetadata = mBuilder.setProgramInfo(programInfo).build(); in updateBroadcast()
462 mBluetoothLeAudioContentMetadata = mBuilder.setLanguage(language).setProgramInfo( in buildContentMetadata()
/frameworks/base/media/java/android/media/
DCea708CaptionRenderer.java1683 private final SpannableStringBuilder mBuilder = new SpannableStringBuilder(); field in Cea708CCWidget.CCWindowLayout
2062 mBuilder.clear(); in clearText()
2068 mBuilder.clear(); in updateText()
2071 int length = mBuilder.length(); in updateText()
2072 mBuilder.append(text); in updateText()
2074 mBuilder.setSpan(characterStyle, length, mBuilder.length(), in updateText()
2078 String[] lines = TextUtils.split(mBuilder.toString(), "\n"); in updateText()
2084 mBuilder.delete(0, mBuilder.length() - truncatedText.length()); in updateText()
2087 int start = 0, last = mBuilder.length() - 1; in updateText()
2089 while ((start <= end) && (mBuilder.charAt(start) <= ' ')) { in updateText()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java1878 mBuilder.append(c); in write()
1884 if (mBuilder.length() > 0) { in flushBuilder()
1885 Log.v("GLSurfaceView", mBuilder.toString()); in flushBuilder()
1886 mBuilder.delete(0, mBuilder.length()); in flushBuilder()
1890 private StringBuilder mBuilder = new StringBuilder(); field in GLSurfaceView.LogWriter
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java47 private FilterGraph.Builder mBuilder; field in GraphReader.CommandStack
53 mBuilder = new FilterGraph.Builder(mContext); in CommandStack()
76 return mBuilder; in getBuilder()

12