Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 15 of 15) sorted by relevance

/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBatteryStatsDumpsysTest.java63 String[] parts = line.split(",", -1); in testBatterystatsOutput() local
64 assertInteger(parts[0]); // old version in testBatterystatsOutput()
65 assertInteger(parts[1]); // UID in testBatterystatsOutput()
66 switch (parts[2]) { // aggregation type in testBatterystatsOutput()
73 fail("malformed stat: " + parts[2]); in testBatterystatsOutput()
75 assertNotNull(parts[3]); in testBatterystatsOutput()
76 seenTags.add(parts[3]); in testBatterystatsOutput()
79 switch (parts[3]) { in testBatterystatsOutput()
81 checkVersion(parts); in testBatterystatsOutput()
84 checkUid(parts); in testBatterystatsOutput()
[all …]
DProcessStatsDumpsysTest.java104 String[] parts = commaSplit(line); in checkProcStateOutput() local
105 seenTags.add(parts[0]); in checkProcStateOutput()
107 switch (parts[0]) { in checkProcStateOutput()
109 assertEquals(2, parts.length); in checkProcStateOutput()
110 assertEquals(5, Integer.parseInt(parts[1])); in checkProcStateOutput()
113 checkPeriod(parts); in checkProcStateOutput()
116 checkPkgProc(parts); in checkProcStateOutput()
119 checkPkgPss(parts, checkAvg); in checkProcStateOutput()
125 checkPkgSvc(parts); in checkProcStateOutput()
128 checkPkgKills(parts, checkAvg); in checkProcStateOutput()
[all …]
DStoragedDumpsysTest.java102 String[] parts; in testStoragedOutput() local
109 parts = line.split(","); in testStoragedOutput()
110 assertTrue(parts.length == 2); in testStoragedOutput()
111 if (!parts[0].isEmpty()) { in testStoragedOutput()
112 assertInteger(parts[0]); in testStoragedOutput()
114 assertInteger(parts[1]); in testStoragedOutput()
118 parts = line.split(" "); in testStoragedOutput()
119 assertTrue(parts.length == 9); in testStoragedOutput()
120 for (int i = 1; i < parts.length; i++) { in testStoragedOutput()
121 assertInteger(parts[i]); in testStoragedOutput()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DObjImporter.java93 StringTokenizer parts = new StringTokenizer(line, " "); in parse() local
94 int numTokens = parts.countTokens(); in parse()
98 String type = parts.nextToken(); in parse()
101 vertices.add(Float.parseFloat(parts.nextToken())); in parse()
102 vertices.add(Float.parseFloat(parts.nextToken())); in parse()
103 vertices.add(Float.parseFloat(parts.nextToken())); in parse()
113 parts = new StringTokenizer(line); in parse()
115 parts.nextToken(); in parse()
116 StringTokenizer subParts = new StringTokenizer(parts.nextToken(), "/"); in parse()
125 subParts = new StringTokenizer(parts.nextToken(), "/"); in parse()
[all …]
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOService.java45 String[] parts = line.split(":"); in getCgroupCpuset() local
46 if (parts.length >= 3 && parts[1].equals("cpuset")) { in getCgroupCpuset()
47 return parts[2]; in getCgroupCpuset()
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DDalvikTest.java433 String[] parts = line.split(":", 2); in run()
434 String tag = parts[0]; in run()
436 listener.testRunStarted(mRunName, Integer.parseInt(parts[1])); in run()
439 listener.testRunEnded(Integer.parseInt(parts[1]), in run()
442 test = getTestDescription(parts[1]); in run()
445 listener.testFailed(test, processSerializedValue(parts[1])); in run()
447 listener.testEnded(getTestDescription(parts[1]), in run()
461 String[] parts = name.split("#"); in run()
462 String className = parts[0]; in run()
464 if (parts.length > 1) { in run()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconMaskTest.java48 public static void L(String s, Object... parts) { in L() argument
49 Log.d(TAG, (parts.length == 0) ? s : String.format(s, parts)); in L()
DAdaptiveIconDrawableTest.java51 public static void L(String s, Object... parts) { in L() argument
52 Log.d(TAG, (parts.length == 0) ? s : String.format(s, parts)); in L()
/cts/tools/cfassembler/src/dxconvext/
DClassFileAssembler.java185 String[] parts = line.split("\\s+"); in writeClassFile() local
186 for (int i = 0; i < parts.length; i++) { in writeClassFile()
187 String part = parts[i].trim(); in writeClassFile()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java495 final String[] parts = resultData.split(NETWORK_STATUS_SEPARATOR); in checkForAvailabilityInResultData() local
496 assertEquals("Wrong network status: " + resultData, 5, parts.length); // Sanity check in checkForAvailabilityInResultData()
497 final State state = parts[0].equals("null") ? null : State.valueOf(parts[0]); in checkForAvailabilityInResultData()
498 final DetailedState detailedState = parts[1].equals("null") in checkForAvailabilityInResultData()
499 ? null : DetailedState.valueOf(parts[1]); in checkForAvailabilityInResultData()
500 final boolean connected = Boolean.valueOf(parts[2]); in checkForAvailabilityInResultData()
501 final String connectionCheckDetails = parts[3]; in checkForAvailabilityInResultData()
502 final String networkInfo = parts[4]; in checkForAvailabilityInResultData()
/cts/tools/utils/cts/
Dtools.py86 parts = name.split('.')
87 self.root_suite.Add(parts)
/cts/tools/dasm/src/java_cup/
Dparser.cup12 The specification has the following parts:
42 various parts of the specification. Various small parts (e.g., single
53 build up parts of the current production while it is being parsed.
85 /** array for accumulating right hand side parts */
119 /** table of declared symbols -- contains production parts indexed by name */
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java174 String[] parts = fullName.split("[\\(\\)]"); in shouldRun() local
175 String className = parts[1]; in shouldRun()
176 String methodName = String.format("%s#%s", className, parts[0]); in shouldRun()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java628 ArrayList<String> parts = divideMessage(LONG_TEXT); in sendMultipartTextMessageIfSupported() local
629 numPartsSent = parts.size(); in sendMultipartTextMessageIfSupported()
636 sendMultiPartTextMessage(mDestAddr, parts, sentIntents, deliveryIntents); in sendMultipartTextMessageIfSupported()
666 protected void sendMultiPartTextMessage(String destAddr, ArrayList<String> parts, in sendMultiPartTextMessage() argument
668 … getSmsManager().sendMultipartTextMessage(destAddr, null, parts, sentIntents, deliveryIntents); in sendMultiPartTextMessage()
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale76 In general, version 2 follows - in the parts that are significant for