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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java387 final String[] parts = resultData.split(NETWORK_STATUS_SEPARATOR); in checkForAvailabilityInResultData() local
388 assertEquals("Wrong network status: " + resultData, 5, parts.length); in checkForAvailabilityInResultData()
389 final State state = parts[0].equals("null") ? null : State.valueOf(parts[0]); in checkForAvailabilityInResultData()
390 final DetailedState detailedState = parts[1].equals("null") in checkForAvailabilityInResultData()
391 ? null : DetailedState.valueOf(parts[1]); in checkForAvailabilityInResultData()
392 final boolean connected = Boolean.valueOf(parts[2]); in checkForAvailabilityInResultData()
393 final String connectionCheckDetails = parts[3]; in checkForAvailabilityInResultData()
394 final String networkInfo = parts[4]; in checkForAvailabilityInResultData()
/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/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java618 ArrayList<String> parts = divideMessage(LONG_TEXT); in sendMultipartTextMessageIfSupported() local
619 numPartsSent = parts.size(); in sendMultipartTextMessageIfSupported()
626 sendMultiPartTextMessage(mDestAddr, parts, sentIntents, deliveryIntents); in sendMultipartTextMessageIfSupported()
706 protected void sendMultiPartTextMessage(String destAddr, ArrayList<String> parts, in sendMultiPartTextMessage() argument
709 getSmsManager().sendMultipartTextMessage(destAddr, null, parts, sentIntents, in sendMultiPartTextMessage()
712 getSmsManager().sendMultipartTextMessage(destAddr, null, parts, sentIntents, in sendMultiPartTextMessage()
/cts/tools/utils/cts/
Dtools.py86 parts = name.split('.')
87 self.root_suite.Add(parts)
/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/hostsidetests/security/src/android/security/cts/
DSELinuxHostTest.java1371 String[] parts = domainLabel.split(":"); in createProcMap() local
1372 if (parts.length > 4) { in createProcMap()
1375 domainLabel = String.join(":", parts[0], parts[1], parts[2], parts[3]); in createProcMap()
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale76 In general, version 2 follows - in the parts that are significant for