Home
last modified time | relevance | path

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

12345678910>>...40

/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/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DObjectPrinter.java42 StringBuilder builder = new StringBuilder(); in print() local
43 print(builder, obj, maxCollectionLength); in print()
44 return builder.toString(); in print()
53 static void print(@NonNull StringBuilder builder, @Nullable Object obj) { in print() argument
54 print(builder, obj, kDefaultMaxCollectionLength); in print()
65 static void print(@NonNull StringBuilder builder, @Nullable Object obj, in print() argument
69 builder.append("null"); in print()
73 builder.append(obj); in print()
77 builder.append(obj); in print()
81 builder.append('\''); in print()
[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/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java46 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed() local
49 builder.allowReminders(false); in testZenPolicyApplyAllowedToDisallowed()
50 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
55 builder.allowReminders(true); in testZenPolicyApplyAllowedToDisallowed()
56 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
71 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset() local
74 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
77 builder.allowReminders(true); in testZenPolicyApplyAllowedToUnset()
78 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset()
88 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyDisallowedToUnset() local
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java61 BrightnessConfiguration.Builder builder = new BrightnessConfiguration.Builder( in testSetCurveIsUnmodified() local
63 BrightnessConfiguration config = builder.build(); in testSetCurveIsUnmodified()
131 BrightnessConfiguration.Builder builder = in testParceledConfigIsEquivalent() local
133 builder.setShouldCollectColorSamples(true); in testParceledConfigIsEquivalent()
134 builder.setShortTermModelTimeoutMillis(1234L); in testParceledConfigIsEquivalent()
135 builder.setShortTermModelLowerLuxMultiplier(0.9f); in testParceledConfigIsEquivalent()
136 builder.setShortTermModelUpperLuxMultiplier(0.2f); in testParceledConfigIsEquivalent()
137 builder.addCorrectionByCategory(3, in testParceledConfigIsEquivalent()
139 builder.addCorrectionByPackageName("a.package.name", in testParceledConfigIsEquivalent()
141 BrightnessConfiguration config = builder.build(); in testParceledConfigIsEquivalent()
[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/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/av/media/libaaudio/src/flowgraph/resampler/
DMultiChannelResampler.cpp30 MultiChannelResampler::MultiChannelResampler(const MultiChannelResampler::Builder &builder) in MultiChannelResampler() argument
31 : mNumTaps(builder.getNumTaps()) in MultiChannelResampler()
32 , mX(static_cast<size_t>(builder.getChannelCount()) in MultiChannelResampler()
33 * static_cast<size_t>(builder.getNumTaps()) * 2) in MultiChannelResampler()
34 , mSingleFrame(builder.getChannelCount()) in MultiChannelResampler()
35 , mChannelCount(builder.getChannelCount()) in MultiChannelResampler()
39 IntegerRatio ratio(builder.getInputRate(), builder.getOutputRate()); in MultiChannelResampler()
51 Builder builder; in make() local
52 builder.setInputRate(inputRate); in make()
53 builder.setOutputRate(outputRate); in make()
[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/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/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/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/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSatelliteStats.java71 private SatelliteControllerParams(Builder builder) { in SatelliteControllerParams() argument
73 builder.mCountOfSatelliteServiceEnablementsSuccess; in SatelliteControllerParams()
75 builder.mCountOfSatelliteServiceEnablementsFail; in SatelliteControllerParams()
76 this.mCountOfOutgoingDatagramSuccess = builder.mCountOfOutgoingDatagramSuccess; in SatelliteControllerParams()
77 this.mCountOfOutgoingDatagramFail = builder.mCountOfOutgoingDatagramFail; in SatelliteControllerParams()
78 this.mCountOfIncomingDatagramSuccess = builder.mCountOfIncomingDatagramSuccess; in SatelliteControllerParams()
79 this.mCountOfIncomingDatagramFail = builder.mCountOfIncomingDatagramFail; in SatelliteControllerParams()
80 this.mCountOfDatagramTypeSosSmsSuccess = builder.mCountOfDatagramTypeSosSmsSuccess; in SatelliteControllerParams()
81 this.mCountOfDatagramTypeSosSmsFail = builder.mCountOfDatagramTypeSosSmsFail; in SatelliteControllerParams()
83 builder.mCountOfDatagramTypeLocationSharingSuccess; in SatelliteControllerParams()
[all …]
/frameworks/base/core/java/android/service/autofill/
DFillResponse.java195 private FillResponse(@NonNull Builder builder) { in FillResponse() argument
196 mDatasets = (builder.mDatasets != null) ? new ParceledListSlice<>(builder.mDatasets) : null; in FillResponse()
197 mSaveInfo = builder.mSaveInfo; in FillResponse()
198 mClientState = builder.mClientState; in FillResponse()
199 mPresentation = builder.mPresentation; in FillResponse()
200 mInlinePresentation = builder.mInlinePresentation; in FillResponse()
201 mInlineTooltipPresentation = builder.mInlineTooltipPresentation; in FillResponse()
202 mDialogPresentation = builder.mDialogPresentation; in FillResponse()
203 mDialogHeader = builder.mDialogHeader; in FillResponse()
204 mHeader = builder.mHeader; in FillResponse()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/disableflags/
DDisableFlagsLogger.kt98 val builder = StringBuilder("Received new disable state: ") in getDisableFlagsString() constant
100 builder.append(getFlagsString(new)) in getDisableFlagsString()
103 builder.append(" | New after local modification: ") in getDisableFlagsString()
104 builder.append(getFlagsString(newAfterLocalModification)) in getDisableFlagsString()
105 builder.append(" ") in getDisableFlagsString()
106 builder.append(getDiffString(new, newAfterLocalModification)) in getDisableFlagsString()
109 return builder.toString() in getDisableFlagsString()
124 val builder = StringBuilder("(") in getDiffString() constant
125 builder.append("changed: ") in getDiffString()
129 builder.append(newSymbol) in getDiffString()
[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/services/core/java/com/android/server/display/
DDisplayBrightnessState.java38 private DisplayBrightnessState(Builder builder) { in DisplayBrightnessState() argument
39 mBrightness = builder.getBrightness(); in DisplayBrightnessState()
40 mSdrBrightness = builder.getSdrBrightness(); in DisplayBrightnessState()
41 mBrightnessReason = builder.getBrightnessReason(); in DisplayBrightnessState()
42 mDisplayBrightnessStrategyName = builder.getDisplayBrightnessStrategyName(); in DisplayBrightnessState()
43 mShouldUseAutoBrightness = builder.getShouldUseAutoBrightness(); in DisplayBrightnessState()
44 mIsSlowChange = builder.isSlowChange(); in DisplayBrightnessState()
139 public static Builder builder() { in builder() method in DisplayBrightnessState
161 Builder builder = new Builder(); in from() local
162 builder.setBrightness(state.getBrightness()); in from()
[all …]
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp70 NativeFamilyBuilder* builder; in FontFamily_initBuilder() local
73 builder = new NativeFamilyBuilder(minikin::registerLocaleList(str.c_str()), variant); in FontFamily_initBuilder()
75 builder = new NativeFamilyBuilder(minikin::registerLocaleList(""), variant); in FontFamily_initBuilder()
77 return toJLong(builder); in FontFamily_initBuilder()
84 NativeFamilyBuilder* builder = toNativeBuilder(builderPtr); in FontFamily_create() local
85 if (builder->fonts.empty()) { in FontFamily_create()
89 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create()
113 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, in addSkTypeface() argument
116 for (const auto& axis : builder->axes) { in addSkTypeface()
132 builder->axes.clear(); in addSkTypeface()
[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 …]
/frameworks/base/core/java/android/net/
DUriCodec.java78 StringBuilder builder = new StringBuilder(s.length()); in decode() local
79 appendDecoded(builder, s, convertPlus, charset, throwOnFailure); in decode()
80 return builder.toString(); in decode()
89 StringBuilder builder, in appendDecoded() argument
108 builder, decoder, byteBuffer, throwOnFailure); in appendDecoded()
109 builder.append(convertPlus ? ' ' : '+'); in appendDecoded()
123 builder, decoder, byteBuffer, throwOnFailure); in appendDecoded()
124 builder.append(INVALID_INPUT_CHARACTER); in appendDecoded()
136 builder, decoder, byteBuffer, throwOnFailure); in appendDecoded()
137 builder.append(INVALID_INPUT_CHARACTER); in appendDecoded()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java950 StringBuilder appendTo(StringBuilder builder) { in appendTo() argument
951 builder.append(" [ ClassName: ").append(mClassName); in appendTo()
953 appendPropName(builder, "Text").append(mText); in appendTo()
955 append(builder, "ContentDescription", mContentDescription); in appendTo()
956 append(builder, "ItemCount", mItemCount); in appendTo()
957 append(builder, "CurrentItemIndex", mCurrentItemIndex); in appendTo()
959 appendUnless(true, PROPERTY_ENABLED, builder); in appendTo()
960 appendUnless(false, PROPERTY_PASSWORD, builder); in appendTo()
961 appendUnless(false, PROPERTY_CHECKED, builder); in appendTo()
962 appendUnless(false, PROPERTY_FULL_SCREEN, builder); in appendTo()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DFactoryResetter.java94 StringBuilder builder = new StringBuilder("FactoryResetter["); in toString() local
96 builder.append("no_reason"); in toString()
98 builder.append("reason='").append(mReason).append("'"); in toString()
101 builder.append(",hasSafetyChecker"); in toString()
104 builder.append(",shutdown"); in toString()
107 builder.append(",force"); in toString()
110 builder.append(",wipeEuicc"); in toString()
113 builder.append(",wipeAdoptableStorage"); in toString()
116 builder.append(",ipeFactoryResetProtection"); in toString()
118 return builder.append(']').toString(); in toString()
[all …]

12345678910>>...40