Searched defs:ck (Results 1 - 25 of 26) sorted by relevance

12

/openjdk7/jdk/test/java/io/File/
H A DSetLastModified.java36 private static void ck(File f, long nt, long rt) throws Exception { method in class:SetLastModified
85 ck(d2, nt, d2.lastModified());
115 ck(f, nt, f.lastModified());
H A DFileMethods.java34 private static void ck(String op, File got, File ans) throws Exception { method in class:FileMethods
39 private static void ck(String op, File f, String[] ls, File[] lf) method in class:FileMethods
60 ck("getParentFile", f.getParentFile(), new File(f.getParent()));
63 ck("getAbsoluteFile",
66 ck("getCanonicalFile",
70 ck("listFiles", f, f.list(), f.listFiles());
76 ck("listFiles/filtered", f, f.list(ff), f.listFiles(ff));
82 ck("listFiles/filtered2", f, f.list(ff), f.listFiles(ff2));
H A DGetAbsolutePath.java36 private static void ck(String path, String ans) throws Exception { method in class:GetAbsolutePath
53 ck("/foo/bar", d + ":\\foo\\bar");
54 ck("\\foo\\bar", d + ":\\foo\\bar");
55 ck("c:\\foo\\bar", "c:\\foo\\bar");
56 ck("c:/foo/bar", "c:\\foo\\bar");
57 ck("\\\\foo\\bar", "\\\\foo\\bar");
68 ck(z + ":foo", zwd + "\\foo");
73 ck("", wd);
78 ck("foo", wd + "/foo");
79 ck("fo
[all...]
H A DIsAbsolute.java34 private static void ck(String path, boolean ans) throws Exception { method in class:IsAbsolute
43 ck("/foo/bar", false);
44 ck("\\foo\\bar", false);
45 ck("c:\\foo\\bar", true);
46 ck("c:/foo/bar", true);
47 ck("c:foo\\bar", false);
48 ck("\\\\foo\\bar", true);
52 ck("foo", false);
53 ck("foo/bar", false);
54 ck("/fo
[all...]
H A DIsHidden.java37 private static void ck(String path, boolean ans) throws Exception { method in class:IsHidden
60 ck(f.getPath(), true);
64 ck(".foo", false);
65 ck("foo", false);
74 ck(dir + "/IsHidden.java", false);
75 ck(dir + "/.", true);
76 ck(".", true);
77 ck("..", true);
78 ck(".foo", true);
79 ck("fo
[all...]
H A DCons.java102 private static void ck(String ans, String exp, String got) method in class:Cons
129 ck(cvt(path), op(f.exp, "getPath"), f.getPath());
130 ck(cvt(parent), op(f.exp, "getParent"), f.getParent());
131 ck(cvt(name), op(f.exp, "getName"), f.getName());
/openjdk7/jdk/test/java/lang/String/
H A DRegex.java32 static void ck(boolean x, boolean ans) throws Exception { method in class:Regex
37 static void ck(String x, String ans) throws Exception { method in class:Regex
42 static void ck(String[] x, String[] ans) throws Exception { method in class:Regex
78 ck(foo.matches("b+"), false);
79 ck(foo.matches("o+"), false);
80 ck(foo.matches("b..:and:f.*"), true);
82 ck(foo.replaceAll("oo", "uu"), "buu:and:fuu");
83 ck(foo.replaceAll("o+", "<$0>"), "b<oo>:and:f<oo>");
85 ck(foo.replaceFirst("oo", "uu"), "buu:and:foo");
86 ck(fo
[all...]
/openjdk7/jdk/test/java/nio/charset/Charset/
H A DContains.java34 static void ck(Charset cs1, Charset cs2, boolean cont) throws Exception { method in class:Contains
52 ck(us_ascii, us_ascii, true);
53 ck(us_ascii, iso_8859_1, false);
54 ck(us_ascii, iso_8859_15, false);
55 ck(us_ascii, utf_8, false);
56 ck(us_ascii, utf_16be, false);
57 ck(us_ascii, cp1252, false);
59 ck(iso_8859_1, us_ascii, true);
60 ck(iso_8859_1, iso_8859_1, true);
61 ck(iso_8859_
[all...]
/openjdk7/jdk/test/java/nio/Buffer/
H A DOrder.java38 static void ck(ByteOrder ord, ByteOrder expected) { method in class:Order
45 ck(bb.asCharBuffer().order(), bb.order());
46 ck(bb.asIntBuffer().order(), bb.order());
47 ck(bb.asLongBuffer().order(), bb.order());
48 ck(bb.asFloatBuffer().order(), bb.order());
49 ck(bb.asDoubleBuffer().order(), bb.order());
62 ck(ByteBuffer.allocate(10).order(), be);
63 ck(ByteBuffer.allocateDirect(10).order(), be);
64 ck(ByteBuffer.allocate(10).order(be).order(), be);
65 ck(ByteBuffe
[all...]
H A DBasic.java107 static void ck(Buffer b, boolean cond) { method in class:Basic
112 static void ck(Buffer b, long got, long expected) { method in class:Basic
117 static void ck(Buffer b, float got, float expected) { method in class:Basic
124 static void ck(Buffer b, double got, double expected) { method in class:Basic
/openjdk7/jdk/test/java/nio/charset/CharsetEncoder/
H A DCanEncode.java46 private static void ck(CharsetEncoder ce, char c, boolean can) method in class:CanEncode
55 private static void ck(CharsetEncoder ce, String s, boolean can) method in class:CanEncode
70 ck(ce, 'x', true);
71 ck(ce, '\u00B6', false);
72 ck(ce, "x", true);
73 ck(ce, "\u00B6", false);
74 ck(ce, "xyzzy", true);
75 ck(ce, "xy\u00B6", false);
79 ck(ce, '\ud800', false);
80 ck(c
[all...]
/openjdk7/jdk/test/java/util/Formatter/
H A DBasic.java70 static void ck(String fs, String exp, String got) { method in class:Basic
/openjdk7/langtools/test/tools/javac/generics/diamond/6996914/
H A DT6996914a.java79 public FooClass(PackageKind pk, ConstructorKind ck) { argument
82 source = sourceStub.replace("#P", pk.pkgDecl).replace("#M", ck.mod);
114 for (ConstructorKind ck : ConstructorKind.values()) {
115 compileAndCheck(pk, ck);
120 static void compileAndCheck(PackageKind pk, ConstructorKind ck) throws Exception { argument
121 FooClass foo = new FooClass(pk, ck);
128 if (el.errors > 0 == check(pk, ck)) {
136 static boolean check(PackageKind pk, ConstructorKind ck) { argument
138 case A: return ck == ConstructorKind.PUBLIC;
139 case DEFAULT: return ck !
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DInMemoryCookieStore.java186 public boolean remove(URI uri, HttpCookie ck) { argument
188 if (ck == null) {
195 modified = cookieJar.remove(ck);
332 HttpCookie ck = it.next();
333 if (cookieJar.indexOf(ck) != -1) {
335 if (!ck.hasExpired()) {
337 if ((secureLink || !ck.getSecure()) &&
338 !cookies.contains(ck))
339 cookies.add(ck);
342 cookieJar.remove(ck);
[all...]
/openjdk7/hotspot/src/share/vm/oops/
H A DmethodKlass.cpp344 constMethodKlass* ck = constMethodKlass::cast(xconst->klass()); local
345 return ck->oop_partially_loaded(xconst);
354 constMethodKlass* ck = constMethodKlass::cast(xconst->klass()); local
355 ck->oop_set_partially_loaded(xconst);
/openjdk7/jdk/src/windows/native/sun/nio/ch/
H A DIocp.c75 ULONG_PTR ck = completionKey; local
78 ck,
/openjdk7/jdk/test/java/lang/Appendable/
H A DBasic.java100 static void ck(String s, String exp, String got) { method in class:Basic
120 ck("BufferedWriter.append(" + csn + ")", exp, gw.toString());
137 ck("CharArrayWriter.append(" + csn + ")", exp, cw.toString());
169 ck("FileWriter.append(" + csn + ")", exp, sb.toString());
193 ck("OutputStreamWriter.append(" + csn + ")", exp, gos.toString());
209 ck("PrintWriter.append(" + csn + ")", exp, gw.toString());
226 ck("StringWriter.append(" + csn + ")", exp, sw.toString());
241 ck("PrintStream.append(" + csn + ")", exp, gos.toString());
259 ck("CharBuffer.append(" + csn + ")", exp, cb.toString());
276 ck("StringBuffe
[all...]
/openjdk7/langtools/test/tools/javac/api/
H A DT6838467.java94 for (CompareKind ck: CompareKind.values()) {
95 test(fk, ck);
113 void test(FileKind fk, CompareKind ck) throws IOException { argument
117 File f2 = ck.other(fk.file);
128 System.err.println("test " + (++count) + " " + fk + " " + ck + " " + f1 + " " + f2);
/openjdk7/langtools/test/tools/javac/varargs/7043922/
H A DT7043922.java131 boolean isConstructorOk(ConstructorKind ck) { argument
133 ck == ConstructorKind.DEFAULT;
136 String getConstructor(String className, ConstructorKind ck) { argument
139 (className + "(" + ck.constrParam + ") {}");
/openjdk7/langtools/test/tools/javap/
H A DTestSuperclass.java72 String decl(ClassKind ck) { argument
73 return (name == null) ? "" : ck.keyword + " " + name + " { }";
83 for (ClassKind ck: ClassKind.values()) {
86 errors += new TestSuperclass(ck, gk, sk).run(comp, fm);
95 final ClassKind ck; field in class:TestSuperclass
99 TestSuperclass(ClassKind ck, GenericKind gk, SuperKind sk) { argument
100 this.ck = ck;
106 System.err.println("test: ck:" + ck
[all...]
/openjdk7/hotspot/src/share/vm/memory/
H A DoopFactory.cpp115 constantPoolKlass* ck = constantPoolKlass::cast(Universe::constantPoolKlassObj()); local
116 return ck->allocate(length, is_conc_safe, CHECK_NULL);
122 constantPoolCacheKlass* ck = constantPoolCacheKlass::cast(Universe::constantPoolCacheKlassObj()); local
123 return ck->allocate(length, CHECK_NULL);
184 compiledICHolderKlass* ck = (compiledICHolderKlass*) Universe::compiledICHolderKlassObj()->klass_part(); local
185 compiledICHolderOop c = ck->allocate(CHECK_NULL);
/openjdk7/langtools/test/tools/javac/TryWithResources/
H A DInterruptedExceptionTest.java125 for (ClassKind ck : ClassKind.values()) {
129 suppress_use, ck, ek_decl, ek_use).run(comp, fm);
141 ClassKind ck; field in class:InterruptedExceptionTest
148 ClassKind ck, ExceptionKind ek_decl, ExceptionKind ek_use) {
152 this.ck = ck;
176 .replace("#CK", ck.kindName)
177 .replace("#EC", ck.extendsClause)
180 .replace("#BK", ck.getBody())
147 InterruptedExceptionTest(XlintOption xlint, SuppressLevel suppress_decl, SuppressLevel suppress_use, ClassKind ck, ExceptionKind ek_decl, ExceptionKind ek_use) argument
/openjdk7/langtools/test/tools/javac/processing/model/util/elements/doccomments/
H A DTestDocComments.java60 for (CompileKind ck: CompileKind.values()) {
63 test(ck, sk);
74 static void test(CompileKind ck, ScanKind sk) throws IOException { argument
77 File testDir = new File("test." + ck + "." + sk);
91 if (ck == CompileKind.API)
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/comp/
H A DInfer.java476 List<Type> getConstraints(TypeVar tv, ConstraintKind ck) {
480 switch (ck) {
548 abstract List<Type> getConstraints(TypeVar tv, ConstraintKind ck); argument
561 public List<Type> getConstraints(TypeVar tv, ConstraintKind ck) { argument
562 return UninferredMethodType.this.getConstraints(tv, ck);
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/code/
H A DType.java1178 * @param ck the constraint kind to be retrieved
1181 public List<Type> getConstraints(TypeVar tv, ConstraintKind ck) { argument

Completed in 55 milliseconds

12