Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/native/
DLinuxNativeDispatcher.c158 FILE* fp = NULL; in Java_sun_nio_fs_LinuxNativeDispatcher_setmntent0() local
163 fp = setmntent(path, mode); in Java_sun_nio_fs_LinuxNativeDispatcher_setmntent0()
164 } while (fp == NULL && errno == EINTR); in Java_sun_nio_fs_LinuxNativeDispatcher_setmntent0()
165 if (fp == NULL) { in Java_sun_nio_fs_LinuxNativeDispatcher_setmntent0()
168 return ptr_to_jlong(fp); in Java_sun_nio_fs_LinuxNativeDispatcher_setmntent0()
179 FILE* fp = jlong_to_ptr(value); in Java_sun_nio_fs_LinuxNativeDispatcher_getmntent() local
187 m = getmntent_r(fp, &ent, (char*)&buf, buflen); in Java_sun_nio_fs_LinuxNativeDispatcher_getmntent()
229 FILE* fp = jlong_to_ptr(stream); in Java_sun_nio_fs_LinuxNativeDispatcher_endmntent() local
231 endmntent(fp); in Java_sun_nio_fs_LinuxNativeDispatcher_endmntent()
DUnixNativeDispatcher.c351 FILE* fp = NULL; in Java_sun_nio_fs_UnixNativeDispatcher_fopen0() local
356 fp = fopen(path, mode); in Java_sun_nio_fs_UnixNativeDispatcher_fopen0()
357 } while (fp == NULL && errno == EINTR); in Java_sun_nio_fs_UnixNativeDispatcher_fopen0()
359 if (fp == NULL) { in Java_sun_nio_fs_UnixNativeDispatcher_fopen0()
363 return ptr_to_jlong(fp); in Java_sun_nio_fs_UnixNativeDispatcher_fopen0()
369 FILE* fp = jlong_to_ptr(stream); in Java_sun_nio_fs_UnixNativeDispatcher_fclose() local
376 if (fclose(fp) == EOF && errno != EINTR) { in Java_sun_nio_fs_UnixNativeDispatcher_fclose()
Djvm.h1465 jint (JNICALL *vfprintf)(FILE *fp, const char *format, va_list args);
/libcore/luni/src/test/native/
Dlibcore_libcore_util_NativeAllocationRegistryTest.cpp50 FILE* fp = popen("uname -m", "re"); in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI() local
53 char* str = fgets(buf, sizeof(buf), fp); in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI()
54 pclose(fp); in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileSystem.java81 long fp = setmntent(Util.toBytes(fstab), Util.toBytes("r")); in getMountEntries() local
85 int res = getmntent(fp, entry); in getMountEntries()
91 endmntent(fp); in getMountEntries()
DLinuxNativeDispatcher.java57 static native int getmntent(long fp, UnixMountEntry entry) in getmntent() argument
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java191 FieldPosition fp = new FieldPosition(field); in assertFieldPosition() local
193 df.format(num, stringBuffer, fp); in assertFieldPosition()
195 assertEquals(expectedBeginIndex, fp.getBeginIndex()); in assertFieldPosition()
196 assertEquals(expectedEndIndex, fp.getEndIndex()); in assertFieldPosition()
201 FieldPosition fp = new FieldPosition(field); in assertFieldPosition() local
203 df.format(num, stringBuffer, fp); in assertFieldPosition()
205 assertEquals(expectedBeginIndex, fp.getBeginIndex()); in assertFieldPosition()
206 assertEquals(expectedEndIndex, fp.getEndIndex()); in assertFieldPosition()
211 FieldPosition fp = new FieldPosition(field); in assertFieldPosition() local
213 df.format(num, stringBuffer, fp); in assertFieldPosition()
[all …]
DOldDateFormatTest.java115 FieldPosition fp = new FieldPosition(DateFormat.YEAR_FIELD); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() local
116 StringBuffer sb = format.format(current, toAppend, fp); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
120 assertTrue("Incorrect beginIndex of filed position", fp in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
123 fp.getEndIndex() == sb.lastIndexOf("/") + 3); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java1243 … FieldPosition fp, List<AttributedCharacterIterator> characterIterators) { in subformat() argument
1333 if (i == 0 && fp != null && Field.ARGUMENT.equals( in subformat()
1334 fp.getFieldAttribute())) { in subformat()
1335 fp.setBeginIndex(last); in subformat()
1336 fp.setEndIndex(result.length()); in subformat()
DDecimalFormat.java519 private static FieldPosition getIcuFieldPosition(FieldPosition fp) { in getIcuFieldPosition() argument
520 Format.Field fieldAttribute = fp.getFieldAttribute(); in getIcuFieldPosition()
521 if (fieldAttribute == null) return fp; in getIcuFieldPosition()
551 icuFieldPosition.setBeginIndex(fp.getBeginIndex()); in getIcuFieldPosition()
552 icuFieldPosition.setEndIndex(fp.getEndIndex()); in getIcuFieldPosition()
/libcore/ojluni/src/main/java/java/net/
DURLClassLoader.java708 final Permission fp = p; in getPermissions() local
711 sm.checkPermission(fp); in getPermissions()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java3520 String fp = System.getProperty in makeCommonPool() local
3526 if (fp != null) in makeCommonPool()
3528 getSystemClassLoader().loadClass(fp).newInstance()); in makeCommonPool()
/libcore/luni/src/test/resources/
Dmath_tests.csv116 tan,0x1.044979d134ed9p-4,0x1.03fp-4
117 tan,-0x1.044979d134ed9p-4,-0x1.03fp-4
896 tan,0x1.f09b63aa81fc4p-5,0x1.fp-5
897 tan,-0x1.f09b63aa81fc4p-5,-0x1.fp-5
1647 log,-0x1.0415d89e74444p-5,0x1.fp-1
2741 sin,0x1.efb26ef930c4dp-5,0x1.fp-5
2742 sin,-0x1.efb26ef930c4dp-5,-0x1.fp-5
4141 cos,0x1.ff0fd2c96adfcp-1,0x1.fp-5
4142 cos,0x1.ff0fd2c96adfcp-1,-0x1.fp-5