/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | WatchUidRunner.java | 124 final String line = mReadReader.readLine(); in waitUntilUidObserverReady() local 125 assertTrue("Unexpected output: " + line, line.startsWith("Watching uid states")); in waitUntilUidObserverReady() 137 String[] line = waitForNextLine(waitUntil, cmd, procState, 0); in expect() local 138 if (!COMMAND_TO_STRING[cmd].equals(line[1])) { in expect() 140 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect() 145 if (procState != null && (line.length < 3 || !procState.equals(line[2]))) { in expect() 147 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect() 152 Log.d(TAG, "Got expected: " + Arrays.toString(line)); in expect() 178 String[] line = waitForNextLine(waitUntil, cmd, procState, capability); in waitFor() local 179 if (COMMAND_TO_STRING[cmd].equals(line[1])) { in waitFor() [all …]
|
/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/common/device-side/util-axt/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 | AmMonitor.java | 119 final String line = mPendingLines.remove(0); in waitFor() local 120 if (TextUtils.equals(line, expected)) { in waitFor() 122 } else if (TextUtils.equals(line, WAIT_FOR_EARLY_ANR) in waitFor() 123 || TextUtils.equals(line, WAIT_FOR_ANR) in waitFor() 124 || TextUtils.equals(line, WAIT_FOR_CRASHED)) { in waitFor() 165 String line; in run() local 166 while ((line = mReadReader.readLine()) != null) { in run() 167 Log.i(TAG, "debug: " + line); in run() 168 if (mNotExpected.contains(line)) { in run() 176 mPendingLines.add(line); in run()
|
/cts/hostsidetests/library/src_target/com/android/test/usesnativesharedlibrary/ |
D | LoadTest.java | 56 String line; in libNamesFromAssetFile() local 57 while ((line = reader.readLine()) != null) { in libNamesFromAssetFile() 58 if (!line.isEmpty() && line.startsWith("lib") && line.endsWith(".so")) { in libNamesFromAssetFile() 60 result.add(line.substring(3, line.length()-3)); in libNamesFromAssetFile() 72 filter(line -> { in vendorPublicLibraries() 74 String strip = line.trim(); in vendorPublicLibraries() 78 map(line -> line.trim().split("\\s+")[0]). in vendorPublicLibraries()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutGetLineLeftRightTest.java | 146 for (int line = 0; line < lineCount; ++line) { in testGetLineLeft() 147 final int start = mLayout.getLineStart(line); in testGetLineLeft() 148 final int end = mLayout.getLineEnd(line); in testGetLineLeft() 163 assertEquals(expectedLeft, mLayout.getLineLeft(line), 0.0f); in testGetLineLeft() 170 for (int line = 0; line < lineCount; ++line) { in testGetLineRight() 171 final int start = mLayout.getLineStart(line); in testGetLineRight() 172 final int end = mLayout.getLineEnd(line); in testGetLineRight() 188 assertEquals(expectedRight, mLayout.getLineRight(line), 0.0f); in testGetLineRight()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | GfxInfoDumpsysTest.java | 77 String line; in validateProfileData() local 79 while ((line = reader.readLine()) != null && line.isEmpty()) {} in validateProfileData() 81 assertNotNull(line); in validateProfileData() 82 assertTrue("First line was not the expected header: " + line, in validateProfileData() 83 line.startsWith("Flags,FrameTimelineVsyncId,IntendedVsync,Vsync" in validateProfileData() 91 while ((line = reader.readLine()) != null && !line.isEmpty()) { in validateProfileData() 93 String[] parts = line.split(","); in validateProfileData()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ParserUtils.java | 61 for (String line : lines) { in extractIndentedSections() 62 if (skippingStart && line.isEmpty()) { in extractIndentedSections() 66 int indentation = countIndentation(line); in extractIndentedSections() 72 sectionBuilder = new StringBuilder(line).append("\n"); in extractIndentedSections() 74 sectionBuilder.append(line).append("\n"); in extractIndentedSections()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | RcParser.java | 128 String line; in parseFile() local 129 while ((line = buffReader.readLine()) != null) { in parseFile() 130 if (line.startsWith(SECTION_SERVICE)) { in parseFile() 131 parseService(line, buffReader); in parseFile() 132 } else if (line.startsWith(SECTION_IMPORT)) { in parseFile() 133 parseImport(line); in parseFile() 146 private void parseService(String line, BufferedReader buffReader) throws IOException { in parseService() argument 148 String[] phases = line.split("\\s+"); in parseService() 179 private void parseImport(String line) { in parseImport() argument 181 String[] phases = line.split(" "); in parseImport()
|
D | AndroidManifestParser.java | 95 String line; in parseElement() local 100 while ((line = mReader.readLine()) != null) { in parseElement() 101 eleName = getElementName(line); in parseElement() 118 String line; in parseElementItem() local 120 while ((line = mReader.readLine()) != null) { in parseElementItem() 121 indent = parseItem(line); in parseElementItem() 123 eleName = getElementName(line); in parseElementItem() 143 private int parseItem(String line) { in parseItem() argument 147 int indent = line.indexOf("A: "); in parseItem() 149 matcher = pattern_item.matcher(line); in parseItem() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | BooleanTileServiceTest.java | 47 final String line = findLine(dumpLines, tileLabel); in testTileInDumpAndHasBooleanState() local 48 assertNotNull(line); in testTileInDumpAndHasBooleanState() 49 assertTrue(line.trim().startsWith("BooleanState")); in testTileInDumpAndHasBooleanState() 66 String line = findLine(dumpLines, tileLabel); in testValueTracksState() local 69 assertTrue(line.contains("value=false")); in testValueTracksState() 82 line = findLine(dumpLines, tileLabel); in testValueTracksState() 84 assertTrue(line.contains("value=true")); in testValueTracksState()
|
/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/common/device-side/bedstead/testapp/tools/index/ |
D | index_testapps.py | 47 def __init__(self, line, children): argument 48 self.line = line 52 return str(self.line) + "{" + ", ".join([str(s) for s in self.children]) + "}" 69 line = manifest_content[ptr] 70 line_without_indentation = line.lstrip(" ") 71 indentation_size = len(line) - len(line_without_indentation) 91 if element.line: 92 name = element.line[3:].split(" ", 1)[0] 102 if c.line.startswith("E"): 105 elif c.line.startswith("A"): [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ARTBootASLRTest.java | 36 String line; in testARTASLR() local 38 while ((line = bufReader.readLine()) != null) { in testARTASLR() 42 if (line.matches("(.*) \\[anon:dalvik(.*)boot\\.art\\]?")) { in testARTASLR() 44 } else if (line.matches("(.*) /data/dalvik-cache/(.*)boot\\.art")) { in testARTASLR()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/ |
D | PassthroughTestHelper.java | 87 String line = readAsciiLine(mClientRead); in createHttpConnectConnection() local 88 if (!line.equals("HTTP/1.1 200 OK")) { in createHttpConnectConnection() 89 throw new IOException("Proxy not connected: " + line); in createHttpConnectConnection() 123 String line = readAsciiLine(read); in passthrough() local 124 if (!line.equals(testString)) { in passthrough() 125 throw new Exception("Unmatched line: " + line + "\nWith:" + testString); in passthrough()
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | HiddenApiTest.java | 153 String line = reader.readLine(); in doTestSignature() 154 while (line != null) { in doTestSignature() 155 DexMember dexMember = DexApiDocumentParser.parseLine(line, lineIndex); in doTestSignature() 157 && !isFiltered(line)) { in doTestSignature() 161 line = reader.readLine(); in doTestSignature() 193 private boolean isFiltered(String line) { in isFiltered() argument 194 if (line == null) { in isFiltered() 198 int commaIndex = line.indexOf(','); in isFiltered() 199 return commaIndex > 0 && hiddenapiFilterSet.contains(line.substring(0, commaIndex)); in isFiltered()
|
/cts/tests/tests/gwp-asan/enabled/src/android/gwpasan/ |
D | Utils.java | 11 String line; in isGwpAsanEnabled() local 12 while ((line = reader.readLine()) != null) { in isGwpAsanEnabled() 13 if (line.contains("GWP-ASan Guard Page")) { in isGwpAsanEnabled()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
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/tests/tests/os/src/android/os/cts/ |
D | EnvironmentTest.java | 62 String line; in testNoAtime() local 63 while ((line = br.readLine()) != null) { in testNoAtime() 64 final String[] fields = line.split(" "); in testNoAtime() 82 String line; in testHidePid2() local 83 while ((line = br.readLine()) != null) { in testHidePid2() 84 final String[] fields = line.split(" "); in testHidePid2()
|
/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()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 192 for (String line : dumpsysPower.split("\n")) { in assertScreenOff() 193 if (line.contains("Display Power")) { in assertScreenOff() 194 screenAwake = line.trim().endsWith("ON"); in assertScreenOff() 212 for (String line : dumpsysWindowPolicy.split("\n")) { in assertScreenOn() 213 if (line.contains("KeyguardServiceDelegate")) { in assertScreenOn() 215 } else if (keyguardStateLines && line.contains("showing=")) { in assertScreenOn() 216 screenAwake &= line.trim().endsWith("false"); in assertScreenOn() 217 } else if (keyguardStateLines && line.contains("screenState=")) { in assertScreenOn() 218 screenAwake &= line.trim().endsWith("SCREEN_STATE_ON"); in assertScreenOn() 298 String line = lines[i]; in getLongValue() local [all …]
|
/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/permission/src/android/permission/cts/ |
D | ShellCommandPermissionTest.java | 45 String line = reader.readLine(); in executeShellCommandAndRequireError() local 46 while (line != null) { in executeShellCommandAndRequireError() 47 stderr.append(line); in executeShellCommandAndRequireError() 48 line = reader.readLine(); in executeShellCommandAndRequireError()
|
/cts/tools/incremental-cts/ |
D | incremental_deqp.py | 267 for line in f: 270 if ('StatusCode="Pass"' in line or 'StatusCode="NotSupported"' in line or 271 'StatusCode="Fail"' in line): 309 for line in f: 311 if re.search(' comm .*deqp-binary', line): 316 if not line.startswith(' '): 318 correct_mmap = line.startswith('record mmap') and 'misc 1,' not in line 320 if 'filename' in line and correct_mmap: 321 deps_file = line[line.find('filename') + 9:].strip() 522 for line in f: [all …]
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 85 String line = inputConsole.readLine(); in getValidCecClientPorts() local 86 if (line.toLowerCase().contains("com port")) { in getValidCecClientPorts() 87 String port = line.split(":")[1].trim(); in getValidCecClientPorts() 388 String line = inputConsole.readLine(); in checkConsoleOutput() local 389 if (line != null && line.toLowerCase().contains(expectedMessage.toLowerCase())) { in checkConsoleOutput() 390 CLog.v("Found " + expectedMessage + " in " + line); in checkConsoleOutput() 392 } else if (line.toLowerCase().contains(CEC_PORT_BUSY.toLowerCase())) { in checkConsoleOutput() 418 String line = mInputConsole.readLine(); in getAllMessages() local 419 if (pattern.matcher(line).matches()) { in getAllMessages() 420 CecOperand operand = CecMessage.getOperand(line); in getAllMessages() [all …]
|