Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 59) sorted by relevance

123

/libcore/luni/src/test/resources/crypto/
Dparse_records.py97 for line in sys.stdin.readlines():
98 line = line.strip()
99 if line == '':
102 if ' =' in line:
103 record[line[:line.index('=') - 1].lower()] = line[line.index('=') + 2:]
104 if line == 'FAIL':
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherBasicsTest.java90 for (String[] line : data) { in testBasicEncryption()
91 Key key = new SecretKeySpec(toBytes(line[KEY_INDEX]), in testBasicEncryption()
93 byte[] iv = toBytes(line[IV_INDEX]); in testBasicEncryption()
94 byte[] plaintext = toBytes(line[PLAINTEXT_INDEX]); in testBasicEncryption()
95 byte[] ciphertext = toBytes(line[CIPHERTEXT_INDEX]); in testBasicEncryption()
110 + " failed on encryption, data is " + Arrays.toString(line), in testBasicEncryption()
116 + " failed on decryption, data is " + Arrays.toString(line), in testBasicEncryption()
140 for (String[] line : data) { in testGcmEncryption()
141 Key key = new SecretKeySpec(toBytes(line[KEY_INDEX]), in testGcmEncryption()
143 byte[] iv = toBytes(line[IV_INDEX]); in testGcmEncryption()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DMetaIndex.java166 String line = null; in registerDirectory() local
177 line = reader.readLine(); in registerDirectory()
178 if (line == null || in registerDirectory()
179 !line.equals("% VERSION 2")) { in registerDirectory()
183 while ((line = reader.readLine()) != null) { in registerDirectory()
184 switch (line.charAt(0)) { in registerDirectory()
197 curJarName = line.substring(2); in registerDirectory()
198 if (line.charAt(0) == '!') { in registerDirectory()
209 contents.add(line); in registerDirectory()
DJarIndex.java305 String line = null; in read() local
312 while((line = br.readLine()) != null && !line.endsWith(".jar")); in read()
314 for(;line != null; line = br.readLine()) { in read()
315 if (line.length() == 0) in read()
318 if (line.endsWith(".jar")) { in read()
319 currentJar = line; in read()
322 String name = line; in read()
/libcore/luni/src/test/java/libcore/java/io/
DOldLineNumberReaderTest.java33 String line; in test_markI() local
36 line = lnr.readLine(); in test_markI()
39 line.equals(lnr.readLine())); in test_markI()
124 String line = null; in test_readLine() local
126 line = lnr.readLine(); in test_readLine()
127 assertEquals("Test 1: Returned incorrect string;", "1", line); in test_readLine()
144 String line = null; in test_reset() local
148 line = lnr.readLine(); in test_reset()
149 assertEquals("Test 2: Failed to reset reader", "0", line); in test_reset()
DOldDataInputStreamTest.java261 String line; in test_readLine() local
265 line = dis.readLine(); in test_readLine()
266 assertTrue("Test 1: Incorrect line written or read: " + line, in test_readLine()
267 line.equals("Lorem")); in test_readLine()
268 line = dis.readLine(); in test_readLine()
269 assertTrue("Test 2: Incorrect line written or read: " + line, in test_readLine()
270 line.equals("ipsum")); in test_readLine()
271 line = dis.readLine(); in test_readLine()
272 assertTrue("Test 3: Incorrect line written or read: " + line, in test_readLine()
273 line.equals("dolor sit amet...")); in test_readLine()
DOldBufferedReaderTest.java220 String line; in test_readLine() local
223 line = br.readLine(); in test_readLine()
224 assertTrue("Test 1: Incorrect line written or read: " + line, in test_readLine()
225 line.equals("Lorem")); in test_readLine()
226 line = br.readLine(); in test_readLine()
227 assertTrue("Test 2: Incorrect line written or read: " + line, in test_readLine()
228 line.equals("ipsum")); in test_readLine()
229 line = br.readLine(); in test_readLine()
230 assertTrue("Test 3: Incorrect line written or read: " + line, in test_readLine()
231 line.equals("dolor sit amet...")); in test_readLine()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DLineNumberReaderTest.java71 String line; in test_markI() local
74 line = lnr.readLine(); in test_markI()
76 assertTrue("Failed to return to marked position", line.equals(lnr in test_markI()
112 String line = null; in test_readLine() local
114 line = lnr.readLine(); in test_readLine()
116 assertEquals("Returned incorrect string", "1", line); in test_readLine()
138 String line = null; in test_reset() local
142 line = lnr.readLine(); in test_reset()
144 assertEquals("Failed to reset reader", "0", line); in test_reset()
DConsoleTest.java87 String line = console.readLine(); in test_readLine() local
88 assertEquals("hello world", line); in test_readLine()
92 String line = console.readLine("%d %s", 2, "Please input a line of string to test:"); in test_readLine_LString_LObject() local
93 assertEquals("hello world", line); in test_readLine_LString_LObject()
/libcore/tools/docs/crypto/
Dcrypto_docs.py26 for line in f:
27 if not line.strip().startswith('#'):
28 stripped_contents += line
Dupdate_crypto_support.py144 for line in f.readlines():
145 line = line.strip()
147 if line.strip() == 'BEGIN ALGORITHM LIST':
150 if line == 'END ALGORITHM LIST':
153 category, algorithm = line.split()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerException.java218 int line = locator.getLineNumber(); in getMessageAndLocation() local
226 if (0 != line) { in getMessageAndLocation()
228 sbuffer.append(line); in getMessageAndLocation()
251 int line = locator.getLineNumber(); in getLocationAsString() local
259 if (0 != line) { in getLocationAsString()
261 sbuffer.append(line); in getLocationAsString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThrowableTest.java107 String line = trace.substring(lastIndex, index); in fixStacktrace() local
110 index = line.indexOf("("); in fixStacktrace()
112 line = line.substring(0, index); in fixStacktrace()
116 if (line.indexOf("java.lang.Throwable") > -1) in fixStacktrace()
118 sb.append(line); in fixStacktrace()
DProcessManagerTest.java143 String line; in logErrors()
145 while ((line = reader.readLine()) != null) { in logErrors()
146 System.err.println(line); in logErrors()
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java165 for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) { in forLocale()
166 if (line.startsWith(countryCode)) { in forLocale()
167 int olsonIdStart = line.indexOf('\t', 4) + 1; in forLocale()
168 int olsonIdEnd = line.indexOf('\t', olsonIdStart); in forLocale()
170 olsonIdEnd = line.length(); // Not all zone.tab lines have a comment. in forLocale()
172 ids.add(line.substring(olsonIdStart, olsonIdEnd)); in forLocale()
/libcore/luni/src/test/java/libcore/java/math/
DCSVTest.java43 String line = ""; in TestCSVInputs() local
49 while ((line = br.readLine()) != null) { in TestCSVInputs()
50 if (line.charAt(0) != '#') { in TestCSVInputs()
51 String[] testCase = line.split(","); in TestCSVInputs()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DBidiTest.java787 Bidi line = bd.createLineBidi(2, 7); in testCreateLineBidi() local
788 assertFalse(line.baseIsLeftToRight()); in testCreateLineBidi()
789 assertEquals(1, line.getBaseLevel()); in testCreateLineBidi()
790 assertEquals(5, line.getLength()); in testCreateLineBidi()
791 assertEquals(2, line.getLevelAt(0)); in testCreateLineBidi()
792 assertEquals(3, line.getLevelAt(1)); in testCreateLineBidi()
793 assertEquals(3, line.getLevelAt(2)); in testCreateLineBidi()
794 assertEquals(3, line.getLevelAt(3)); in testCreateLineBidi()
795 assertEquals(2, line.getLevelAt(4)); in testCreateLineBidi()
796 assertEquals(1, line.getLevelAt(1000)); in testCreateLineBidi()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/
DCryptoPolicyParser.java53 ParsingException(int line, String msg) { in ParsingException() argument
57 ParsingException(int line, String expect, String actual) { in ParsingException() argument
/libcore/support/src/test/java/libcore/java/security/
DCpuFeatures.java67 String line; in getFieldFromCpuinfo() local
68 while ((line = br.readLine()) != null) { in getFieldFromCpuinfo()
69 Matcher m = p.matcher(line); in getFieldFromCpuinfo()
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DParameterMetadataTestClasses.smali56 .line 6
66 .line 191
78 .line 89
97 .line 70
102 .line 76
121 .line 89
144 .line 85
DParameterMetadataTestClasses$NonIdenticalParameters.smali39 .line 59
59 .line 60
75 .line 61
DParameterMetadataTestClasses$1MethodClass.smali51 .line 81
56 .line 82
59 .line 81
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java207 public FtpDirEntry parseLine(String line) { in parseLine() argument
221 m = patterns[j].matcher(line); in parseLine()
285 …file.setType(dir ? FtpDirEntry.Type.DIR : (line.charAt(0) == 'l' ? FtpDirEntry.Type.LINK : FtpDirE… in parseLine()
296 public FtpDirEntry parseLine(String line) { in parseLine() argument
298 int i = line.lastIndexOf(";"); in parseLine()
300 name = line.substring(i + 1).trim(); in parseLine()
301 line = line.substring(0, i); in parseLine()
303 name = line.trim(); in parseLine()
304 line = ""; in parseLine()
307 while (!line.isEmpty()) { in parseLine()
[all …]
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpDirParser.java48 public FtpDirEntry parseLine(String line); in parseLine() argument
/libcore/luni/src/test/java/libcore/util/
DTimeZoneFinderTest.java639 for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) { in consistencyTest()
640 int countryCodeEnd = line.indexOf('\t', 1); in consistencyTest()
641 int olsonIdStart = line.indexOf('\t', 4) + 1; in consistencyTest()
642 int olsonIdEnd = line.indexOf('\t', olsonIdStart); in consistencyTest()
644 olsonIdEnd = line.length(); // Not all zone.tab lines have a comment. in consistencyTest()
646 String countryCode = line.substring(0, countryCodeEnd); in consistencyTest()
647 String olsonId = line.substring(olsonIdStart, olsonIdEnd); in consistencyTest()

123