/frameworks/base/core/tests/coretests/src/android/metrics/ |
D | LogMakerTest.java | 29 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/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenPolicyTest.java | 37 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed() local 40 builder.allowReminders(false); in testZenPolicyApplyAllowedToDisallowed() 41 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed() 46 builder.allowReminders(true); in testZenPolicyApplyAllowedToDisallowed() 47 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed() 62 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset() local 65 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset() 68 builder.allowReminders(true); in testZenPolicyApplyAllowedToUnset() 69 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset() 79 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyDisallowedToUnset() local [all …]
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | KMLFormatter.java | 29 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/ |
D | ImagePoolStatsDebugImpl.java | 132 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/services/tests/servicestests/src/com/android/server/ |
D | NativeDaemonConnectorTest.java | 35 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/base/tests/net/java/android/net/ |
D | Ikev2VpnProfileTest.java | 86 final Ikev2VpnProfile.Builder builder = in getBuilderWithDefaultOptions() local 89 builder.setBypassable(true); in getBuilderWithDefaultOptions() 90 builder.setProxy(mProxy); in getBuilderWithDefaultOptions() 91 builder.setMaxMtu(TEST_MTU); in getBuilderWithDefaultOptions() 92 builder.setMetered(true); in getBuilderWithDefaultOptions() 94 return builder; in getBuilderWithDefaultOptions() 99 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildValidProfileWithOptions() local 101 builder.setAuthUsernamePassword(USERNAME_STRING, PASSWORD_STRING, mServerRootCa); in testBuildValidProfileWithOptions() 102 final Ikev2VpnProfile profile = builder.build(); in testBuildValidProfileWithOptions() 117 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildUsernamePasswordProfile() local [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | Identifier.java | 57 final StringBuilder builder = new StringBuilder(); in toString() local 58 builder.append("Identifier { "); in toString() 60 builder.append("mDeviceId: "); in toString() 61 builder.append(mDeviceId); in toString() 62 builder.append(", "); in toString() 64 builder.append("mStorageId: "); in toString() 65 builder.append(mStorageId); in toString() 66 builder.append(", "); in toString() 68 builder.append("mObjectHandle: "); in toString() 69 builder.append(mObjectHandle); in toString() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | PropertyNode.java | 159 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/bluetooth/ |
D | BluetoothHeadsetClientCall.java | 232 StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mDevice: "); in toString() local 233 builder.append(loggable ? mDevice : mDevice.hashCode()); in toString() 234 builder.append(", mId: "); in toString() 235 builder.append(mId); in toString() 236 builder.append(", mUUID: "); in toString() 237 builder.append(mUUID); in toString() 238 builder.append(", mState: "); in toString() 241 builder.append("ACTIVE"); in toString() 244 builder.append("HELD"); in toString() 247 builder.append("DIALING"); in toString() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareRequestParcelable.java | 110 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/ |
D | VCardParserImpl_V30.java | 90 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/ |
D | LoggingPrintStream.java | 41 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/base/location/java/android/location/ |
D | GnssMeasurement.java | 365 StringBuilder builder = new StringBuilder(); in getStateString() local 367 builder.append("CodeLock|"); in getStateString() 370 builder.append("BitSync|"); in getStateString() 373 builder.append("SubframeSync|"); in getStateString() 376 builder.append("TowDecoded|"); in getStateString() 379 builder.append("TowKnown|"); in getStateString() 382 builder.append("MsecAmbiguous|"); in getStateString() 385 builder.append("SymbolSync|"); in getStateString() 388 builder.append("GloStringSync|"); in getStateString() 391 builder.append("GloTodDecoded|"); in getStateString() [all …]
|
/frameworks/base/core/java/android/service/autofill/ |
D | FillResponse.java | 89 private FillResponse(@NonNull Builder builder) { in FillResponse() argument 90 mDatasets = (builder.mDatasets != null) ? new ParceledListSlice<>(builder.mDatasets) : null; in FillResponse() 91 mSaveInfo = builder.mSaveInfo; in FillResponse() 92 mClientState = builder.mClientState; in FillResponse() 93 mPresentation = builder.mPresentation; in FillResponse() 94 mHeader = builder.mHeader; in FillResponse() 95 mFooter = builder.mFooter; in FillResponse() 96 mAuthentication = builder.mAuthentication; in FillResponse() 97 mAuthenticationIds = builder.mAuthenticationIds; in FillResponse() 98 mIgnoredIds = builder.mIgnoredIds; in FillResponse() [all …]
|
D | SaveInfo.java | 280 private SaveInfo(Builder builder) { in SaveInfo() argument 281 mType = builder.mType; in SaveInfo() 282 mNegativeButtonStyle = builder.mNegativeButtonStyle; in SaveInfo() 283 mNegativeActionListener = builder.mNegativeActionListener; in SaveInfo() 284 mRequiredIds = builder.mRequiredIds; in SaveInfo() 285 mOptionalIds = builder.mOptionalIds; in SaveInfo() 286 mDescription = builder.mDescription; in SaveInfo() 287 mFlags = builder.mFlags; in SaveInfo() 288 mCustomDescription = builder.mCustomDescription; in SaveInfo() 289 mValidator = builder.mValidator; in SaveInfo() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LinkerTest.cpp | 56 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | HardwareConfig.java | 174 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/rs/java/android/renderscript/ |
D | ProgramStore.java | 246 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST() local 247 builder.setDepthFunc(ProgramStore.DepthFunc.LESS); in BLEND_NONE_DEPTH_TEST() 248 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_TEST() 249 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_TEST() 250 builder.setDepthMaskEnabled(true); in BLEND_NONE_DEPTH_TEST() 251 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST() 267 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE() local 268 builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); in BLEND_NONE_DEPTH_NONE() 269 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_NONE() 270 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_NONE() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | CmapCoverageTest.cpp | 257 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/ |
D | AAudioAudio.cpp | 41 convertAAudioBuilderToStreamBuilder(builder); 62 static AudioStreamBuilder *convertAAudioBuilderToStreamBuilder(AAudioStreamBuilder* builder) in convertAAudioBuilderToStreamBuilder() argument 64 return (AudioStreamBuilder*) builder; in convertAAudioBuilderToStreamBuilder() 67 AAUDIO_API aaudio_result_t AAudio_createStreamBuilder(AAudioStreamBuilder** builder) in AAudio_createStreamBuilder() argument 73 *builder = (AAudioStreamBuilder*) audioStreamBuilder; in AAudio_createStreamBuilder() 77 AAUDIO_API void AAudioStreamBuilder_setPerformanceMode(AAudioStreamBuilder* builder, in AAudioStreamBuilder_setPerformanceMode() argument 80 AudioStreamBuilder *streamBuilder = convertAAudioBuilderToStreamBuilder(builder); in AAudioStreamBuilder_setPerformanceMode() 84 AAUDIO_API void AAudioStreamBuilder_setDeviceId(AAudioStreamBuilder* builder, in AAudioStreamBuilder_setDeviceId() argument 87 AudioStreamBuilder *streamBuilder = convertAAudioBuilderToStreamBuilder(builder); in AAudioStreamBuilder_setDeviceId() 91 AAUDIO_API void AAudioStreamBuilder_setSampleRate(AAudioStreamBuilder* builder, in AAudioStreamBuilder_setSampleRate() argument [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | FontFamily.cpp | 67 NativeFamilyBuilder* builder; in FontFamily_initBuilder() local 70 builder = new NativeFamilyBuilder(minikin::registerLocaleList(str.c_str()), variant); in FontFamily_initBuilder() 72 builder = new NativeFamilyBuilder(minikin::registerLocaleList(""), variant); in FontFamily_initBuilder() 74 return toJLong(builder); in FontFamily_initBuilder() 81 NativeFamilyBuilder* builder = toNativeBuilder(builderPtr); in FontFamily_create() local 82 if (builder->fonts.empty()) { in FontFamily_create() 86 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create() 110 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, in addSkTypeface() argument 113 for (const auto& axis : builder->axes) { in addSkTypeface() 129 builder->axes.clear(); in addSkTypeface() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/text/ |
D | LineBreaker_Delegate.java | 67 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/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTests.java | 76 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testAdd() local 77 final TestWindowContainer root = builder.setLayer(0).build(); in testAdd() 79 final TestWindowContainer layer1 = root.addChildWindow(builder.setLayer(1)); in testAdd() 80 final TestWindowContainer secondLayer1 = root.addChildWindow(builder.setLayer(1)); in testAdd() 81 final TestWindowContainer layer2 = root.addChildWindow(builder.setLayer(2)); in testAdd() 82 final TestWindowContainer layerNeg1 = root.addChildWindow(builder.setLayer(-1)); in testAdd() 83 final TestWindowContainer layerNeg2 = root.addChildWindow(builder.setLayer(-2)); in testAdd() 84 final TestWindowContainer secondLayerNeg1 = root.addChildWindow(builder.setLayer(-1)); in testAdd() 85 final TestWindowContainer layer0 = root.addChildWindow(builder.setLayer(0)); in testAdd() 128 final TestWindowContainerBuilder builder = new TestWindowContainerBuilder(mWm); in testAdd_AlreadyHasParent() local [all …]
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | SpotShadowConfig.java | 43 private SpotShadowConfig(SpotShadowConfig.Builder builder) { in SpotShadowConfig() argument 44 mWidth = builder.mWidth; in SpotShadowConfig() 45 mHeight = builder.mHeight; in SpotShadowConfig() 46 mLightRadius = builder.mLightRadius; in SpotShadowConfig() 47 mLightSourcePoints = builder.mLightSourcePoints; in SpotShadowConfig() 48 mRays = builder.mRays; in SpotShadowConfig() 49 mLayers = builder.mLayers; in SpotShadowConfig() 50 mPoly = builder.mPoly; in SpotShadowConfig() 51 mPolyLength = builder.mPolyLength; in SpotShadowConfig() 54 mLightCoord[0] = builder.mLightX; in SpotShadowConfig() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ExponentiallyBucketedHistogram.java | 74 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 …]
|