Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java45 StringBuilder builder = new StringBuilder("install"); in install() local
46 builder.append(' '); in install()
47 builder.append(name); in install()
48 builder.append(' '); in install()
49 builder.append(uid); in install()
50 builder.append(' '); in install()
51 builder.append(gid); in install()
52 builder.append(' '); in install()
53 builder.append(seinfo != null ? seinfo : "!"); in install()
54 return mInstaller.execute(builder.toString()); in install()
[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/core/java/android/view/accessibility/
DAccessibilityEvent.java1177 StringBuilder builder = new StringBuilder(); in toString() local
1178 builder.append("EventType: ").append(eventTypeToString(mEventType)); in toString()
1179 builder.append("; EventTime: ").append(mEventTime); in toString()
1180 builder.append("; PackageName: ").append(mPackageName); in toString()
1181 builder.append("; MovementGranularity: ").append(mMovementGranularity); in toString()
1182 builder.append("; Action: ").append(mAction); in toString()
1183 builder.append(super.toString()); in toString()
1185 builder.append("\n"); in toString()
1186 builder.append("; ContentChangeTypes: ").append(mContentChangeTypes); in toString()
1187 builder.append("; sourceWindowId: ").append(mSourceWindowId); in toString()
[all …]
DAccessibilityRecord.java817 StringBuilder builder = new StringBuilder(); in toString() local
818 builder.append(" [ ClassName: " + mClassName); in toString()
819 builder.append("; Text: " + mText); in toString()
820 builder.append("; ContentDescription: " + mContentDescription); in toString()
821 builder.append("; ItemCount: " + mItemCount); in toString()
822 builder.append("; CurrentItemIndex: " + mCurrentItemIndex); in toString()
823 builder.append("; IsEnabled: " + getBooleanProperty(PROPERTY_ENABLED)); in toString()
824 builder.append("; IsPassword: " + getBooleanProperty(PROPERTY_PASSWORD)); in toString()
825 builder.append("; IsChecked: " + getBooleanProperty(PROPERTY_CHECKED)); in toString()
826 builder.append("; IsFullScreen: " + getBooleanProperty(PROPERTY_FULL_SCREEN)); in toString()
[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 …]
DImportTestProvider.java136 final StringBuilder builder = new StringBuilder(); in applyBatch() local
137 builder.append("\n"); in applyBatch()
138 builder.append("Unexpected: "); in applyBatch()
139 builder.append(convertToEasilyReadableString(actualContentValues)); in applyBatch()
140 builder.append("\n"); in applyBatch()
141 builder.append("Expected : "); in applyBatch()
143 builder.append(convertToEasilyReadableString(expectedContentValues)); in applyBatch()
145 TestCase.fail(builder.toString()); in applyBatch()
158 StringBuilder builder = new StringBuilder(); in verify() local
162 builder.append(convertToEasilyReadableString(expectedContentValues)); in verify()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHeadsetClientCall.java164 StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mId: "); in toString() local
165 builder.append(mId); in toString()
166 builder.append(", mState: "); in toString()
168 case CALL_STATE_ACTIVE: builder.append("ACTIVE"); break; in toString()
169 case CALL_STATE_HELD: builder.append("HELD"); break; in toString()
170 case CALL_STATE_DIALING: builder.append("DIALING"); break; in toString()
171 case CALL_STATE_ALERTING: builder.append("ALERTING"); break; in toString()
172 case CALL_STATE_INCOMING: builder.append("INCOMING"); break; in toString()
173 case CALL_STATE_WAITING: builder.append("WAITING"); break; in toString()
174 … case CALL_STATE_HELD_BY_RESPONSE_AND_HOLD: builder.append("HELD_BY_RESPONSE_AND_HOLD"); break; 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.java80 StringBuilder builder = null; in getNonEmptyLine() local
89 if (builder == null) { in getNonEmptyLine()
90 builder = new StringBuilder(); in getNonEmptyLine()
93 builder.append(mPreviousLine); in getNonEmptyLine()
96 builder.append(line.substring(1)); in getNonEmptyLine()
98 if (builder != null || mPreviousLine != null) { in getNonEmptyLine()
106 if (builder != null) { in getNonEmptyLine()
107 ret = builder.toString(); in getNonEmptyLine()
200 StringBuilder builder = null; // Delay initialization. in splitAndPutParam() local
208 property.addParameter(paramName, encodeParamValue(builder.toString())); in splitAndPutParam()
[all …]
DVCardEntry.java162 final ContentProviderOperation.Builder builder = ContentProviderOperation in constructInsertOperation() local
164 builder.withValueBackReference(StructuredName.RAW_CONTACT_ID, backReferenceIndex); in constructInsertOperation()
165 builder.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); in constructInsertOperation()
168 builder.withValue(StructuredName.GIVEN_NAME, mGiven); in constructInsertOperation()
171 builder.withValue(StructuredName.FAMILY_NAME, mFamily); in constructInsertOperation()
174 builder.withValue(StructuredName.MIDDLE_NAME, mMiddle); in constructInsertOperation()
177 builder.withValue(StructuredName.PREFIX, mPrefix); in constructInsertOperation()
180 builder.withValue(StructuredName.SUFFIX, mSuffix); in constructInsertOperation()
186 builder.withValue(StructuredName.PHONETIC_GIVEN_NAME, mPhoneticGiven); in constructInsertOperation()
190 builder.withValue(StructuredName.PHONETIC_FAMILY_NAME, mPhoneticFamily); in constructInsertOperation()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DInstallerConnection.java99 StringBuilder builder = new StringBuilder("dexopt"); in dexopt() local
100 builder.append(' '); in dexopt()
101 builder.append(apkPath); in dexopt()
102 builder.append(' '); in dexopt()
103 builder.append(uid); in dexopt()
104 builder.append(isPublic ? " 1" : " 0"); in dexopt()
105 builder.append(' '); in dexopt()
106 builder.append(pkgName); in dexopt()
107 builder.append(' '); in dexopt()
108 builder.append(instructionSet); in dexopt()
[all …]
DLoggingPrintStream.java38 private final StringBuilder builder = new StringBuilder(); field in LoggingPrintStream
86 int length = builder.length(); in flush()
93 && (nextBreak = builder.indexOf("\n", start)) != -1) { in flush()
94 log(builder.substring(start, nextBreak)); in flush()
101 log(builder.substring(start)); in flush()
103 builder.setLength(0); in flush()
106 builder.delete(0, start); in flush()
145 builder.append(decodedChars); in write()
182 private final Formatter formatter = new Formatter(builder, null);
198 builder.append(charArray); in print()
[all …]
/frameworks/compile/mclinker/unittests/
DLinkerTest.cpp62 IRBuilder builder(module, config); in TEST_F() local
66 if (linker.link(module, builder)) in TEST_F()
103 IRBuilder builder(module, config); in TEST_F() local
108 builder.ReadInput("crtbegin", crtbegin); in TEST_F()
113 builder.ReadInput("plasma", plasma); in TEST_F()
116 builder.ReadInput("m"); in TEST_F()
117 builder.ReadInput("log"); in TEST_F()
118 builder.ReadInput("jnigraphics"); in TEST_F()
119 builder.ReadInput("c"); in TEST_F()
124 builder.ReadInput("crtend", crtend); in TEST_F()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgramStore.java237 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST() local
238 builder.setDepthFunc(ProgramStore.DepthFunc.LESS); in BLEND_NONE_DEPTH_TEST()
239 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_TEST()
240 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_TEST()
241 builder.setDepthMaskEnabled(true); in BLEND_NONE_DEPTH_TEST()
242 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST()
258 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE() local
259 builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); in BLEND_NONE_DEPTH_NONE()
260 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_NONE()
261 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_NONE()
[all …]
DProgramRaster.java85 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_BACK() local
86 builder.setCullMode(CullMode.BACK); in CULL_BACK()
87 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK()
97 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_FRONT() local
98 builder.setCullMode(CullMode.FRONT); in CULL_FRONT()
99 rs.mProgramRaster_CULL_FRONT = builder.create(); in CULL_FRONT()
109 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_NONE() local
110 builder.setCullMode(CullMode.NONE); in CULL_NONE()
111 rs.mProgramRaster_CULL_NONE = builder.create(); in CULL_NONE()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DHardwareConfig.java176 StringBuilder builder = new StringBuilder(); in toString() local
178 builder.append("Modem "); in toString()
179 builder.append("{ uuid=" + uuid); in toString()
180 builder.append(", state=" + state); in toString()
181 builder.append(", rilModel=" + rilModel); in toString()
182 builder.append(", rat=" + rat.toString()); in toString()
183 builder.append(", maxActiveVoiceCall=" + maxActiveVoiceCall); in toString()
184 builder.append(", maxActiveDataCall=" + maxActiveDataCall); in toString()
185 builder.append(", maxStandby=" + maxStandby); in toString()
186 builder.append(" }"); in toString()
[all …]
DSmsHeader.java270 StringBuilder builder = new StringBuilder(); in toString() local
271 builder.append("UserDataHeader "); in toString()
272 builder.append("{ ConcatRef "); in toString()
274 builder.append("unset"); in toString()
276 builder.append("{ refNumber=" + concatRef.refNumber); in toString()
277 builder.append(", msgCount=" + concatRef.msgCount); in toString()
278 builder.append(", seqNumber=" + concatRef.seqNumber); in toString()
279 builder.append(", isEightBits=" + concatRef.isEightBits); in toString()
280 builder.append(" }"); in toString()
282 builder.append(", PortAddrs "); in toString()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddress.java98 StringBuilder builder = new StringBuilder(); in toString() local
99 builder.append("CdmaSmsAddress "); in toString()
100 builder.append("{ digitMode=" + digitMode); in toString()
101 builder.append(", numberMode=" + numberMode); in toString()
102 builder.append(", numberPlan=" + numberPlan); in toString()
103 builder.append(", numberOfDigits=" + numberOfDigits); in toString()
104 builder.append(", ton=" + ton); in toString()
105 builder.append(", address=\"" + address + "\""); in toString()
106 builder.append(", origBytes=" + HexDump.toHexString(origBytes)); in toString()
107 builder.append(" }"); in toString()
[all …]
DUserData.java152 StringBuilder builder = new StringBuilder(); in toString() local
153 builder.append("UserData "); in toString()
154 builder.append("{ msgEncoding=" + (msgEncodingSet ? msgEncoding : "unset")); in toString()
155 builder.append(", msgType=" + msgType); in toString()
156 builder.append(", paddingBits=" + paddingBits); in toString()
157 builder.append(", numFields=" + numFields); in toString()
158 builder.append(", userDataHeader=" + userDataHeader); in toString()
159 builder.append(", payload='" + HexDump.toHexString(payload) + "'"); in toString()
160 builder.append(", payloadStr='" + payloadStr + "'"); in toString()
161 builder.append(" }"); in toString()
[all …]
/frameworks/base/core/tests/inputmethodtests/src/android/os/
DSparseRectFArrayTest.java57 final SparseRectFArrayBuilder builder = new SparseRectFArrayBuilder(); in testBuilder() local
58 builder.append(100, TEMP_RECT.left, TEMP_RECT.top, TEMP_RECT.right, TEMP_RECT.bottom, in testBuilder()
60 assertNull(builder.build().get(-1)); in testBuilder()
61 assertNull(builder.build().get(0)); in testBuilder()
62 assertNull(builder.build().get(99)); in testBuilder()
63 assertEquals(0, builder.build().getFlags(99, 0 /* valueIfKeyNotFound */)); in testBuilder()
64 assertEquals(1, builder.build().getFlags(99, 1 /* valueIfKeyNotFound */)); in testBuilder()
65 assertEquals(TEMP_RECT, builder.build().get(100)); in testBuilder()
66 assertEquals(TEMP_FLAGS, builder.build().getFlags(100, 0 /* valueIfKeyNotFound */)); in testBuilder()
67 assertEquals(TEMP_FLAGS, builder.build().getFlags(100, 1 /* valueIfKeyNotFound */)); in testBuilder()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java901 StringBuilder builder = new StringBuilder(); in dumpToString() local
902 builder.append(UiSelector.class.getSimpleName() + "["); in dumpToString()
906 builder.append(", "); in dumpToString()
911 builder.append("TEXT=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
914 builder.append("TEXT_REGEX=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
917 builder.append("START_TEXT=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
920 builder.append("CONTAINS_TEXT=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
923 builder.append("CLASS=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
926 builder.append("CLASS_REGEX=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
929 builder.append("DESCRIPTION=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanSettingsTest.java30 ScanSettings.Builder builder = new ScanSettings.Builder(); in testCallbackType() local
31 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES); in testCallbackType()
32 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH); in testCallbackType()
33 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType()
34 builder.setCallbackType( in testCallbackType()
37 builder.setCallbackType( in testCallbackType()
45 builder.setCallbackType( in testCallbackType()
54 builder.setCallbackType( in testCallbackType()
/frameworks/native/opengl/libs/EGL/
Dtrace.cpp140 StringBuilder builder; in TraceValue() local
141 builder.append(" "); in TraceValue()
152 builder.append("%g%s", * (GLfloat*) value, comma); in TraceValue()
155 builder.append("%d%s", * (GLint*) value, comma); in TraceValue()
159 ALOGD("%s", builder.getString()); in TraceValue()
235 StringBuilder builder; in TraceGL() local
236 builder.append("%s(", name); in TraceGL()
239 builder.append(", "); in TraceGL()
246 builder.append("(%s) 0x%08x", type, (size_t) arg); in TraceGL()
256 builder.append(" | "); in TraceGL()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java155 StringBuilder builder = new StringBuilder(name); in encode() local
156 builder.append('\0').append(type); in encode()
157 builder.append('\0').append(server); in encode()
158 builder.append('\0').append(saveLogin ? username : ""); in encode()
159 builder.append('\0').append(saveLogin ? password : ""); in encode()
160 builder.append('\0').append(dnsServers); in encode()
161 builder.append('\0').append(searchDomains); in encode()
162 builder.append('\0').append(routes); in encode()
163 builder.append('\0').append(mppe); in encode()
164 builder.append('\0').append(l2tpSecret); in encode()
[all …]

1234567891011