Home
last modified time | relevance | path

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

1234567

/frameworks/base/services/java/com/android/server/pm/
DInstaller.java192 StringBuilder builder = new StringBuilder("install"); in install() local
193 builder.append(' '); in install()
194 builder.append(name); in install()
195 builder.append(' '); in install()
196 builder.append(uid); in install()
197 builder.append(' '); in install()
198 builder.append(gid); in install()
199 return execute(builder.toString()); in install()
203 StringBuilder builder = new StringBuilder("dexopt"); in dexopt() local
204 builder.append(' '); in dexopt()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNativeDaemonConnectorTest.java32 final StringBuilder builder = new StringBuilder(); in testArgumentNormal() local
34 builder.setLength(0); in testArgumentNormal()
35 appendEscaped(builder, ""); in testArgumentNormal()
36 assertEquals("", builder.toString()); in testArgumentNormal()
38 builder.setLength(0); in testArgumentNormal()
39 appendEscaped(builder, "foo"); in testArgumentNormal()
40 assertEquals("foo", builder.toString()); in testArgumentNormal()
42 builder.setLength(0); in testArgumentNormal()
43 appendEscaped(builder, "foo\"bar"); in testArgumentNormal()
44 assertEquals("foo\\\"bar", builder.toString()); in testArgumentNormal()
[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/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V30.java80 StringBuilder builder = null; in getNonEmptyLine() local
84 if (builder != null) { in getNonEmptyLine()
85 return builder.toString(); in getNonEmptyLine()
93 if (builder != null) { in getNonEmptyLine()
94 return builder.toString(); in getNonEmptyLine()
101 if (builder != null) { in getNonEmptyLine()
117 builder.append(line.substring(1)); in getNonEmptyLine()
119 builder = new StringBuilder(); in getNonEmptyLine()
120 builder.append(mPreviousLine); in getNonEmptyLine()
122 builder.append(line.substring(1)); in getNonEmptyLine()
[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/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/com/android/internal/os/
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/base/graphics/java/android/renderscript/
DProgramStore.java239 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST() local
240 builder.setDepthFunc(ProgramStore.DepthFunc.LESS); in BLEND_NONE_DEPTH_TEST()
241 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_TEST()
242 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_TEST()
243 builder.setDepthMaskEnabled(true); in BLEND_NONE_DEPTH_TEST()
244 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST()
260 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE() local
261 builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); in BLEND_NONE_DEPTH_NONE()
262 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in BLEND_NONE_DEPTH_NONE()
263 builder.setDitherEnabled(false); in BLEND_NONE_DEPTH_NONE()
[all …]
DProgramRaster.java87 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_BACK() local
88 builder.setCullMode(CullMode.BACK); in CULL_BACK()
89 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK()
99 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_FRONT() local
100 builder.setCullMode(CullMode.FRONT); in CULL_FRONT()
101 rs.mProgramRaster_CULL_FRONT = builder.create(); in CULL_FRONT()
111 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_NONE() local
112 builder.setCullMode(CullMode.NONE); in CULL_NONE()
113 rs.mProgramRaster_CULL_NONE = builder.create(); in CULL_NONE()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java1089 StringBuilder builder = new StringBuilder(); in toString() local
1090 builder.append("EventType: ").append(eventTypeToString(mEventType)); in toString()
1091 builder.append("; EventTime: ").append(mEventTime); in toString()
1092 builder.append("; PackageName: ").append(mPackageName); in toString()
1093 builder.append("; MovementGranularity: ").append(mMovementGranularity); in toString()
1094 builder.append("; Action: ").append(mAction); in toString()
1095 builder.append(super.toString()); in toString()
1097 builder.append("\n"); in toString()
1098 builder.append("; sourceWindowId: ").append(mSourceWindowId); in toString()
1099 builder.append("; mSourceNodeId: ").append(mSourceNodeId); 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 …]
DAccessibilityNodeInfo.java1816 StringBuilder builder = new StringBuilder(); in toString() local
1817 builder.append(super.toString()); in toString()
1820 builder.append("; accessibilityViewId: " + getAccessibilityViewId(mSourceNodeId)); in toString()
1821 builder.append("; virtualDescendantId: " + getVirtualDescendantId(mSourceNodeId)); in toString()
1822 builder.append("; mParentNodeId: " + mParentNodeId); in toString()
1825 builder.append("; MovementGranularities: ["); in toString()
1829 builder.append(getMovementGranularitySymbolicName(granularity)); in toString()
1831 builder.append(", "); in toString()
1834 builder.append("]"); in toString()
1837 builder.append("; childAccessibilityIds: ["); in toString()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsHeader.java251 StringBuilder builder = new StringBuilder(); in toString() local
252 builder.append("UserDataHeader "); in toString()
253 builder.append("{ ConcatRef "); in toString()
255 builder.append("unset"); in toString()
257 builder.append("{ refNumber=" + concatRef.refNumber); in toString()
258 builder.append(", msgCount=" + concatRef.msgCount); in toString()
259 builder.append(", seqNumber=" + concatRef.seqNumber); in toString()
260 builder.append(", isEightBits=" + concatRef.isEightBits); in toString()
261 builder.append(" }"); in toString()
263 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/services/java/com/android/server/wm/
DMagnificationSpec.java36 StringBuilder builder = new StringBuilder(); in toString() local
37 builder.append("<scale:"); in toString()
38 builder.append(mScale); in toString()
39 builder.append(",offsetX:"); in toString()
40 builder.append(mOffsetX); in toString()
41 builder.append(",offsetY:"); in toString()
42 builder.append(mOffsetY); in toString()
43 builder.append(">"); in toString()
44 return builder.toString(); in toString()
/frameworks/compile/libbcc/lib/AndroidBitcode/ARM/
DARMABCExpandVAArg.cpp45 llvm::IRBuilder<> builder(pInst); in expandVAArg() local
52 builder.CreateBitCast(va_list_addr, bpp, "ap"); in expandVAArg()
53 llvm::Value *addr = builder.CreateLoad(va_list_addr_bpp, "ap.cur"); in expandVAArg()
61 builder.CreatePtrToInt(addr, llvm::Type::getInt32Ty(*mContext)); in expandVAArg()
62 addr_as_int = builder.CreateAdd(addr_as_int, in expandVAArg()
63 builder.getInt32(ty_align-1)); in expandVAArg()
64 addr_as_int = builder.CreateAnd(addr_as_int, in expandVAArg()
65 builder.getInt32(~(ty_align-1))); in expandVAArg()
66 addr = builder.CreateIntToPtr(addr_as_int, bp); in expandVAArg()
68 llvm::Value *addr_typed = builder.CreateBitCast(addr, pty); in expandVAArg()
[all …]
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
DUiSelector.java839 StringBuilder builder = new StringBuilder(); in dumpToString() local
840 builder.append(UiSelector.class.getSimpleName() + "["); in dumpToString()
844 builder.append(", "); in dumpToString()
849 builder.append("TEXT=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
852 builder.append("TEXT_REGEX=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
855 builder.append("START_TEXT=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
858 builder.append("CONTAINS_TEXT=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
861 builder.append("CLASS=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
864 builder.append("CLASS_REGEX=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
867 builder.append("DESCRIPTION=").append(mSelectorAttributes.valueAt(i)); in dumpToString()
[all …]
/frameworks/compile/libbcc/lib/AndroidBitcode/Mips/
DMipsABCExpandVAArg.cpp45 llvm::IRBuilder<> builder(pInst); in expandVAArg() local
50 llvm::Value *va_list_addr_bpp = builder.CreateBitCast(va_list_addr, in expandVAArg()
52 llvm::Value *addr = builder.CreateLoad(va_list_addr_bpp, "ap.cur"); in expandVAArg()
58 llvm::Value *addr_as_int = builder.CreatePtrToInt(addr, int_ty); in expandVAArg()
61 llvm::Value *add_v = builder.CreateAdd(addr_as_int, inc); in expandVAArg()
62 llvm::Value *and_v = builder.CreateAnd(add_v, mask); in expandVAArg()
63 addr_typed = builder.CreateIntToPtr(and_v, pty); in expandVAArg()
66 addr_typed = builder.CreateBitCast(addr, pty); in expandVAArg()
69 llvm::Value *aligned_addr = builder.CreateBitCast(addr_typed, bp); in expandVAArg()
74 builder.CreateGEP(aligned_addr, llvm::ConstantInt::get(int_ty, offset), in expandVAArg()
[all …]
/frameworks/native/opengl/libs/EGL/
Dtrace.cpp141 StringBuilder builder; in TraceValue() local
142 builder.append(" "); in TraceValue()
153 builder.append("%g%s", * (GLfloat*) value, comma); in TraceValue()
156 builder.append("%d%s", * (GLint*) value, comma); in TraceValue()
160 ALOGD("%s", builder.getString()); in TraceValue()
236 StringBuilder builder; in TraceGL() local
237 builder.append("%s(", name); in TraceGL()
240 builder.append(", "); in TraceGL()
247 builder.append("(%s) 0x%08x", type, (size_t) arg); in TraceGL()
257 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 …]
/frameworks/support/v4/java/android/support/v4/accessibilityservice/
DAccessibilityServiceInfoCompat.java189 StringBuilder builder = new StringBuilder(); in feedbackTypeToString() local
190 builder.append("["); in feedbackTypeToString()
194 if (builder.length() > 1) { in feedbackTypeToString()
195 builder.append(", "); in feedbackTypeToString()
199 builder.append("FEEDBACK_AUDIBLE"); in feedbackTypeToString()
202 builder.append("FEEDBACK_HAPTIC"); in feedbackTypeToString()
205 builder.append("FEEDBACK_GENERIC"); in feedbackTypeToString()
208 builder.append("FEEDBACK_SPOKEN"); in feedbackTypeToString()
211 builder.append("FEEDBACK_VISUAL"); in feedbackTypeToString()
215 builder.append("]"); in feedbackTypeToString()
[all …]
/frameworks/base/core/java/android/os/storage/
DStorageVolume.java208 final StringBuilder builder = new StringBuilder("StorageVolume ["); in toString() local
209 builder.append("mStorageId=").append(mStorageId); in toString()
210 builder.append(" mPath=").append(mPath); in toString()
211 builder.append(" mDescriptionId=").append(mDescriptionId); in toString()
212 builder.append(" mPrimary=").append(mPrimary); in toString()
213 builder.append(" mRemovable=").append(mRemovable); in toString()
214 builder.append(" mEmulated=").append(mEmulated); in toString()
215 builder.append(" mMtpReserveSpace=").append(mMtpReserveSpace); in toString()
216 builder.append(" mAllowMassStorage=").append(mAllowMassStorage); in toString()
217 builder.append(" mMaxFileSize=").append(mMaxFileSize); in toString()
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java565 StringBuilder builder = new StringBuilder(); in feedbackTypeToString() local
566 builder.append("["); in feedbackTypeToString()
572 if (builder.length() > 1) { in feedbackTypeToString()
573 builder.append(", "); in feedbackTypeToString()
575 builder.append("FEEDBACK_AUDIBLE"); in feedbackTypeToString()
578 if (builder.length() > 1) { in feedbackTypeToString()
579 builder.append(", "); in feedbackTypeToString()
581 builder.append("FEEDBACK_HAPTIC"); in feedbackTypeToString()
584 if (builder.length() > 1) { in feedbackTypeToString()
585 builder.append(", "); in feedbackTypeToString()
[all …]

1234567