/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | WatchUidRunner.java | 121 final String line = mReadReader.readLine(); in waitUntilUidObserverReady() local 122 assertTrue("Unexpected output: " + line, line.startsWith("Watching uid states")); in waitUntilUidObserverReady() 134 String[] line = waitForNextLine(waitUntil, cmd, procState); in expect() local 135 if (!COMMAND_TO_STRING[cmd].equals(line[1])) { in expect() 137 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect() 142 if (procState != null && (line.length < 3 || !procState.equals(line[2]))) { in expect() 144 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect() 149 Log.d(TAG, "Got expected: " + Arrays.toString(line)); in expect() 159 String[] line = waitForNextLine(waitUntil, cmd, procState); in waitFor() local 160 if (COMMAND_TO_STRING[cmd].equals(line[1])) { in waitFor() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingTest.java | 95 for (int line = 0; line < breaks.length; line++) { in getBreaks() 96 breaks[line] = staticLayout.getLineEnd(line); in getBreaks() 106 for (int line = 0; line < count; line++) { in debugLayout() 107 int lineStart = staticLayout.getLineStart(line); in debugLayout() 108 int lineEnd = staticLayout.getLineEnd(line); in debugLayout() 109 Log.i("SLLBTest", "Line " + line + " [" + lineStart + ".." in debugLayout() 130 for (int line = 0; line < lineCount; line++) { in layout() 131 final int lineStart = staticLayout.getLineStart(line); in layout() 132 final int lineEnd = staticLayout.getLineEnd(line); in layout() 134 if (line == 0) { in layout() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | TextUtils.java | 41 final String line = lines[i]; in extractSection() local 42 if (start.matcher(line).matches()) { in extractSection() 44 sb.append(line); in extractSection() 53 final String line = lines[i]; in extractSection() local 54 if (end.matcher(line).matches()) { in extractSection() 56 sb.append(line); in extractSection() 61 sb.append(line); in extractSection()
|
D | ReportLogDeviceInfoStore.java | 89 String line; in close() local 90 while ((line = jsonReader.readLine()) != null) { in close() 92 metricsWriter.write(line, 0, line.length()); in close()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESCipherNistCavpKatTest.java | 172 String line; in runTestsForKatFile() local 179 while ((line = in.readLine()) != null) { in runTestsForKatFile() 181 line = line.trim(); in runTestsForKatFile() 182 if (line.startsWith("#")) { in runTestsForKatFile() 189 if (line.length() == 0) { in runTestsForKatFile() 193 if ((line.startsWith("[")) && (line.endsWith("]"))) { in runTestsForKatFile() 194 section = line.substring(1, line.length() - 1); in runTestsForKatFile() 202 int delimiterIndex = line.indexOf('='); in runTestsForKatFile() 205 + " definition: " + line); in runTestsForKatFile() 207 String name = line.substring(0, delimiterIndex).trim(); in runTestsForKatFile() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ARTBootASLRTest.java | 38 String line; in testARTASLR() local 40 while ((line = bufReader.readLine()) != null) { in testARTASLR() 42 if (line.matches("/system/.*boot\\.art")) { in testARTASLR() 43 fail("found " + line + " from system partition"); in testARTASLR() 44 } else if (line.matches(".*boot\\.art")) { in testARTASLR()
|
D | HwRngTest.java | 151 String line; in parseUeventFile() local 152 while ((line = in.readLine()) != null) { in parseUeventFile() 153 if (line.trim().length() == 0) { in parseUeventFile() 160 int delimiterIndex = line.indexOf('='); in parseUeventFile() 162 key = line.substring(0, delimiterIndex); in parseUeventFile() 163 value = line.substring(delimiterIndex + 1); in parseUeventFile() 165 key = line; in parseUeventFile()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ConnectionStatus.java | 73 for (String line : lines) { in printLines() 74 Log.d(TAG, line); in printLines() 98 String line; in pingTest() local 101 while ((line = reader.readLine()) != null) { in pingTest() 102 lines.add(line); in pingTest() 110 while ((line = reader.readLine()) != null) { in pingTest() 111 lines.add(line); in pingTest()
|
/cts/tests/signature/src/android/signature/cts/ |
D | DexApiDocumentParser.java | 105 String line = mReader.readLine(); in next() local 106 if (line == null) { in next() 115 Matcher matchClass = REGEX_CLASS.matcher(line); in next() 116 Matcher matchField = REGEX_FIELD.matcher(line); in next() 117 Matcher matchMethod = REGEX_METHOD.matcher(line); in next() 123 throw new ParseException("Could not parse: \"" + line + "\"", mLineNum); in next() 125 throw new ParseException("Ambiguous parse: \"" + line + "\"", mLineNum); in next()
|
/cts/hostsidetests/api/src/com/android/cts/api/ |
D | UnofficialApisUsageTest.java | 73 public static JavaModule newPackageFromLine(String line) { in newPackageFromLine() argument 75 line = line.split(":")[1]; // filter-out "package:" prefix in newPackageFromLine() 76 int separatorPos = line.lastIndexOf('='); in newPackageFromLine() 77 String path = line.substring(0, separatorPos); in newPackageFromLine() 78 String name = line.substring(separatorPos + 1); in newPackageFromLine() 82 public static JavaModule newLibraryFromLine(String line) { in newLibraryFromLine() argument 84 String[] tokens = line.trim().split(" "); in newLibraryFromLine() 94 .map(line -> JavaModule.newPackageFromLine(line)); in getPackages() 102 .map(line -> JavaModule.newLibraryFromLine(line)) in getLibraries()
|
/cts/tools/selinux/ |
D | SELinuxNeverallowTestGen.py | 50 for line in lines: 51 if line.startswith("BEGIN_TREBLE_ONLY"): 54 elif line.startswith("END_TREBLE_ONLY"): 59 elif line.startswith("BEGIN_COMPATIBLE_PROPERTY_ONLY"): 62 elif line.startswith("END_COMPATIBLE_PROPERTY_ONLY"): 67 rule = NeverallowRule(line)
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_NoExecutePermissionTest.cpp | 27 char line[1024]; in isAddressExecutable() local 34 while(fgets(line, sizeof(line), fp) != NULL) { in isAddressExecutable() 38 int scan = sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %9s ", &start, &end, permissions); in isAddressExecutable()
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
D | GestureTest.java | 50 GestureStroke line = mLineHelper.createLineGesture(); in testGetStrokes() local 51 mGesture.addStroke(line); in testGetStrokes() 53 assertEquals(line, mGesture.getStrokes().get(0)); in testGetStrokes() 62 GestureStroke line = mLineHelper.createLineGesture(); in testGetStrokesCount() local 63 mGesture.addStroke(line); in testGetStrokesCount()
|
D | GestureStrokeTest.java | 110 GestureStroke line = mHelper.createLineGesture(); in testComputeOrientedBoundingBox() local 111 OrientedBoundingBox box = line.computeOrientedBoundingBox(); in testComputeOrientedBoundingBox() 123 GestureStroke line = mHelper.createLineGesture(); in testBoundingBox_line() local 124 mHelper.assertLineBoundingBox(line.boundingBox); in testBoundingBox_line()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | VirtualContainerView.java | 155 final Line line = mLines.get(i); in onDraw() local 156 if (!line.visible) { in onDraw() 159 Log.v(TAG, "Drawing '" + line + "' at " + x + "x" + y); in onDraw() 160 mTextPaint.setColor(line.focused ? mFocusedColor : mUnfocusedColor); in onDraw() 161 final String readOnlyText = line.label.text + ": ["; in onDraw() 162 final String writeText = line.text.text + "]"; in onDraw() 168 line.bounds.set((int) x, (int) (y - mLineLength), in onDraw() 170 Log.d(TAG, "setBounds(" + x + ", " + y + "): " + line.bounds); in onDraw() 184 final Line line = mLines.get(i); in onTouchEvent() local 191 Log.d(TAG, "Changing focus to " + line); in onTouchEvent() [all …]
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | CreateUsersNoAppCrashesTest.java | 125 String line = in.nextLine(); in waitForUserSwitchComplete() local 126 if (line.contains("Showing crash dialog for package")) { in waitForUserSwitchComplete() 127 appErrors.add(line); in waitForUserSwitchComplete() 128 } else if (line.contains(exitString)) { in waitForUserSwitchComplete() 131 } else if (line.contains("FATAL EXCEPTION IN SYSTEM PROCESS")) { in waitForUserSwitchComplete() 132 throw new IllegalStateException("System process crashed - " + line); in waitForUserSwitchComplete() 158 for (String line : errorLogs) { in errorLogsToPackageNames() 159 Matcher matcher = PACKAGE_NAME_PATTERN.matcher(line); in errorLogsToPackageNames() 163 throw new IllegalStateException("Unrecognized line " + line); in errorLogsToPackageNames()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | StoragedDumpsysTest.java | 101 String line; in testStoragedOutput() local 103 while ((line = reader.readLine()) != null) { in testStoragedOutput() 104 if (line.isEmpty()) { in testStoragedOutput() 108 if (line.contains(",")) { in testStoragedOutput() 109 parts = line.split(","); in testStoragedOutput() 118 parts = line.split(" "); in testStoragedOutput()
|
D | ProcessStatsDumpsysTest.java | 80 private static String[] commaSplit(String line) { in commaSplit() argument 81 if (line.endsWith(",")) { in commaSplit() 82 line = line + " "; in commaSplit() 84 final String[] values = line.split(","); in commaSplit() 97 String line; in checkProcStateOutput() local 98 while ((line = reader.readLine()) != null) { in checkProcStateOutput() 99 if (line.isEmpty()) { in checkProcStateOutput() 102 CLog.d("Checking line: " + line); in checkProcStateOutput() 104 String[] parts = commaSplit(line); in checkProcStateOutput() 328 for (String line : lines) { in findLine() [all …]
|
/cts/suite/audio_quality/test_description/conf/ |
D | detect_usb_audio.py | 42 line = f.readline().strip() 43 if line in product_list: 44 print "___CTS_AUDIO_PASS___ " + line + " " + m.group(1)
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | Strings.java | 46 String line; in readStream() local 47 while ((line = in.readLine()) != null) { in readStream() 48 result.append(line); in readStream() 63 String line; in readFileLines() local 64 while ((line = in.readLine()) != null) { in readFileLines() 65 list.add(line); in readFileLines()
|
/cts/tests/netlegacy22.permission/src/android/net/cts/legacy/api22/permission/ |
D | QtaguidPermissionTest.java | 41 String line; in testAccessPrivateTrafficStats() local 44 while ((line = qtaguidReader.readLine()) != null) { in testAccessPrivateTrafficStats() 45 String tokens[] = line.split(" "); in testAccessPrivateTrafficStats() 66 String line; in accessOwnTrafficStats() local 67 while ((line = qtaguidReader.readLine()) != null) { in accessOwnTrafficStats() 68 String tokens[] = line.split(" "); in accessOwnTrafficStats()
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
D | SampleHostTest.java | 78 String line = in.nextLine(); in testLogcat() local 79 if(line.startsWith("I/"+CLASS)) { in testLogcat() 80 testString = line.split(":")[1].trim(); in testLogcat()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/ |
D | ObjImporter.java | 81 String line; in parse() local 89 while ((line = buffer.readLine()) != null) { in parse() 91 if (line.length() == 0 || line.charAt(0) == '#') in parse() 93 StringTokenizer parts = new StringTokenizer(line, " "); in parse() 110 boolean emptyVt = line.indexOf("//") > -1; in parse() 111 if (emptyVt) line = line.replace("//", "/"); in parse() 113 parts = new StringTokenizer(line); in parse()
|
/cts/common/device-side/device-info/tests/src/com/android/compatibility/common/deviceinfo/ |
D | DeviceInfoTest.java | 54 String line; in readFile() local 55 while((line = bufferedReader.readLine()) != null) { in readFile() 56 stringBuilder.append(line); in readFile()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 73 private static void parseLine(String line, FtraceEntryCallback callback) { in parseLine() argument 74 Matcher m = sLineWithTgid.matcher(line); in parseLine() 85 m = sLineWithIrqInfo.matcher(line); in parseLine() 96 m = sLineLegacy.matcher(line); in parseLine() 106 CLog.i("line doesn't match: " + line); in parseLine() 112 String line; in parse() local 113 while ((line = bufferedReader.readLine()) != null) { in parse() 114 FtraceParser.parseLine(line, callback); in parse()
|