Home
last modified time | relevance | path

Searched refs:valid (Results 1 – 25 of 48) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/security/
DOldAlgorithmParameterGeneratorTest.java29 int[] valid = {512, 576, 640, 960, 1024}; in test_initI() local
33 for (int i = 0; i < valid.length; i++) { in test_initI()
35 gen.init(valid[i]); in test_initI()
37 fail("Exception should not be thrown for valid parameter" + valid[i]); in test_initI()
47 int[] valid = {512, 576, 640, 960, 1024}; in test_initILjava_security_SecureRandom() local
51 for (int i = 0; i < valid.length; i++) { in test_initILjava_security_SecureRandom()
53 gen.init(valid[i], new SecureRandom()); in test_initILjava_security_SecureRandom()
54 gen.init(valid[i], null); in test_initILjava_security_SecureRandom()
56 fail("Exception should not be thrown for valid parameter" + valid[i]); in test_initILjava_security_SecureRandom()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectionKey.java50 private volatile boolean valid = true; field in AbstractSelectionKey
53 return valid; in isValid()
57 valid = false; in invalidate()
71 if (valid) { in cancel()
72 valid = false; in cancel()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockImpl.java34 private volatile boolean valid = true; field in FileLockImpl
47 return valid; in isValid()
52 valid = false; in invalidate()
59 if (valid) { in release()
65 valid = false; in release()
DMembershipKeyImpl.java47 private volatile boolean valid = true; field in MembershipKeyImpl
137 return valid; in isValid()
142 valid = false; in invalidate()
/libcore/luni/src/test/java/libcore/java/io/
DFileDescriptorTest.java50 assertTrue(FileDescriptor.in.valid()); in testStaticFileDescriptors()
51 assertTrue(FileDescriptor.out.valid()); in testStaticFileDescriptors()
52 assertTrue(FileDescriptor.err.valid()); in testStaticFileDescriptors()
66 assertTrue(source.valid()); in testFileDescriptorCloneForFork()
67 assertTrue(target.valid()); in testFileDescriptorCloneForFork()
DFileOutputStreamTest.java65 assertFalse(fos1.getFD().valid()); in testFileDescriptorOwnership()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp42 if (!icuLocale.valid()) { in ICU_getScript()
59 if (!icuLocale.valid()) { in ICU_getISO3Country()
67 if (!icuLocale.valid()) { in ICU_getISO3Language()
87 if (!icuLocale.valid()) { in ICU_setDefaultLocale()
DScopedIcuULoc.h77 bool valid() const { in valid() function
/libcore/ojluni/src/main/java/java/net/
DAbstractPlainSocketImpl.java136 if (fd != null && fd.valid()) { in create()
557 if (fd != null && fd.valid()) { in close()
604 if (fd != null && fd.valid()) { in reset()
620 if (fd != null && fd.valid()) { in shutdownInput()
634 if (fd != null && fd.valid()) { in shutdownOutput()
646 if (fd == null || !fd.valid()) { in sendUrgentData()
737 if (closePending || (fd == null) || !fd.valid()) { in isClosedOrPending()
DPlainSocketImpl.java138 if (fd == null || !fd.valid()) { in socketConnect()
158 if (fd == null || !fd.valid()) { in socketBind()
175 if (fd == null || !fd.valid()) { in socketListen()
187 if (fd == null || !fd.valid()) { in socketAccept()
226 if (fd == null || !fd.valid()) { in socketClose0()
301 if (fd == null || !fd.valid()) { in socketSendUrgentData()
/libcore/ojluni/src/main/java/sun/nio/fs/
DPollingWatchService.java238 private volatile boolean valid;
251 this.valid = true;
274 return valid;
278 valid = false;
304 valid = false;
316 if (!valid) {
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java501 boolean valid = (currentTime <= expirationTime); in isValid()
502 if (valid == false) { in isValid()
505 return valid; in isValid()
538 boolean valid = (currentTime <= expirationTime) && (get() != null); in isValid()
539 if (valid == false) { in isValid()
542 return valid; in isValid()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileDescriptorTest.java80 assertTrue(fd.valid()); in test_valid()
82 assertFalse(fd.valid()); in test_valid()
/libcore/ojluni/src/main/java/sun/security/x509/
DCertificateValidity.java244 public void valid() in valid() method in CertificateValidity
247 valid(now); in valid()
261 public void valid(Date now) in valid() method in CertificateValidity
DPrivateKeyUsageExtension.java193 public void valid() in valid() method in PrivateKeyUsageExtension
196 valid(now); in valid()
208 public void valid(Date now) in valid() method in PrivateKeyUsageExtension
/libcore/luni/src/test/resources/META-INF/services/
Dlibcore.java.util.ServiceLoaderTestInterfaceParseError1 this is not a valid class name!
Dlibcore.java.util.ServiceLoaderTestInterface5 libcore.java.util.ServiceLoaderTest$Impl2 # this comment is valid
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DCertificateValidity.java87 public void valid() in valid() method in CertificateValidity
93 public void valid(java.util.Date now) in valid() method in CertificateValidity
/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java191 public void test_isNumeric(String valid) throws Exception { in test_isNumeric() argument
192 assertTrue(InetAddress.isNumeric(valid)); in test_isNumeric()
347 public void test_getByName_valid(String valid) throws Exception { in test_getByName_valid() argument
348 InetAddress.getByName(valid); in test_getByName_valid()
351 InetAddress.getByName(valid); in test_getByName_valid()
354 String tempIPAddress = "[" + valid + "]"; in test_getByName_valid()
/libcore/luni/src/test/native/
DScopedIcuLocale.h45 bool valid() const { in valid() function
/libcore/ojluni/annotations/mmodule/java/io/
DFileDescriptor.annotated.java35 public boolean valid() { throw new RuntimeException("Stub!"); } in valid() method in FileDescriptor
/libcore/ojluni/annotations/hiddenapi/java/io/
DFileDescriptor.java41 public boolean valid() { in valid() method in FileDescriptor
/libcore/luni/src/test/resources/tests/api/java/io/
DsameFieldNames.smali7 # (Invalid in Java language but valid in bytecode.)
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java91 assertTrue(fd.valid()); in testDatagramSocket()
111 socket.getFileDescriptor$().valid()); in testSocket()
/libcore/ojluni/src/main/java/java/io/
DFileDescriptor.java111 public boolean valid() { in valid() method in FileDescriptor

12