Searched refs:ck (Results 1 - 25 of 65) sorted by relevance

123

/openjdk7/jdk/test/java/io/File/
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 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 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 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 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());
/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/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/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/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 DBasicChar.java65 ck(b, (long)b.get(), (long)((char)ic(i)));
73 ck(b, (long)b.get(), (long)((char)ic(i)));
81 ck(b, (long)b.get(), (long)((char)ic(i)));
90 ck(b, (long)a[i + 7], (long)((char)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
388 ck(b, b.toString().equals("bcdefg"));
393 ck(b, b.charAt(1), 'd');
395 ck(
[all...]
H A DBasic-X.java.template65 ck(b, (long)b.get(), (long)(($type$)ic(i)));
73 ck(b, (long)b.get(), (long)(($type$)ic(i)));
81 ck(b, (long)b.get(), (long)(($type$)ic(i)));
90 ck(b, (long)a[i + 7], (long)(($type$)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
200 ck(b, b.get(), bs[i]);
203 ck(b, b.get(), bs[i]);
300 ck(
[all...]
H A DBasicByte.java65 ck(b, (long)b.get(), (long)((byte)ic(i)));
73 ck(b, (long)b.get(), (long)((byte)ic(i)));
81 ck(b, (long)b.get(), (long)((byte)ic(i)));
90 ck(b, (long)a[i + 7], (long)((byte)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
200 ck(b, b.get(), bs[i]);
203 ck(b, b.get(), bs[i]);
300 ck(
[all...]
H A DBasicDouble.java65 ck(b, (long)b.get(), (long)((double)ic(i)));
73 ck(b, (long)b.get(), (long)((double)ic(i)));
81 ck(b, (long)b.get(), (long)((double)ic(i)));
90 ck(b, (long)a[i + 7], (long)((double)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
481 ck(b, b.get(), 0);
482 ck(b, b.get(), (double)-1);
483 ck(
[all...]
H A DBasicFloat.java65 ck(b, (long)b.get(), (long)((float)ic(i)));
73 ck(b, (long)b.get(), (long)((float)ic(i)));
81 ck(b, (long)b.get(), (long)((float)ic(i)));
90 ck(b, (long)a[i + 7], (long)((float)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
481 ck(b, b.get(), 0);
482 ck(b, b.get(), (float)-1);
483 ck(
[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
H A DBasicInt.java65 ck(b, (long)b.get(), (long)((int)ic(i)));
73 ck(b, (long)b.get(), (long)((int)ic(i)));
81 ck(b, (long)b.get(), (long)((int)ic(i)));
90 ck(b, (long)a[i + 7], (long)((int)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
481 ck(b, b.get(), 0);
482 ck(b, b.get(), (int)-1);
483 ck(
[all...]
H A DBasicLong.java65 ck(b, (long)b.get(), (long)((long)ic(i)));
73 ck(b, (long)b.get(), (long)((long)ic(i)));
81 ck(b, (long)b.get(), (long)((long)ic(i)));
90 ck(b, (long)a[i + 7], (long)((long)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
481 ck(b, b.get(), 0);
482 ck(b, b.get(), (long)-1);
483 ck(
[all...]
H A DBasicShort.java65 ck(b, (long)b.get(), (long)((short)ic(i)));
73 ck(b, (long)b.get(), (long)((short)ic(i)));
81 ck(b, (long)b.get(), (long)((short)ic(i)));
90 ck(b, (long)a[i + 7], (long)((short)ic(i)));
183 ck(slice, 0, slice.position());
184 ck(slice, b.remaining(), slice.limit());
185 ck(slice, b.remaining(), slice.capacity());
481 ck(b, b.get(), 0);
482 ck(b, b.get(), (short)-1);
483 ck(
[all...]
/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/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/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/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/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/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/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);

Completed in 164 milliseconds

123