Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 830) sorted by relevance

12345678910>>...34

/frameworks/base/core/tests/coretests/src/android/metrics/
DLogMakerTest.java29 LogMaker builder = new LogMaker(0); in testSerialize() local
30 builder.addTaggedData(1, "one"); in testSerialize()
31 builder.addTaggedData(2, "two"); in testSerialize()
32 Object[] out = builder.serialize(); in testSerialize()
49 LogMaker builder = new LogMaker(category); in testSerializeDeserialize() local
50 builder.setType(type); in testSerializeDeserialize()
51 builder.setSubtype(subtype); in testSerializeDeserialize()
52 builder.setTimestamp(timestamp); in testSerializeDeserialize()
53 builder.setPackageName(packageName); in testSerializeDeserialize()
54 builder.setCounterName(counterName); in testSerializeDeserialize()
[all …]
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DObjectPrinter.java57 StringBuilder builder = new StringBuilder(); in print() local
58 print(builder, obj, deep, maxCollectionLength); in print()
59 return builder.toString(); in print()
81 StringBuilder builder = new StringBuilder(); in printPublicFields() local
82 printPublicFields(builder, obj, deep, maxCollectionLength); in printPublicFields()
83 return builder.toString(); in printPublicFields()
96 static void print(@NonNull StringBuilder builder, @Nullable Object obj, boolean deep, in print() argument
100 builder.append("null"); in print()
104 builder.append(obj.toString()); in print()
108 builder.append(obj.toString()); in print()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java41 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed() local
44 builder.allowReminders(false); in testZenPolicyApplyAllowedToDisallowed()
45 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
50 builder.allowReminders(true); in testZenPolicyApplyAllowedToDisallowed()
51 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
66 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset() local
69 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
72 builder.allowReminders(true); in testZenPolicyApplyAllowedToUnset()
73 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset()
83 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyDisallowedToUnset() local
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DKMLFormatter.java29 LineBuilder builder = new LineBuilder(); in getHeader() local
30 builder.addLine("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); in getHeader()
31 builder.addLine("<kml xmlns=\"http://earth.google.com/kml/2.2\">"); in getHeader()
32 builder.addLine("<Document>"); in getHeader()
33 return builder.toString(); in getHeader()
37 LineBuilder builder = new LineBuilder(); in getFooter() local
38 builder.addLine("</Document>"); in getFooter()
39 builder.addLine("</kml>"); in getFooter()
40 return builder.toString(); in getFooter()
44 LineBuilder builder = new LineBuilder(); in getOutput() local
[all …]
/frameworks/layoutlib/bridge/src/android/util/imagepool/
DImagePoolStatsDebugImpl.java132 StringBuilder builder = new StringBuilder(); in calculateGcStatAndReturn() local
133 builder.append("Total Garbage Collections: "); in calculateGcStatAndReturn()
134 builder.append(totalGarbageCollections); in calculateGcStatAndReturn()
135 builder.append("\n"); in calculateGcStatAndReturn()
137 builder.append("Total Garbage Collection Time (ms): "); in calculateGcStatAndReturn()
138 builder.append(garbageCollectionTime); in calculateGcStatAndReturn()
139 builder.append("\n"); in calculateGcStatAndReturn()
141 return builder.toString(); in calculateGcStatAndReturn()
146 StringBuilder builder = new StringBuilder(); in getStatistic() local
148 builder.append(calculateGcStatAndReturn()); in getStatistic()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java60 BrightnessConfiguration.Builder builder = new BrightnessConfiguration.Builder( in testSetCurveIsUnmodified() local
62 BrightnessConfiguration config = builder.build(); in testSetCurveIsUnmodified()
130 BrightnessConfiguration.Builder builder = in testParceledConfigIsEquivalent() local
132 builder.setShouldCollectColorSamples(true); in testParceledConfigIsEquivalent()
133 builder.setShortTermModelTimeoutMillis(1234L); in testParceledConfigIsEquivalent()
134 builder.setShortTermModelLowerLuxMultiplier(0.9f); in testParceledConfigIsEquivalent()
135 builder.setShortTermModelUpperLuxMultiplier(0.2f); in testParceledConfigIsEquivalent()
136 builder.addCorrectionByCategory(3, in testParceledConfigIsEquivalent()
138 builder.addCorrectionByPackageName("a.package.name", in testParceledConfigIsEquivalent()
140 BrightnessConfiguration config = builder.build(); in testParceledConfigIsEquivalent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNativeDaemonConnectorTest.java35 final StringBuilder builder = new StringBuilder(); in testArgumentNormal() local
37 builder.setLength(0); in testArgumentNormal()
38 appendEscaped(builder, ""); in testArgumentNormal()
39 assertEquals("", builder.toString()); in testArgumentNormal()
41 builder.setLength(0); in testArgumentNormal()
42 appendEscaped(builder, "foo"); in testArgumentNormal()
43 assertEquals("foo", builder.toString()); in testArgumentNormal()
45 builder.setLength(0); in testArgumentNormal()
46 appendEscaped(builder, "foo\"bar"); in testArgumentNormal()
47 assertEquals("foo\\\"bar", builder.toString()); in testArgumentNormal()
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DPropertyNode.java159 StringBuilder builder = new StringBuilder(); in toString() local
160 builder.append("propName: "); in toString()
161 builder.append(propName); in toString()
162 builder.append(", paramMap: "); in toString()
163 builder.append(paramMap.toString()); in toString()
164 builder.append(", paramMap_TYPE: ["); in toString()
170 builder.append(", "); in toString()
172 builder.append('"'); in toString()
173 builder.append(elem); in toString()
174 builder.append('"'); in toString()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareRequestParcelable.java110 StringBuilder builder = new StringBuilder(); in toString() local
111 builder.append("id="); in toString()
112 builder.append(mId); in toString()
113 builder.append(", type="); in toString()
114 builder.append(mRequest.getType()); in toString()
115 builder.append(", latitude="); in toString()
116 builder.append(mRequest.getLatitude()); in toString()
117 builder.append(", longitude="); in toString()
118 builder.append(mRequest.getLongitude()); in toString()
119 builder.append(", radius="); in toString()
[all …]
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V30.java90 StringBuilder builder = null; in getNonEmptyLine() local
99 if (builder == null) { in getNonEmptyLine()
100 builder = new StringBuilder(); in getNonEmptyLine()
103 builder.append(mPreviousLine); in getNonEmptyLine()
106 builder.append(line.substring(1)); in getNonEmptyLine()
108 if (builder != null || mPreviousLine != null) { in getNonEmptyLine()
116 if (builder != null) { in getNonEmptyLine()
117 ret = builder.toString(); in getNonEmptyLine()
210 StringBuilder builder = null; // Delay initialization. in splitAndPutParam() local
218 property.addParameter(paramName, encodeParamValue(builder.toString())); in splitAndPutParam()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHeadsetClientCall.java241 StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mDevice: "); in toString() local
242 builder.append(loggable ? mDevice : mDevice.hashCode()); in toString()
243 builder.append(", mId: "); in toString()
244 builder.append(mId); in toString()
245 builder.append(", mUUID: "); in toString()
246 builder.append(mUUID); in toString()
247 builder.append(", mState: "); in toString()
250 builder.append("ACTIVE"); in toString()
253 builder.append("HELD"); in toString()
256 builder.append("DIALING"); in toString()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java41 private final StringBuilder builder = new StringBuilder(); field in LoggingPrintStream
89 int length = builder.length(); in flush()
96 && (nextBreak = builder.indexOf("\n", start)) != -1) { in flush()
97 log(builder.substring(start, nextBreak)); in flush()
104 log(builder.substring(start)); in flush()
106 builder.setLength(0); in flush()
109 builder.delete(0, start); in flush()
148 builder.append(decodedChars); in write()
185 private final Formatter formatter = new Formatter(builder, null);
201 builder.append(charArray); in print()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DHardwareConfig.java174 StringBuilder builder = new StringBuilder(); in toString() local
176 builder.append("Modem "); in toString()
177 builder.append("{ uuid=" + uuid); in toString()
178 builder.append(", state=" + state); in toString()
179 builder.append(", rilModel=" + rilModel); in toString()
180 builder.append(", rat=" + rat.toString()); in toString()
181 builder.append(", maxActiveVoiceCall=" + maxActiveVoiceCall); in toString()
182 builder.append(", maxActiveDataCall=" + maxActiveDataCall); in toString()
183 builder.append(", maxStandby=" + maxStandby); in toString()
184 builder.append(" }"); in toString()
[all …]
/frameworks/base/core/java/android/service/autofill/
DFillResponse.java94 private FillResponse(@NonNull Builder builder) { in FillResponse() argument
95 mDatasets = (builder.mDatasets != null) ? new ParceledListSlice<>(builder.mDatasets) : null; in FillResponse()
96 mSaveInfo = builder.mSaveInfo; in FillResponse()
97 mClientState = builder.mClientState; in FillResponse()
98 mPresentation = builder.mPresentation; in FillResponse()
99 mInlinePresentation = builder.mInlinePresentation; in FillResponse()
100 mInlineTooltipPresentation = builder.mInlineTooltipPresentation; in FillResponse()
101 mHeader = builder.mHeader; in FillResponse()
102 mFooter = builder.mFooter; in FillResponse()
103 mAuthentication = builder.mAuthentication; in FillResponse()
[all …]
DSaveInfo.java336 private SaveInfo(Builder builder) { in SaveInfo() argument
337 mType = builder.mType; in SaveInfo()
338 mNegativeButtonStyle = builder.mNegativeButtonStyle; in SaveInfo()
339 mNegativeActionListener = builder.mNegativeActionListener; in SaveInfo()
340 mPositiveButtonStyle = builder.mPositiveButtonStyle; in SaveInfo()
341 mRequiredIds = builder.mRequiredIds; in SaveInfo()
342 mOptionalIds = builder.mOptionalIds; in SaveInfo()
343 mDescription = builder.mDescription; in SaveInfo()
344 mFlags = builder.mFlags; in SaveInfo()
345 mCustomDescription = builder.mCustomDescription; in SaveInfo()
[all …]
/frameworks/compile/mclinker/unittests/
DLinkerTest.cpp56 IRBuilder builder(module, config); in TEST_F() local
60 if (linker.link(module, builder)) in TEST_F()
96 IRBuilder builder(module, config); in TEST_F() local
101 builder.ReadInput("crtbegin", crtbegin); in TEST_F()
106 builder.ReadInput("plasma", plasma); in TEST_F()
109 builder.ReadInput("m"); in TEST_F()
110 builder.ReadInput("log"); in TEST_F()
111 builder.ReadInput("jnigraphics"); in TEST_F()
112 builder.ReadInput("c"); in TEST_F()
117 builder.ReadInput("crtend", crtend); in TEST_F()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgramStore.java251 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST() local
252 builder.setDepthFunc(ProgramStore.DepthFunc.LESS); in BLEND_NONE_DEPTH_TEST()
253 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_TEST()
254 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_TEST()
255 builder.setDepthMaskEnabled(true); in BLEND_NONE_DEPTH_TEST()
256 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST()
272 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE() local
273 builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); in BLEND_NONE_DEPTH_NONE()
274 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_NONE()
275 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_NONE()
[all …]
/frameworks/av/media/libaaudio/src/core/
DAAudioAudio.cpp40 convertAAudioBuilderToStreamBuilder(builder);
61 static AudioStreamBuilder *convertAAudioBuilderToStreamBuilder(AAudioStreamBuilder* builder) in convertAAudioBuilderToStreamBuilder() argument
63 return (AudioStreamBuilder*) builder; in convertAAudioBuilderToStreamBuilder()
66 AAUDIO_API aaudio_result_t AAudio_createStreamBuilder(AAudioStreamBuilder** builder) in AAudio_createStreamBuilder() argument
72 *builder = (AAudioStreamBuilder*) audioStreamBuilder; in AAudio_createStreamBuilder()
76 AAUDIO_API void AAudioStreamBuilder_setPerformanceMode(AAudioStreamBuilder* builder, in AAudioStreamBuilder_setPerformanceMode() argument
79 AudioStreamBuilder *streamBuilder = convertAAudioBuilderToStreamBuilder(builder); in AAudioStreamBuilder_setPerformanceMode()
83 AAUDIO_API void AAudioStreamBuilder_setDeviceId(AAudioStreamBuilder* builder, in AAudioStreamBuilder_setDeviceId() argument
86 AudioStreamBuilder *streamBuilder = convertAAudioBuilderToStreamBuilder(builder); in AAudioStreamBuilder_setDeviceId()
90 AAUDIO_API void AAudioStreamBuilder_setPackageName(AAudioStreamBuilder* builder, in AAudioStreamBuilder_setPackageName() argument
[all …]
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp257 CmapBuilder builder(1); in buildSingleFormat4Cmap() local
258 builder.appendTable(platformId, encodingId, buildCmapFormat4Table(ranges)); in buildSingleFormat4Cmap()
259 return builder.build(); in buildSingleFormat4Cmap()
264 CmapBuilder builder(1); in buildSingleFormat12Cmap() local
265 builder.appendTable(platformId, encodingId, buildCmapFormat12Table(ranges)); in buildSingleFormat12Cmap()
266 return builder.build(); in buildSingleFormat12Cmap()
444 CmapBuilder builder(1); in TEST() local
460 CmapBuilder builder(1); in TEST() local
461 builder.appendTable(0, 0, table); in TEST()
462 std::vector<uint8_t> cmap = builder.build(); in TEST()
[all …]
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/stats/
DSearchStats.java113 SearchStats(@NonNull Builder builder) { in SearchStats() argument
114 Objects.requireNonNull(builder); in SearchStats()
115 mPackageName = builder.mPackageName; in SearchStats()
116 mDatabase = builder.mDatabase; in SearchStats()
117 mStatusCode = builder.mStatusCode; in SearchStats()
118 mTotalLatencyMillis = builder.mTotalLatencyMillis; in SearchStats()
119 mRewriteSearchSpecLatencyMillis = builder.mRewriteSearchSpecLatencyMillis; in SearchStats()
120 mRewriteSearchResultLatencyMillis = builder.mRewriteSearchResultLatencyMillis; in SearchStats()
121 mVisibilityScope = builder.mVisibilityScope; in SearchStats()
122 mNativeLatencyMillis = builder.mNativeLatencyMillis; in SearchStats()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DLineBreaker_Delegate.java67 Builder builder = new Builder(); in nInit() local
68 builder.mBreakStrategy = breakStrategy; in nInit()
69 return sBuilderManager.addNewDelegate(builder); in nInit()
97 Builder builder = sBuilderManager.getDelegate(nativePtr); in nComputeLineBreaks() local
98 if (builder == null) { in nComputeLineBreaks()
102 builder.mText = text; in nComputeLineBreaks()
103 builder.mWidths = new float[length]; in nComputeLineBreaks()
104 builder.mLineWidth = new LineWidth(firstWidth, firstWidthLineCount, restWidth); in nComputeLineBreaks()
105 builder.mTabStopCalculator = new TabStops(variableTabStops, defaultTabStop); in nComputeLineBreaks()
107 MeasuredText_Delegate.computeRuns(measuredTextPtr, builder); in nComputeLineBreaks()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DFactoryResetter.java87 StringBuilder builder = new StringBuilder("FactoryResetter["); in toString() local
89 builder.append("no_reason"); in toString()
91 builder.append("reason='").append(mReason).append("'"); in toString()
94 builder.append(",hasSafetyChecker"); in toString()
97 builder.append(",shutdown"); in toString()
100 builder.append(",force"); in toString()
103 builder.append(",wipeEuicc"); in toString()
106 builder.append(",wipeAdoptableStorage"); in toString()
109 builder.append(",ipeFactoryResetProtection"); in toString()
111 return builder.append(']').toString(); in toString()
[all …]
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp69 NativeFamilyBuilder* builder; in FontFamily_initBuilder() local
72 builder = new NativeFamilyBuilder(minikin::registerLocaleList(str.c_str()), variant); in FontFamily_initBuilder()
74 builder = new NativeFamilyBuilder(minikin::registerLocaleList(""), variant); in FontFamily_initBuilder()
76 return toJLong(builder); in FontFamily_initBuilder()
83 NativeFamilyBuilder* builder = toNativeBuilder(builderPtr); in FontFamily_create() local
84 if (builder->fonts.empty()) { in FontFamily_create()
88 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create()
112 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, in addSkTypeface() argument
115 for (const auto& axis : builder->axes) { in addSkTypeface()
131 builder->axes.clear(); in addSkTypeface()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DExponentiallyBucketedHistogram.java74 StringBuilder builder = new StringBuilder(prefix); in log() local
75 builder.append('['); in log()
79 builder.append(", "); in log()
83 builder.append("<"); in log()
84 builder.append(1 << i); in log()
86 builder.append(">="); in log()
87 builder.append(1 << (i - 1)); in log()
90 builder.append(": "); in log()
91 builder.append(mData[i]); in log()
93 builder.append("]"); in log()
[all …]
/frameworks/base/location/java/android/location/
DGnssMeasurement.java415 StringBuilder builder = new StringBuilder(); in getStateString() local
417 builder.append("CodeLock|"); in getStateString()
420 builder.append("BitSync|"); in getStateString()
423 builder.append("SubframeSync|"); in getStateString()
426 builder.append("TowDecoded|"); in getStateString()
429 builder.append("TowKnown|"); in getStateString()
432 builder.append("MsecAmbiguous|"); in getStateString()
435 builder.append("SymbolSync|"); in getStateString()
438 builder.append("GloStringSync|"); in getStateString()
441 builder.append("GloTodDecoded|"); in getStateString()
[all …]

12345678910>>...34