Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 14 of 14) 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.h1468 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/ojluni/src/main/java/sun/security/util/
DAnchorCertificates.java73 String fp =
77 if (fp != null) {
78 certs.add(fp);
/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.java120 FieldPosition fp = new FieldPosition(DateFormat.YEAR_FIELD); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() local
121 StringBuffer sb = format.format(current, toAppend, fp); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
125 assertEquals("Incorrect beginIndex of filed position", fp.getBeginIndex(), in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
127 assertEquals("Incorrect endIndex of filed position", fp.getEndIndex(), in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java1261 … FieldPosition fp, List<AttributedCharacterIterator> characterIterators) { in subformat() argument
1351 if (i == 0 && fp != null && Field.ARGUMENT.equals( in subformat()
1352 fp.getFieldAttribute())) { in subformat()
1353 fp.setBeginIndex(last); in subformat()
1354 fp.setEndIndex(result.length()); in subformat()
DDecimalFormat.java525 private static FieldPosition getIcuFieldPosition(FieldPosition fp) { in getIcuFieldPosition() argument
526 Format.Field fieldAttribute = fp.getFieldAttribute(); in getIcuFieldPosition()
527 if (fieldAttribute == null) return fp; in getIcuFieldPosition()
557 icuFieldPosition.setBeginIndex(fp.getBeginIndex()); in getIcuFieldPosition()
558 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/test/java/lang/Math/
DSinCosCornerCasesTests.java1087 {0x1.fp-5, 0x1.efb26ef930c4dp-5, 0x1.efb26ef930c4ep-5}, in testCornerCasesSin()
1088 {-0x1.fp-5, -0x1.efb26ef930c4dp-5, -0x1.efb26ef930c4ep-5}, in testCornerCasesSin()
2503 {0x1.fp-5, 0x1.ff0fd2c96adfcp-1, 0x1.ff0fd2c96adfbp-1}, in testCornerCasesCos()
2504 {-0x1.fp-5, 0x1.ff0fd2c96adfcp-1, 0x1.ff0fd2c96adfbp-1}, in testCornerCasesCos()
/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