Home
last modified time | relevance | path

Searched refs:check (Results 1 – 25 of 65) sorted by relevance

123

/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java45 static void check(boolean okay, String msg) { in check() method in BasicFileAttributeViewTest
54 check(attrs.isDirectory(), "is a directory"); in checkAttributesOfDirectory()
55 check(!attrs.isRegularFile(), "is not a regular file"); in checkAttributesOfDirectory()
56 check(!attrs.isSymbolicLink(), "is not a link"); in checkAttributesOfDirectory()
57 check(!attrs.isOther(), "is not other"); in checkAttributesOfDirectory()
61 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS), in checkAttributesOfDirectory()
69 check(attrs.isRegularFile(), "is a regular file"); in checkAttributesOfFile()
70 check(!attrs.isDirectory(), "is not a directory"); in checkAttributesOfFile()
71 check(!attrs.isSymbolicLink(), "is not a link"); in checkAttributesOfFile()
72 check(!attrs.isOther(), "is not other"); in checkAttributesOfFile()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java211 public URL findResource(String name, boolean check) { in findResource() argument
215 URL url = loader.findResource(name, check); in findResource()
231 public Resource getResource(String name, boolean check) { in getResource() argument
239 Resource res = loader.getResource(name, check); in getResource()
255 final boolean check) { in findResources() argument
267 url = loader.findResource(name, check); in findResources()
303 final boolean check) { in getResources() argument
315 res = loader.getResource(name, check); in getResources()
641 check(url);
654 static void check(URL url) throws IOException {
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DURLClassPath.java61 public java.net.URL findResource(java.lang.String name, boolean check) { in findResource() argument
65 public sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() argument
69 public java.util.Enumeration<java.net.URL> findResources(java.lang.String name, boolean check) { in findResources() argument
78 java.lang.String name, boolean check) { in getResources() argument
148 static void check(java.net.URL url) throws java.io.IOException { in check() method in URLClassPath
218 java.net.URL findResource(java.lang.String name, boolean check) { in findResource() argument
222 sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() argument
273 java.lang.String name, boolean check, java.util.jar.JarEntry entry) { in checkResource() argument
281 java.net.URL findResource(java.lang.String name, boolean check) { in findResource() argument
285 sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() argument
[all …]
/libcore/ojluni/src/main/java/sun/net/
DExtendedOptionsImpl.java64 String check = "setOption." + option.name(); in checkSetOptionPermission() local
65 sm.checkPermission(new NetworkPermission(check)); in checkSetOptionPermission()
73 String check = "getOption." + option.name(); in checkGetOptionPermission() local
74 sm.checkPermission(new NetworkPermission(check)); in checkGetOptionPermission()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXCertPathChecker.java164 public abstract void check(Certificate cert, in check() method in PKIXCertPathChecker
175 public void check(Certificate cert) throws CertPathValidatorException { in check() method in PKIXCertPathChecker
176 check(cert, java.util.Collections.<String>emptySet()); in check()
DCertPathChecker.java76 void check(Certificate cert) throws CertPathValidatorException; in check() method
/libcore/ojluni/src/main/java/java/security/
DIdentity.java187 check("setIdentityPublicKey"); in setPublicKey()
209 check("setIdentityInfo"); in setInfo()
249 check("addIdentityCertificate"); in addCertificate()
298 check("removeIdentityCertificate"); in removeCertificate()
413 check("printIdentity"); in toString()
495 private static void check(String directive) { in check() method in Identity
DSigner.java109 check("getSignerPrivateKey"); in getPrivateKey()
134 check("setSignerKeyPair"); in setKeyPair()
176 private static void check(String directive) { in check() method in Signer
DProvider.java216 check("clearProviderProperties."+name); in clear()
233 check("putProviderProperty."+name); in load()
251 check("putProviderProperty."+name); in putAll()
328 check("putProviderProperty."+name); in put()
355 check("putProviderProperty."+name); in putIfAbsent()
381 check("removeProviderProperty."+name); in remove()
406 check("removeProviderProperty."+name); in remove()
432 check("putProviderProperty." + name); in replace()
458 check("putProviderProperty." + name); in replace()
486 check("putProviderProperty." + name); in replaceAll()
[all …]
DIdentityScope.java166 check("setSystemScope"); in setSystemScope()
253 private static void check(String directive) { in check() method in IdentityScope
DSecureClassLoader.java191 check(); in getPermissions()
221 private void check() { in check() method in SecureClassLoader
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalTime.java87 private void check(LocalTime time, int h, int m, int s, int n) { in check() method in TestLocalTime
97 check(LocalTime.MIDNIGHT, 0, 0, 0, 0); in constant_MIDNIGHT()
108 check(LocalTime.NOON, 12, 0, 0, 0); in constant_MIDDAY()
120 check(LocalTime.MIN, 0, 0, 0, 0); in constant_MIN_TIME()
130 check(LocalTime.MAX, 23, 59, 59, 999999999); in constant_MAX_TIME()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectionKeyTest.java101 Object check = mockSelectionKey.attach(o); in test_attach() local
102 assertNull(check); in test_attach()
105 check = mockSelectionKey.attach(null); in test_attach()
106 assertSame(o, check); in test_attach()
108 check = mockSelectionKey.attach(o); in test_attach()
109 assertNull(check); in test_attach()
/libcore/xml/src/main/java/com/android/org/kxml2/io/
DKXmlSerializer.java86 private final void check(boolean close) throws IOException { in check() method in KXmlSerializer
207 check(false); in entityRef()
312 check(false); in setPrefix()
398 check(false); in startTag()
502 check(false); in flush()
527 check(true); in endTag()
564 check(false); in text()
577 check(false); in cdsect()
617 check(false); in comment()
625 check(false); in processingInstruction()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSP.java114 public static RevocationStatus check(X509Certificate cert, in check() method in OCSP
131 OCSPResponse ocspResponse = check(Collections.singletonList(certId), in check()
152 public static RevocationStatus check(X509Certificate cert, in check() method in OCSP
159 return check(cert, issuerCert, responderURI, responderCert, date, in check()
164 public static RevocationStatus check(X509Certificate cert, in check() method in OCSP
179 OCSPResponse ocspResponse = check(Collections.singletonList(certId), in check()
199 static OCSPResponse check(List<CertId> certIds, URI responderURI, in check() method in OCSP
DAlgorithmChecker.java203 public void check(Certificate cert, in check() method in AlgorithmChecker
391 static void check(PublicKey key, X509CRL crl) in check() method in AlgorithmChecker
402 check(key, algorithmId); in check()
411 static void check(PublicKey key, AlgorithmId algorithmId) in check() method in AlgorithmChecker
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOStatus.java65 public static boolean check(int n) { in check() method in IOStatus
75 public static boolean check(long n) { in check() method in IOStatus
DFileChannelImpl.java203 assert IOStatus.check(n); in read()
231 assert IOStatus.check(n); in read()
255 assert IOStatus.check(n); in write()
283 assert IOStatus.check(n); in write()
315 assert IOStatus.check(p); in position()
343 assert IOStatus.check(p); in position()
365 assert IOStatus.check(s); in size()
422 assert IOStatus.check(rv); in truncate()
442 assert IOStatus.check(rv); in force()
798 assert IOStatus.check(n); in readInternal()
[all …]
DSocketChannelImpl.java457 assert IOStatus.check(n); in read()
493 assert IOStatus.check(n); in read()
524 assert IOStatus.check(n); in write()
557 assert IOStatus.check(n); in write()
587 assert IOStatus.check(n); in sendOutOfBandData()
701 assert IOStatus.check(n); in connect()
799 assert IOStatus.check(n); in finishConnect()
DSinkChannelImpl.java173 assert IOStatus.check(n); in write()
196 assert IOStatus.check(n); in write()
DSourceChannelImpl.java178 assert IOStatus.check(n); in read()
209 assert IOStatus.check(n); in read()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDateTime.java228 private void check(LocalDateTime test, int y, int m, int d, int h, int mi, int s, int n) { in check() method in TCKLocalDateTime
250 check(LocalDateTime.MIN, Year.MIN_VALUE, 1, 1, 0, 0, 0, 0); in constant_MIN()
255 check(LocalDateTime.MAX, Year.MAX_VALUE, 12, 31, 23, 59, 59, 999999999); in constant_MAX()
387 check(dateTime, 2007, 7, 15, 12, 30, 0, 0);
434 check(dateTime, 2007, 7, 15, 12, 30, 40, 0);
491 check(dateTime, 2007, 7, 15, 12, 30, 40, 987654321);
558 check(dateTime, 2007, 7, 15, 12, 30, 0, 0);
610 check(dateTime, 2007, 7, 15, 12, 30, 40, 0);
672 check(dateTime, 2007, 7, 15, 12, 30, 40, 987654321);
744 check(dateTime, 2007, 7, 15, 12, 30, 40, 987654321);
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathCheckerTest.java79 pc.check(new MyCertificate("", null), new HashSet<String>()); in testCheck()
89 public void check(Certificate cert, in check() method in PKIXCertPathCheckerTest.MyPKIXCertPathChecker
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java1226 boolean[] check = new boolean[flist.length]; in test_list()
1227 for (int i = 0; i < check.length; i++) { in test_list()
1228 check[i] = false; in test_list()
1233 check[i] = true; in test_list()
1239 for (int i = 0; i < check.length; i++) { in test_list()
1240 if (check[i] == false) { in test_list()
1339 boolean[] check = new boolean[flist.length]; in test_listFiles()
1340 for (int i = 0; i < check.length; i++) { in test_listFiles()
1341 check[i] = false; in test_listFiles()
1346 check[i] = true; in test_listFiles()
[all …]
/libcore/ojluni/src/main/java/java/io/
DSerialCallbackContext.java63 public void check() throws NotActiveException { in check() method in SerialCallbackContext

123