/libcore/luni/src/main/java/org/apache/harmony/security/ |
D | DefaultPolicyScanner.java | 92 protected StreamTokenizer configure(StreamTokenizer st) { in configure() argument 93 st.slashSlashComments(true); in configure() 94 st.slashStarComments(true); in configure() 95 st.wordChars('_', '_'); in configure() 96 st.wordChars('$', '$'); in configure() 97 return st; in configure() 120 StreamTokenizer st = configure(new StreamTokenizer(r)); in scanStream() local 123 switch (st.nextToken()) { in scanStream() 128 if (Util.equalsIgnoreCase("keystore", st.sval)) { in scanStream() 129 keystoreEntries.add(readKeystoreEntry(st)); in scanStream() [all …]
|
/libcore/luni/src/test/java/tests/api/java/io/ |
D | StreamTokenizerTest.java | 46 StreamTokenizer st; field in StreamTokenizerTest 60 st = new StreamTokenizer(new StringBufferInputStream( in test_ConstructorLjava_io_InputStream() 64 StreamTokenizer.TT_WORD, st.nextToken()); in test_ConstructorLjava_io_InputStream() 66 "d", st.sval); in test_ConstructorLjava_io_InputStream() 69 StreamTokenizer.TT_NUMBER, st.nextToken()); in test_ConstructorLjava_io_InputStream() 71 8.0, st.nval); in test_ConstructorLjava_io_InputStream() 74 39, st.nextToken()); in test_ConstructorLjava_io_InputStream() 76 "h", st.sval); in test_ConstructorLjava_io_InputStream() 91 StreamTokenizer.TT_WORD, st.nextToken()); in test_ConstructorLjava_io_Reader() 93 "d", st.sval); in test_ConstructorLjava_io_Reader() [all …]
|
/libcore/luni/src/test/java/tests/SQLite/ |
D | StmtTest.java | 42 private static Stmt st = null; field in StmtTest 102 if (st != null) { in tearDown() 104 st.close(); in tearDown() 132 Stmt st = new Stmt(); in testStmt() local 133 assertNotNull(st); in testStmt() 136 assertNotNull(st); in testStmt() 144 st.step(); in testStmt() 175 st = db.prepare(""); in testPrepare() 176 st.prepare(); in testPrepare() 183 st = new Stmt(); in testPrepare() [all …]
|
D | FunctionContextTest.java | 46 Statement st = null; in setUp() local 50 st = conn.createStatement(); in setUp() 51 st.execute(DatabaseCreator.CREATE_TABLE2); in setUp() 52 st.execute(DatabaseCreator.CREATE_TABLE_SIMPLE1); in setUp() 53 st.close(); in setUp() 174 Stmt st = null; in testSet_resultByteArray() local 183 st = db.prepare("insert into testBinaryData values (?)"); in testSet_resultByteArray() 184 st.bind(1, testBinArrayFnc.byteVal); in testSet_resultByteArray() 185 st.step(); in testSet_resultByteArray() 219 Stmt st = null; in testSet_result_zeroblob() local [all …]
|
/libcore/luni/src/test/java/tests/api/java/util/ |
D | StringTokenizerTest.java | 63 StringTokenizer st = new StringTokenizer("This:is:a:test:String", ":"); in test_ConstructorLjava_lang_StringLjava_lang_String() local 64 assertTrue("Created incorrect tokenizer", st.countTokens() == 5 in test_ConstructorLjava_lang_StringLjava_lang_String() 65 && (st.nextElement().equals("This"))); in test_ConstructorLjava_lang_StringLjava_lang_String() 66 st = new StringTokenizer("This:is:a:test:String", null); in test_ConstructorLjava_lang_StringLjava_lang_String() 89 StringTokenizer st = new StringTokenizer("This:is:a:test:String", ":", in test_ConstructorLjava_lang_StringLjava_lang_StringZ() local 91 st.nextElement(); in test_ConstructorLjava_lang_StringLjava_lang_StringZ() 92 assertTrue("Created incorrect tokenizer", st.countTokens() == 8 in test_ConstructorLjava_lang_StringLjava_lang_StringZ() 93 && (st.nextElement().equals(":"))); in test_ConstructorLjava_lang_StringLjava_lang_StringZ() 94 st = new StringTokenizer("This:is:a:test:String", null, true); in test_ConstructorLjava_lang_StringLjava_lang_StringZ() 95 st = new StringTokenizer("This:is:a:test:String", null, false); in test_ConstructorLjava_lang_StringLjava_lang_StringZ() [all …]
|
D | SimpleTimeZoneTest.java | 50 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST"); in test_ConstructorILjava_lang_String() local 51 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_String() 52 assertTrue("Incorrect TZ constructed: " + "returned wrong offset", st in test_ConstructorILjava_lang_String() 54 assertTrue("Incorrect TZ constructed" + "using daylight savings", !st in test_ConstructorILjava_lang_String() 71 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER, in test_ConstructorILjava_lang_StringIIIIIIII() local 74 assertTrue("Incorrect TZ constructed", st in test_ConstructorILjava_lang_StringIIIIIIII() 77 assertTrue("Incorrect TZ constructed", !(st in test_ConstructorILjava_lang_StringIIIIIIII() 80 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); in test_ConstructorILjava_lang_StringIIIIIIII() 81 assertEquals("Incorrect TZ constructed", 1000, st.getRawOffset()); in test_ConstructorILjava_lang_StringIIIIIIII() 82 assertTrue("Incorrect TZ constructed", st.useDaylightTime()); in test_ConstructorILjava_lang_StringIIIIIIII() [all …]
|
/libcore/luni/src/test/java/tests/sql/ |
D | StatementTest.java | 51 Statement st = null; in testAddBatch() local 53 st = conn.createStatement(); in testAddBatch() 54 st.addBatch("INSERT INTO zoo VALUES (3,'Tuzik','dog')"); in testAddBatch() 55 st.addBatch("INSERT INTO zoo VALUES (4,'Mashka','cat')"); in testAddBatch() 57 int[] updateCounts = st.executeBatch(); in testAddBatch() 66 st.close(); in testAddBatch() 72 st = conn.createStatement(); in testAddBatch() 73 st.addBatch(""); in testAddBatch() 74 st.executeBatch(); in testAddBatch() 80 st.close(); in testAddBatch() [all …]
|
D | ConnectionTest.java | 89 Statement st = null; in testCreateStatement_int_int() local 94 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int() 96 st.execute("select id, name from zoo"); in testCreateStatement_int_int() 97 rs = st.getResultSet(); in testCreateStatement_int_int() 110 st.close(); in testCreateStatement_int_int() 117 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int() 119 st.execute("select id, name from zoo"); in testCreateStatement_int_int() 120 rs = st.getResultSet(); in testCreateStatement_int_int() 134 st.close(); in testCreateStatement_int_int() 141 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, in testCreateStatement_int_int() [all …]
|
D | SQLTest.java | 61 Statement st = null; in tearDown() local 64 st = conn.createStatement(); in tearDown() 65 st.execute("drop table if exists zoo"); in tearDown() 71 if (st != null) { in tearDown() 72 st.close(); in tearDown() 88 Statement st = null; in createZoo() local 90 st = conn.createStatement(); in createZoo() 92 st.execute(queries[i]); in createZoo() 99 if (st != null) { in createZoo() 100 st.close(); in createZoo() [all …]
|
D | PreparedStatementTest.java | 94 Statement st = null; in setUp() local 96 st = conn.createStatement(); in setUp() 98 st.execute(queries[i]); in setUp() 104 st.close(); in setUp() 111 Statement st = null; in tearDown() local 113 st = conn.createStatement(); in tearDown() 114 st.execute("drop table if exists type"); in tearDown() 119 st.close(); in tearDown() 148 Statement st = null; in testAddBatch() local 151 st = conn.createStatement(); in testAddBatch() [all …]
|
D | ResultSetMetaDataTest.java | 36 Statement st = null; field in ResultSetMetaDataTest 46 st = conn.createStatement(); in setUp() 47 st.execute(query); in setUp() 48 rs = st.getResultSet(); in setUp() 59 st.close(); in tearDown() 446 Statement st = conn.createStatement(); in testGetScale() local 447 st.executeUpdate(createTable); in testGetScale() 448 st.executeUpdate(insert); in testGetScale() 450 rs = st.executeQuery(select); in testGetScale() 480 st.cancel(); in testGetScale()
|
D | ResultSetGetterTests.java | 59 Statement st = null; field in ResultSetGetterTests 229 st = conn.createStatement(); in setUp() 231 st.execute(queries[i]); in setUp() 233 res = st.executeQuery(queryAllSelect); in setUp() 242 st.execute("drop table if exists type"); in tearDown() 243 st.close(); in tearDown() 249 st.close(); in tearDown() 304 Statement st = null; in testGetBytesIntVarbinary() local 312 st = conn.createStatement(); in testGetBytesIntVarbinary() 313 st.executeUpdate("create table testBinary (VARBINARY value);"); in testGetBytesIntVarbinary() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadTest.java | 50 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 51 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 52 && st.getName().equals("SimpleThread3")); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 53 st.start(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 55 st.join(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_StringL$L() 136 st = new Thread(); in test_setContextClassLoader() 137 st.setContextClassLoader(pcl); in test_setContextClassLoader() 138 assertEquals(pcl, st.getContextClassLoader()); in test_setContextClassLoader() 140 st.setContextClassLoader(null); in test_setContextClassLoader() 141 assertNull(st.getContextClassLoader()); in test_setContextClassLoader() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldErrorManagerTest.java | 39 PrintStream st = new PrintStream(aos); in test_errorCheck() local 40 System.setErr(st); in test_errorCheck() 41 System.setOut(st); in test_errorCheck() 43 st.flush(); in test_errorCheck()
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 98 Socket st = new Socket("localhost", sport); in test_createSocket() local 99 Socket s = sf.createSocket(st, "localhost", sport, false); in test_createSocket() 105 Socket st = new Socket("localhost", sport); in test_createSocket() local 106 Socket s = sf.createSocket(st, "localhost", sport, true); in test_createSocket() 108 assertTrue(st.isClosed()); in test_createSocket() 130 Socket st = new Socket("bla-bla", sport); in test_createSocket() local 131 Socket s = sf.createSocket(st, "bla-bla", sport, false); in test_createSocket()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | TestThread.java | 59 StackTraceElement[] st = e.getStackTrace(); in run() 60 for (int i = 0; i < st.length; i++) { in run() 61 errorSB.append(st[i].toString()); in run()
|
D | CipherThread.java | 92 StackTraceElement[] st = e.getStackTrace(); in run() 93 for (int i = 0; i < st.length; i++) { in run() 94 errorSB.append(st[i].toString()); in run()
|
/libcore/junit/src/test/java/junit/runner/ |
D | TestCaseClassLoader.java | 59 StringTokenizer st= new StringTokenizer(classPath, separator); in scanPath() local 60 while (st.hasMoreTokens()) { in scanPath() 61 fPathItems.addElement(st.nextToken()); in scanPath()
|
/libcore/luni/src/main/java/org/apache/xpath/ |
D | SourceTreeManager.java | 151 SourceTree st=(SourceTree)m_sourceTree.elementAt(i); in removeDocumentFromCache() local 152 if(st!=null && st.m_root==n) in removeDocumentFromCache()
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | DefaultHostnameVerifier.java | 263 StringTokenizer st = new StringTokenizer(subjectPrincipal, ","); in getCNs() local 264 while(st.hasMoreTokens()) { in getCNs() 265 String tok = st.nextToken(); in getCNs()
|
/libcore/luni/src/main/java/org/apache/xml/serializer/ |
D | Encodings.java | 365 StringTokenizer st = in loadEncodingInfo() local 368 st.hasMoreTokens(); in loadEncodingInfo() 371 mimeName = st.nextToken(); in loadEncodingInfo()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | LogManager.java | 452 StringTokenizer st = new StringTokenizer(configs, " "); 453 while (st.hasMoreTokens()) { 454 String configerName = st.nextToken();
|
/libcore/luni/src/main/java/javax/crypto/ |
D | Cipher.java | 326 StringTokenizer st; in checkTransformation() local 328 for (st = new StringTokenizer(transformation, "/"); st.hasMoreElements();) { in checkTransformation() 332 transf[i] = st.nextToken(); in checkTransformation()
|
/libcore/sqlite-jdbc/src/main/java/SQLite/ |
D | Shell.java | 299 StringTokenizer st = new StringTokenizer(line.toLowerCase()); in do_meta() local 300 int n = st.countTokens(); in do_meta() 304 String cmd = st.nextToken(); in do_meta() 307 while (st.hasMoreTokens()) { in do_meta() 308 args[i] = st.nextToken(); in do_meta()
|
/libcore/luni/src/main/java/java/net/ |
D | URLConnection.java | 285 final StringTokenizer st = new StringTokenizer(packageList, "|"); in getContentHandler() local 286 while (st.countTokens() > 0) { in getContentHandler() 288 Class<?> cl = Class.forName(st.nextToken() + "." in getContentHandler()
|