/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingTest.java | 97 for (int line = 0; line < breaks.length; line++) { in getBreaks() 98 breaks[line] = staticLayout.getLineEnd(line); in getBreaks() 108 for (int line = 0; line < count; line++) { in debugLayout() 109 int lineStart = staticLayout.getLineStart(line); in debugLayout() 110 int lineEnd = staticLayout.getLineEnd(line); in debugLayout() 111 Log.i("SLLBTest", "Line " + line + " [" + lineStart + ".." in debugLayout() 132 for (int line = 0; line < lineCount; line++) { in layout() 133 final int lineStart = staticLayout.getLineStart(line); in layout() 134 final int lineEnd = staticLayout.getLineEnd(line); in layout() 136 if (line == 0) { in layout() [all …]
|
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/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | WatchUidRunner.java | 123 final String line = mReadReader.readLine(); in waitUntilUidObserverReady() local 124 assertTrue("Unexpected output: " + line, line.startsWith("Watching uid states")); in waitUntilUidObserverReady() 136 String[] line = waitForNextLine(waitUntil, cmd, procState); in expect() local 137 if (!COMMAND_TO_STRING[cmd].equals(line[1])) { in expect() 139 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect() 144 if (procState != null && (line.length < 3 || !procState.equals(line[2]))) { in expect() 146 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect() 151 Log.d(TAG, "Got expected: " + Arrays.toString(line)); in expect() 161 String[] line = waitForNextLine(waitUntil, cmd, procState); in waitFor() local 162 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()
|
/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()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
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 …]
|
D | RcParser.java | 123 String line; in parseFile() local 124 while ((line = buffReader.readLine()) != null) { in parseFile() 125 if (line.startsWith(SECTION_SERVICE)) { in parseFile() 126 parseService(line, buffReader); in parseFile() 127 } else if (line.startsWith(SECTION_IMPORT)) { in parseFile() 128 parseImport(line); in parseFile() 141 private void parseService(String line, BufferedReader buffReader) throws IOException { in parseService() argument 143 String[] phases = line.split(" "); in parseService() 174 private void parseImport(String line) { in parseImport() argument 176 String[] phases = line.split(" "); in parseImport()
|
/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 | 155 String line; in parseUeventFile() local 156 while ((line = in.readLine()) != null) { in parseUeventFile() 157 if (line.trim().length() == 0) { in parseUeventFile() 164 int delimiterIndex = line.indexOf('='); in parseUeventFile() 166 key = line.substring(0, delimiterIndex); in parseUeventFile() 167 value = line.substring(delimiterIndex + 1); in parseUeventFile() 169 key = line; in parseUeventFile()
|
/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/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/tests/os/src/android/os/cts/ |
D | EnvironmentTest.java | 60 String line; in testNoAtime() local 61 while ((line = br.readLine()) != null) { in testNoAtime() 62 final String[] fields = line.split(" "); in testNoAtime() 80 String line; in testHidePid2() local 81 while ((line = br.readLine()) != null) { in testHidePid2() 82 final String[] fields = line.split(" "); in testHidePid2()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | CreateUsersNoAppCrashesTest.java | 116 String line = in.nextLine(); in waitForUserSwitchComplete() local 117 if (line.contains("Showing crash dialog for package")) { in waitForUserSwitchComplete() 118 appErrors.add(line); in waitForUserSwitchComplete() 119 } else if (line.contains(exitString)) { in waitForUserSwitchComplete() 122 } else if (line.contains("FATAL EXCEPTION IN SYSTEM PROCESS")) { in waitForUserSwitchComplete() 123 throw new IllegalStateException("System process crashed - " + line); in waitForUserSwitchComplete() 149 for (String line : errorLogs) { in errorLogsToPackageNames() 150 Matcher matcher = PACKAGE_NAME_PATTERN.matcher(line); in errorLogsToPackageNames() 154 throw new IllegalStateException("Unrecognized line " + line); in errorLogsToPackageNames()
|
/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/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/dumpsys/src/android/dumpsys/cts/ |
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 …]
|
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()
|
/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/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/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 38 String line; in noExecuteOnly() local 40 while ((line = reader.readLine()) != null) { in noExecuteOnly() 41 Matcher m = mapsPattern.matcher(line); in noExecuteOnly() 44 "found:\n" + line, m.matches()); in noExecuteOnly() 57 String line = ""; in getProperty() local 60 line = scanner.nextLine(); in getProperty() 66 return line; in getProperty()
|
/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/tests/camera/libctscamera2jni/ |
D | dng-validate-jni.cpp | 437 std::string line; in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() local 444 while(std::getline(errorStream, line, '\n')) { in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() 446 if ( (line.size() > 3) && in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() 447 (line[0] == line[1]) && in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() 448 (line[1] == line[2]) && in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() 449 (line[2] == '*') ) { in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() 454 ALOGE("**|%s", line.c_str()); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() 456 ALOGI(" |%s", line.c_str()); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 239 for (String line : dumpsysPower.split("\n")) { in assertScreenOff() 240 if (line.contains("Display Power")) { in assertScreenOff() 241 screenAwake = line.trim().endsWith("ON"); in assertScreenOff() 259 for (String line : dumpsysWindowPolicy.split("\n")) { in assertScreenOn() 260 if (line.contains("KeyguardServiceDelegate")) { in assertScreenOn() 262 } else if (keyguardStateLines && line.contains("showing=")) { in assertScreenOn() 263 screenAwake &= line.trim().endsWith("false"); in assertScreenOn() 264 } else if (keyguardStateLines && line.contains("screenState=")) { in assertScreenOn() 265 screenAwake &= line.trim().endsWith("SCREEN_STATE_ON"); in assertScreenOn() 537 String line = lines[i]; in getLongValue() local [all …]
|
/cts/apps/CameraITS/tools/ |
D | run_sensor_fusion_box.py | 198 line = find_matching_line(out_file_path, SHIFT_RE) 199 if line is None: 202 words = line.split(' ') 218 for line in f: 219 if regex.match(line): 220 return line
|