Searched refs:fm (Results 1 - 25 of 256) sorted by relevance

1234567891011

/openjdk7/jdk/test/java/awt/font/StyledMetrics/
H A DBoldSpace.java50 FontMetrics fm = g.getFontMetrics();
51 System.out.println("Bold: " + fm.charWidth('\u200b'));
52 int cwid = fm.charWidth('\u200b');
59 fm = g.getFontMetrics();
60 System.out.println("Bold + LCD: "+fm.charWidth('\u200b'));
61 cwid = fm.charWidth('\u200b');
71 fm = g.getFontMetrics();
72 System.out.println("Bold FM OFF + AA: " + fm.charWidth('\u200b'));
73 cwid = fm.charWidth('\u200b');
82 fm
[all...]
/openjdk7/langtools/test/tools/javac/api/
H A DT6400205.java36 JavaFileManager fm =
39 fm.getClassLoader(null);
44 ClassLoader cl = fm.getClassLoader(locationFor("bogus"));
H A DT6400207.java37 static void testList(JavaFileManager fm, argument
46 fm.list(location, packageName, kinds, false);
64 JavaFileManager fm =
77 testList(fm, null, null, null);
78 testList(fm, bogusLocation, packageName, kinds);
79 testList(fm, knownLocation, packageName, kinds);
80 testList(fm, null, packageName, kinds);
81 testList(fm, knownLocation, null, kinds);
82 testList(fm, knownLocation, packageName, null);
83 testList(fm, bogusLocatio
[all...]
H A DT6397104.java43 void test(StandardJavaFileManager fm, argument
52 : fm.getJavaFileObjectsFromFiles(Arrays.asList(siblingFile)).iterator().next();
54 fm.getFileForOutput(location, "java.lang", relName, sibling);
68 StandardJavaFileManager fm;
71 fm = tool.getStandardFileManager(null, null, null);
72 fm.setLocation(location, Arrays.asList(new File(".")));
73 test(fm, location, siblingFile, relName, expectedPath);
76 fm = tool.getStandardFileManager(null, null, null);
77 test(fm, CLASS_OUTPUT, siblingFile, relName, expectedPath);
H A DSibling.java42 StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null);
44 fm.getJavaFileObjectsFromFiles(Arrays.asList(new File("Test.java")))
46 JavaFileObject classFile = fm.getJavaFileForOutput(CLASS_OUTPUT,
H A DT6258271.java46 StandardJavaFileManager fm = javac.getStandardFileManager(dl, null, null);
48 fm.getJavaFileObjectsFromStrings(Arrays.asList("nofile.java"));
49 javac.getTask(null, fm, dl, null, null, files).call();
H A DT6265137.java48 StandardJavaFileManager fm = javac.getStandardFileManager(dl, null, null);
51 fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(srcdir, "T6265137a.java")));
52 javac.getTask(null, fm, dl, Arrays.asList("-target","1.5"), null, files).call();
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipFileAttributes.java141 Formatter fm = new Formatter(sb);
143 fm.format(" creationTime : %tc%n", creationTime().toMillis());
145 fm.format(" creationTime : null%n");
148 fm.format(" lastAccessTime : %tc%n", lastAccessTime().toMillis());
150 fm.format(" lastAccessTime : null%n");
151 fm.format(" lastModifiedTime: %tc%n", lastModifiedTime().toMillis());
152 fm.format(" isRegularFile : %b%n", isRegularFile());
153 fm.format(" isDirectory : %b%n", isDirectory());
154 fm.format(" isSymbolicLink : %b%n", isSymbolicLink());
155 fm
[all...]
/openjdk7/langtools/test/tools/javac/api/6437999/
H A DT6437999.java52 StandardJavaFileManager fm;
56 fm = getFileManager(tool, dl, Charset.forName("ASCII"));
57 fm.handleOption("-source", sourceLevel.iterator());
58 files = fm.getJavaFileObjects(new File(test_src, "Utf8.java"));
59 tool.getTask(null, fm, null, null, null, files).call();
64 fm = getFileManager(tool, dl, Charset.forName("UTF-8"));
65 fm.handleOption("-source", sourceLevel.iterator());
66 files = fm.getJavaFileObjects(new File(test_src, "Utf8.java"));
67 task = tool.getTask(null, fm, null, null, null, files);
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXLabelPeer.java70 FontMetrics fm = getFontMetrics();
73 w = fm.stringWidth(label);
79 fm.getAscent() + fm.getMaxDescent() + TEXT_YPAD);
96 FontMetrics fm = g.getFontMetrics();
100 cachedFontMetrics = fm;
105 cachedFontMetrics = fm;
111 textY = (height + fm.getMaxAscent() - fm.getMaxDescent()) / 2;
114 textX = width - (fm
[all...]
/openjdk7/langtools/test/tools/javac/api/6420409/
H A DT6420409.java49 final StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null);
50 fm.setLocation(SOURCE_PATH, Arrays.asList(test_classes)); // switcheroo !!!
51 fm.setLocation(CLASS_PATH, Arrays.asList(test_src));
52 fm.setLocation(CLASS_OUTPUT, Arrays.asList(test_classes));
54 fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(test_src, "T6420409.java")));
56 fm,
61 test(fm.getLocation(CLASS_PATH), test_src, CLASS_PATH);
62 test(fm.getLocation(SOURCE_PATH), test_classes, SOURCE_PATH);
63 test(fm.getLocation(CLASS_OUTPUT), test_classes, CLASS_OUTPUT);
/openjdk7/langtools/test/tools/javac/
H A DT6900149.java40 StandardJavaFileManager fm =
44 CompilationTask task = compiler.getTask(null, fm, diag,
45 null, null, fm.getJavaFileObjects(files));
H A DT6265400.java47 StandardJavaFileManager fm = javac.getStandardFileManager(dl, null, null);
49 fm.getJavaFileObjectsFromStrings(Arrays.asList("badfile.java"));
50 javac.getTask(null, fm, dl, null, null, files).call();
H A DT6625520.java46 StandardJavaFileManager fm = new JavacFileManager(c, false, null);
47 fm.setLocation(StandardLocation.CLASS_PATH,
49 FileObject fo = fm.getFileForInput(StandardLocation.CLASS_PATH,
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWFontMetrics.java193 FontMetrics fm = (FontMetrics)table.get(font);
194 if (fm == null) {
195 table.put(font, fm = new WFontMetrics(font));
197 return fm;
H A DWTextFieldPeer.java39 FontMetrics fm = getFontMetrics(((TextField)target).getFont());
40 return new Dimension(fm.stringWidth(getText()) + 24,
41 fm.getHeight() + 8);
70 FontMetrics fm = getFontMetrics(((TextField)target).getFont());
71 return new Dimension(fm.charWidth('0') * cols + 24, fm.getHeight() + 8);
/openjdk7/langtools/test/tools/javac/6508981/
H A DTestInferBinaryName.java73 JavaFileManager fm =
76 fm, testClassName, "com.sun.tools.javac.file.RegularFileObject");
81 JavaFileManager fm =
84 fm, testClassName, "com.sun.tools.javac.file.SymbolArchive$SymbolFileObject");
89 JavaFileManager fm =
92 fm, testClassName, "com.sun.tools.javac.file.ZipArchive$ZipFileObject");
97 JavaFileManager fm =
100 fm, testClassName, "com.sun.tools.javac.file.ZipFileIndexArchive$ZipFileIndexFileObject");
105 JavaFileManager fm =
108 fm, testClassNam
119 test(String testName, JavaFileManager fm, String testClassName, String implClassName) argument
[all...]
/openjdk7/jdk/test/java/awt/FontClass/
H A DBigMetrics.java41 FontMetrics fm = tk.getFontMetrics(f);
42 int sw = fm.stringWidth("{}[]Hello world!");
/openjdk7/langtools/test/tools/javac/api/6418694/
H A DT6418694.java45 if (!fm.hasLocation(loc))
49 if (fm.hasLocation(loc))
/openjdk7/langtools/test/tools/javac/api/6422327/
H A DT6422327.java40 task = tool.getTask(null, fm, null, null, null, fm.getJavaFileObjects(file));
/openjdk7/langtools/test/tools/javac/6589361/
H A DT6589361.java19 JavacFileManager fm = null;
21 fm = new JavacFileManager(new Context(), false, null);
24 Iterable<JavaFileObject> files = fm.list(StandardLocation.PLATFORM_CLASS_PATH, "java.lang", set, false);
29 String str = fm.inferBinaryName(StandardLocation.CLASS_PATH, file);
40 if (fm != null) {
41 fm.close();
/openjdk7/langtools/test/tools/javac/api/6431257/
H A DT6431257.java50 = fm.getJavaFileForInput(PLATFORM_CLASS_PATH, "java.lang.Object", CLASS);
52 = fm.list(CLASS_OUTPUT, packageName, EnumSet.of(CLASS), false);
57 String name = fm.inferBinaryName(CLASS_OUTPUT, file);
59 JavaFileObject other = fm.getJavaFileForInput(CLASS_OUTPUT, name, CLASS);
60 if (!fm.isSameFile(file, other))
62 if (fm.isSameFile(file, object))
/openjdk7/langtools/test/tools/javac/api/6431435/
H A DT6431435.java42 StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null);
43 fm.setLocation(StandardLocation.CLASS_OUTPUT, Arrays.asList(new File(".")));
44 fm.setLocation(StandardLocation.SOURCE_PATH, Arrays.asList(new File(testSrc)));
45 Iterable<? extends JavaFileObject> files = fm.getJavaFileObjectsFromFiles(Arrays.asList(
47 JavacTask task = tool.getTask(null, fm, null, null, null, files);
/openjdk7/langtools/test/tools/javac/api/6411333/
H A DT6411333.java47 JavaFileObject file = fm.getJavaFileForInput(PLATFORM_CLASS_PATH,
50 String inferred = fm.inferBinaryName(fail ? CLASS_PATH : PLATFORM_CLASS_PATH,
66 fm.getFileForInput(SOURCE_OUTPUT, "java.lang", name);
/openjdk7/langtools/test/tools/javac/api/6437349/
H A DT6437349.java41 task = tool.getTask(null, fm, null, null, null, null);
42 JavaFileObject fo = fm.getJavaFileForInput(SOURCE_PATH, "T6437349", SOURCE);
47 fo = fm.getJavaFileForInput(PLATFORM_CLASS_PATH, "java.lang.Object", CLASS);

Completed in 673 milliseconds

1234567891011