Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 26) sorted by relevance

12

/libcore/luni/src/test/native/
Dlibcore_java_io_FileTest.cpp32 struct stat sb; in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
33 int ret = stat(subDir.c_str(), &sb); in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
41 ret = stat(subFile.c_str(), &sb); in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
/libcore/luni/src/test/java/tests/java/sql/
DInsertFunctionalityTest.java208 PreparedStatement stat = conn.prepareStatement("INSERT INTO " in testInsertPrepared() local
210 stat.setInt(1, 1); in testInsertPrepared()
211 stat.setString(2, "1"); in testInsertPrepared()
212 stat.execute(); in testInsertPrepared()
213 stat.setInt(1, 2); in testInsertPrepared()
214 stat.setString(2, "3"); in testInsertPrepared()
215 stat.execute(); in testInsertPrepared()
223 stat.close(); in testInsertPrepared()
DUpdateFunctionalityTest2.java266 PreparedStatement stat = conn.prepareStatement("UPDATE " in testUpdate9() local
269 stat.setString(1, "1"); in testUpdate9()
270 stat.setInt(2, 1); in testUpdate9()
271 stat.execute(); in testUpdate9()
272 stat.setString(1, "2"); in testUpdate9()
273 stat.setInt(2, 2); in testUpdate9()
274 stat.execute(); in testUpdate9()
283 stat.close(); in testUpdate9()
DDeleteFunctionalityTest.java188 PreparedStatement stat = conn.prepareStatement("DELETE FROM " in testDelete7() local
190 stat.setInt(1, 1); in testDelete7()
191 stat.execute(); in testDelete7()
192 stat.setInt(1, 2); in testDelete7()
193 stat.execute(); in testDelete7()
199 stat.close(); in testDelete7()
/libcore/ojluni/src/main/native/
Dio_util_md.c82 struct stat stat; in fileOpen() local
83 fstat(fd, &stat); in fileOpen()
85 if (S_ISDIR(stat.st_mode)) { in fileOpen()
DFileKey.c37 #define stat64 stat
Djava_props_md.c339 struct stat statbuf; in getEmbeddedToolkit()
349 if (stat(buf, &statbuf) == -1 && errno == ENOENT) { in getEmbeddedToolkit()
DFileDispatcherImpl.c45 #define stat64 stat
DUnixFileSystem_md.c50 #define stat64 stat
/libcore/luni/src/test/java/libcore/dalvik/system/
DSocketTaggingTest.java38 final StructStat stat; field in SocketTaggingTest.StatAndDescriptor
42 this.stat = fstat(fd); in StatAndDescriptor()
47 return "[fd=" + fd + ", stat=" + stat + "]"; in toString()
68 assertEquals(existing.stat.st_dev, current.st_dev); in untag()
69 assertEquals(existing.stat.st_ino, current.st_ino); in untag()
/libcore/luni/src/test/java/libcore/java/sql/
DOldStatementTest.java805 Statement stat = conn.createStatement(); in testExecuteUpdate_String() local
808 assertEquals(0 ,stat.executeUpdate("create table s1 (c1);")); in testExecuteUpdate_String()
810 assertEquals(1, stat.executeUpdate("insert into s1 values (0);")); in testExecuteUpdate_String()
811 assertEquals(1, stat.executeUpdate("insert into s1 values (1);")); in testExecuteUpdate_String()
812 assertEquals(1, stat.executeUpdate("insert into s1 values (2);")); in testExecuteUpdate_String()
813 assertEquals(1,stat.executeUpdate("delete from s1 where c1 = 1;")); in testExecuteUpdate_String()
814 assertEquals(2, stat.executeUpdate("update s1 set c1 = 5;")); in testExecuteUpdate_String()
817 assertEquals(2,stat.executeUpdate("delete from s1;")); in testExecuteUpdate_String()
820 assertEquals(0, stat.executeUpdate("drop table s1;")); in testExecuteUpdate_String()
822 stat.executeUpdate("create table s1 (c1);"); in testExecuteUpdate_String()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinPool.java991 int stat; in sharedPush() local
999 stat = (d < 0 && b == base) ? d : 0; in sharedPush()
1003 stat = 0; in sharedPush()
1007 stat = 1; in sharedPush()
1008 return stat; in sharedPush()
1769 int stat = 0; in awaitWork() local
1773 stat = timedAwaitWork(w, c); // possibly quiescent in awaitWork()
1775 stat = w.qlock = -1; // pool terminating in awaitWork()
1782 stat = w.qlock = -1; // recheck in awaitWork()
1787 return stat; in awaitWork()
[all …]
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java214 final StructStat stat = Libcore.os.fstat(fd); in FileReader() local
217 capacity = (int) stat.st_size; in FileReader()
DBlockGuardOs.java297 @Override public StructStat stat(String path) throws ErrnoException { in stat() method in BlockGuardOs
299 return os.stat(path); in stat()
DForwardingOs.java163 public StructStat stat(String path) throws ErrnoException { return os.stat(path); } in stat() method in ForwardingOs
DOs.java156 public StructStat stat(String path) throws ErrnoException; in stat() method
/libcore/luni/src/main/native/
Dcanonicalize_path.cpp91 struct stat sb; in canonicalize_path()
Dlibcore_icu_ICU.cpp840 struct stat sb; in mapIcuData()
887 struct stat sb; in register_libcore_icu_ICU()
888 if (stat(dataPath.c_str(), &sb) == 0) { in register_libcore_icu_ICU()
Dlibcore_io_Posix.cpp421 static jobject makeStructStat(JNIEnv* env, const struct stat& sb) { in makeStructStat()
670 struct stat sb; in doStat()
672 : TEMP_FAILURE_RETRY(stat(path.c_str(), &sb)); in doStat()
915 struct stat sb; in Posix_fstat()
2069 NATIVE_METHOD(Posix, stat, "(Ljava/lang/String;)Landroid/system/StructStat;"),
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
DHttpURLConnection.java785 int stat = http.getResponseCode();
786 if (stat >= 300 && stat <= 307 && stat != 306 &&
787 stat != HttpURLConnection.HTTP_NOT_MODIFIED) {
2314 int stat = getResponseCode();
2315 if (stat < 300 || stat > 307 || stat == 306
2316 || stat == HTTP_NOT_MODIFIED) {
2339 throw new HttpRetryException (RETRY_MSG3, stat, loc);
2347 if (stat == HTTP_USE_PROXY) {
2373 … if (method.equals("POST") && !Boolean.getBoolean("http.strictPostRedirect") && (stat!=307)) {
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java140 if (Libcore.os.getuid() != Libcore.os.stat(parent).st_uid) { in DexFile()
DDexPathList.java241 StructStat sb = Libcore.os.stat(path); in splitPaths()
/libcore/luni/src/main/java/android/system/
DOs.java501 public static StructStat stat(String path) throws ErrnoException { return Libcore.os.stat(path); } in stat() method in Os
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java319 android.system.Os.stat(sh.getAbsolutePath()); in testExistsOnSystem()
/libcore/tzdata/update/src/test/libcore/tzdata/update/
DFileUtilsTest.java297 StructStat sb = Libcore.os.stat(path); in assertDirExistsAndIsAccessible()

12