Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/development/tools/winscope/src/test/unit/
Dmock_long_test.ts21 expect(new MockLong(0, 0).toString()).toEqual('0');
22 expect(new MockLong(10, 0).toString()).toEqual('10');
23 expect(new MockLong(0, 10).toString()).toEqual('42949672960');
24 expect(new MockLong(10, 10).toString()).toEqual('42949672970');
25 expect(new MockLong(-1719594551, 174).toString()).toEqual('749899682249');
Dmock_long.ts20 toString() { method in MockLong
23 return (low + high).toString();
/development/tools/winscope/src/parsers/protolog/legacy/
Dparser_protolog.ts84 assertDefined(fileProto.realTimeToElapsedTimeOffsetMillis).toString(),
107 BigInt(assertDefined(entry.elapsedRealtimeNanos).toString()),
115 let messageHash = assertDefined(entry.messageHash).toString();
120 messageHash = assertDefined(entry.messageHashLegacy).toString();
165 (param) => BigInt(param.toString()),
185 text += this.getParam(sint64Params, sint64ParamsIdx++).toString(10);
188 text += this.getParam(sint64Params, sint64ParamsIdx++).toString(8);
191 text += this.getParam(sint64Params, sint64ParamsIdx++).toString(16);
203 text += this.getParam(doubleParams, doubleParamsIdx++).toString();
209 text += this.getParam(booleanParams, booleanParamsIdx++).toString();
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetworkVars.java74 VAR_MAP.put("build.brand", new StaticVarGetter(Long.toString(Build.TIME)));
81 … VAR_MAP.put("build.version.sdk", new StaticVarGetter(Integer.toString(Build.VERSION.SDK_INT)));
86 VAR_MAP.put("display.width", new StaticVarGetter(Integer.toString(display.getWidth())));
87 VAR_MAP.put("display.height", new StaticVarGetter(Integer.toString(display.getHeight())));
91 VAR_MAP.put("display.density", new StaticVarGetter(Float.toString(dm.density)));
142 return sb.toString();
149 return Long.toString(SystemClock.elapsedRealtime());
154 return Long.toString(SystemClock.uptimeMillis());
159 return Long.toString(System.currentTimeMillis());
164 return Integer.toString(MonkeySourceNetwork.MONKEY_NETWORK_VERSION);
[all …]
DMonkeySourceNetworkViews.java170 String packageName = node.getPackageName().toString(); in translateCommand()
181 return new MonkeyCommandReturn(true, fieldBuilder.toString()); in translateCommand()
277 return new MonkeyCommandReturn(true, ids.toString()); in translateCommand()
299 return new MonkeyCommandReturn(true, positions.toString()); in query()
323 return new MonkeyCommandReturn(true, node.getText().toString()); in query()
339 return new MonkeyCommandReturn(true, node.getClassName().toString()); in query()
353 return new MonkeyCommandReturn(true, Boolean.toString(node.isChecked())); in query()
368 return new MonkeyCommandReturn(true, Boolean.toString(node.isEnabled())); in query()
383 return new MonkeyCommandReturn(true, Boolean.toString(node.isSelected())); in query()
423 return new MonkeyCommandReturn(true, Boolean.toString(node.isFocused())); in query()
[all …]
/development/tools/idegen/src/
DIntelliJ.java34 String ipr = Files.toString(new File(templatesDirectory, IDEA_IPR)); in generateFrom()
37 String iml = Files.toString(new File(templatesDirectory, IDEA_IML)); in generateFrom()
86 sourceRootsXml.toString() + excludeXml.toString()); in generateFrom()
87 iml = iml.replace("JAR_ENTRIES", jarsXml.toString()); in generateFrom()
DFiles.java28 static String toString(File file) throws IOException { in toString() method in Files
37 return builder.toString(); in toString()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnClient.java73 if (!checkProxyConfigs(proxyHost.getText().toString(), in onCreate()
74 proxyPort.getText().toString())) { in onCreate()
79 Arrays.stream(packages.getText().toString().split(",")) in onCreate()
89 serverPortNum = Integer.parseInt(serverPort.getText().toString()); in onCreate()
95 proxyPortNum = Integer.parseInt(proxyPort.getText().toString()); in onCreate()
100 .putString(Prefs.SERVER_ADDRESS, serverAddress.getText().toString()) in onCreate()
102 .putString(Prefs.SHARED_SECRET, sharedSecret.getText().toString()) in onCreate()
103 .putString(Prefs.PROXY_HOSTNAME, proxyHost.getText().toString()) in onCreate()
/development/apps/Development/src/com/android/development/
DConnectivity.java152 Log.d(TAG, "Got broadcast " + intent.getAction() + " extras:" + sb.toString()); in logBroadcast()
180 mSCCycleCountView.setText(Integer.toString(mSCCycleCount));
215 mDCCycleCountView.setText(Integer.toString(mDCCycleCount));
245 mScanResults.setText("Current scan = " + Long.toString(wifiScanResults.size())); in onReceive()
251 mScanCyclesEdit.setText(Long.toString(mScanCur)); in onReceive()
273 Log.d(TAG, "onCapabilitiesChanged: " + network + " " + nc.toString()); in onCapabilitiesChanged()
277 Log.d(TAG, "onLinkPropertiesChanged: " + network + " " + lp.toString()); in onLinkPropertiesChanged()
386 return STATE_NAMES.get(state, Integer.toString(state)); in stateName()
390 return ROLE_NAMES.get(role, Integer.toString(role)); in roleName()
448 mDCOnDurationEdit.setText(Long.toString(mDCOnDuration)); in onCreate()
[all …]
/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/
DReceiveShare.java61 sb.append("Uri: "); sb.append(uri.toString()); sb.append("\n"); in buildShareInfo()
66 sb.append(Long.toString(afd.getStartOffset())); in buildShareInfo()
69 sb.append(Long.toString(afd.getLength())); in buildShareInfo()
73 sb.append(e.toString()); in buildShareInfo()
75 sb.append(e.toString()); in buildShareInfo()
77 sb.append(e.toString()); in buildShareInfo()
/development/tools/winscope/src/parsers/window_manager/
Dcustom_query_utils.ts33 rootWindowContainer?.windowContainer?.identifier?.hashCode?.toString(
95 proto.windowToken?.hashCode?.toString(16) ?? WmCustomQueryUtils.NA;
112 proto.windowContainer?.identifier?.hashCode?.toString(16) ??
127 proto.rootDisplayArea?.windowContainer?.identifier?.hashCode?.toString(
146 proto.taskFragment?.windowContainer?.identifier?.hashCode?.toString(16) ??
179 proto.windowContainer?.identifier?.hashCode?.toString(16) ??
194 const hash = proto.hashCode?.toString(16) ?? WmCustomQueryUtils.NA;
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DAMControl.java43 return execCmd(cmd.toString()); in launchInBackground()
76 lineCount, cmd.split(" ")[0], output.toString())); in execCmd()
79 if (BuildConfig.DEBUG) Log.e(TAG, output.append(e.getMessage()).toString()); in execCmd()
82 return output.toString(); in execCmd()
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
DMethodSourcerTest.java59 mWriter.toString()); in testVoid()
75 mWriter.toString()); in testVoidThrow()
91 mWriter.toString()); in testReturnMap()
DClassSourcerTest.java73 sw.toString()); in testBaseClassSource()
101 sw.toString()); in testInnerClassSource()
136 sw.toString()); in testTemplateClassSource()
DSignatureSourcerTest.java49 String result = mSourcer.getReturnType().toString(); in testReturnMapNoArgs()
61 String result = mSourcer.getReturnType().toString(); in testReturnVoid()
122 String result = mSourcer.getReturnType().toString(); in testManyArgs()
142 array[i] = params.get(i).toString(); in toStringArray()
/development/tools/idegen/src/com/android/idegen/
DModule.java130 return sb.toString(); in calculateRelativePartToRepoRoot()
138 logger.info(toString()); in build()
220 String imlTemplate = Files.toString( in buildImlFile()
257 imlTemplate = imlTemplate.replace("@SOURCES@", sourceDirectories.toString()); in buildImlFile()
265 imlTemplate = imlTemplate.replace("@MODULE_DEPENDENCIES@", moduleDependencies.toString()); in buildImlFile()
282 return sb.toString(); in buildIntermediates()
383 public String toString() { in toString() method in Module
389 .add("explicitModuleNameDependencies", Iterables.toString( in toString()
391 .add("implicitModulePathDependencies", Iterables.toString( in toString()
393 .toString(); in toString()
/development/tools/bugreport/src/com/android/bugreport/html/
DRenderer.java142 makeProcessSnapshotHdf(processesHdf.createChild(Integer.toString(i)), in makeVmTracesHdf()
164 hdf.setValue("triage.pid", Integer.toString(anr.pid)); in makeTriageHdf()
238 makeCpuUsageHdf(hdf.createChild(Integer.toString(i)), snapshot.cpuUsage.get(i)); in makeCpuUsageSnapshotHdf()
254 hdf.setValue("panelId", Integer.toString(mNextPanelId++)); in makeProcessSnapshotHdf()
256 hdf.setValue("pid", Integer.toString(process.pid)); in makeProcessSnapshotHdf()
274 hdf.setValue("priority", Integer.toString(thread.priority)); in makeThreadSnapshotHdf()
275 hdf.setValue("tid", Integer.toString(thread.tid)); in makeThreadSnapshotHdf()
276 hdf.setValue("sysTid", Integer.toString(thread.sysTid)); in makeThreadSnapshotHdf()
317 return result.toString(); in buildFunctionName()
332 hdf.setValue("offset", Integer.toString(f.offset)); in makeStackFrameSnapshotHdf()
[all …]
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
DOutput.java65 write(Character.toString(c)); in write()
74 write(sb.toString()); in write()
DSignatureSourcer.java112 public String toString() { in toString() method in SignatureSourcer
113 return mBuf.toString(); in toString()
141 return mFormalsBuf.toString(); in formalsToString()
219 getBuf().append(Type.getType(Character.toString(descriptor)).getClassName()); in visitBaseType()
DAccessSourcer.java76 public String toString() { in toString() method in AccessSourcer.Flag
77 return super.toString().substring(4).toLowerCase(); in toString()
105 mOutput.write(f.toString()); in write()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/db/
DSelectionBuilder.java237 return mSelection.toString(); in getSelection()
278 public String toString() { in toString() method in SelectionBuilder
280 + ", selectionArgs=" + Arrays.toString(getSelectionArgs()) + "]"; in toString()
326 Log.v(TAG, "query(columns=" + Arrays.toString(columns) + ") " + this); in query()
/development/tools/winscope/src/parsers/transactions/legacy/
Dparser_transactions.ts80 decodedProto.realToElapsedTimeOffsetNanos?.toString() ?? '0',
92 BigInt(assertDefined(entryProto.elapsedRealtimeNanos).toString()),
112 return BigInt(entry.vsyncId.toString()); // convert Long to bigint
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DMidiPrinter.java67 return sb.toString(); in formatBytes()
88 return sb.toString(); in formatMessage()
106 return sb.toString(); in formatDeviceInfo()
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/util/
DUtils.java47 viewMethods.setText(sbMethods.toString()); in printStatus()
56 viewStatus.setText(sbStatus.toString()); in printStatus()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java158 Log.e(TAG, "Error reading from network: " + e.toString()); in onPerformSync()
162 Log.e(TAG, "Error parsing feed: " + e.toString()); in onPerformSync()
166 Log.e(TAG, "Error parsing feed: " + e.toString()); in onPerformSync()
170 Log.e(TAG, "Error updating database: " + e.toString()); in onPerformSync()
174 Log.e(TAG, "Error updating database: " + e.toString()); in onPerformSync()
246 .appendPath(Integer.toString(id)).build(); in updateLocalFeedData()
264 .appendPath(Integer.toString(id)).build(); in updateLocalFeedData()

12345678910>>...16