Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/security/x509/
DIssuingDistributionPointExtension.java191 DerValue opt = in.getDerValue(); in IssuingDistributionPointExtension() local
193 if (opt.isContextSpecific(TAG_DISTRIBUTION_POINT) && in IssuingDistributionPointExtension()
194 opt.isConstructed()) { in IssuingDistributionPointExtension()
196 new DistributionPointName(opt.data.getDerValue()); in IssuingDistributionPointExtension()
197 } else if (opt.isContextSpecific(TAG_ONLY_USER_CERTS) && in IssuingDistributionPointExtension()
198 !opt.isConstructed()) { in IssuingDistributionPointExtension()
199 opt.resetTag(DerValue.tag_Boolean); in IssuingDistributionPointExtension()
200 hasOnlyUserCerts = opt.getBoolean(); in IssuingDistributionPointExtension()
201 } else if (opt.isContextSpecific(TAG_ONLY_CA_CERTS) && in IssuingDistributionPointExtension()
202 !opt.isConstructed()) { in IssuingDistributionPointExtension()
[all …]
DEDIPartyName.java91 DerValue opt = seq[i]; in EDIPartyName() local
92 if (opt.isContextSpecific(TAG_ASSIGNER) && in EDIPartyName()
93 !opt.isConstructed()) { in EDIPartyName()
97 opt = opt.data.getDerValue(); in EDIPartyName()
98 assigner = opt.getAsString(); in EDIPartyName()
100 if (opt.isContextSpecific(TAG_PARTYNAME) && in EDIPartyName()
101 !opt.isConstructed()) { in EDIPartyName()
105 opt = opt.data.getDerValue(); in EDIPartyName()
106 party = opt.getAsString(); in EDIPartyName()
DGeneralSubtree.java84 DerValue opt = val.data.getDerValue(); in GeneralSubtree() local
86 if (opt.isContextSpecific(TAG_MIN) && !opt.isConstructed()) { in GeneralSubtree()
87 opt.resetTag(DerValue.tag_Integer); in GeneralSubtree()
88 minimum = opt.getInteger(); in GeneralSubtree()
90 } else if (opt.isContextSpecific(TAG_MAX) && !opt.isConstructed()) { in GeneralSubtree()
91 opt.resetTag(DerValue.tag_Integer); in GeneralSubtree()
92 maximum = opt.getInteger(); in GeneralSubtree()
DAuthorityKeyIdentifierExtension.java162 DerValue opt = val.data.getDerValue(); in AuthorityKeyIdentifierExtension() local
167 if (opt.isContextSpecific(TAG_ID) && !opt.isConstructed()) { in AuthorityKeyIdentifierExtension()
171 opt.resetTag(DerValue.tag_OctetString); in AuthorityKeyIdentifierExtension()
172 id = new KeyIdentifier(opt); in AuthorityKeyIdentifierExtension()
174 } else if (opt.isContextSpecific(TAG_NAMES) && in AuthorityKeyIdentifierExtension()
175 opt.isConstructed()) { in AuthorityKeyIdentifierExtension()
179 opt.resetTag(DerValue.tag_Sequence); in AuthorityKeyIdentifierExtension()
180 names = new GeneralNames(opt); in AuthorityKeyIdentifierExtension()
182 } else if (opt.isContextSpecific(TAG_SERIAL_NUM) && in AuthorityKeyIdentifierExtension()
183 !opt.isConstructed()) { in AuthorityKeyIdentifierExtension()
[all …]
DDistributionPoint.java199 DerValue opt = val.data.getDerValue(); in DistributionPoint() local
201 if (opt.isContextSpecific(TAG_DIST_PT) && opt.isConstructed()) { in DistributionPoint()
206 DerValue distPnt = opt.data.getDerValue(); in DistributionPoint()
219 } else if (opt.isContextSpecific(TAG_REASONS) in DistributionPoint()
220 && !opt.isConstructed()) { in DistributionPoint()
225 opt.resetTag(DerValue.tag_BitString); in DistributionPoint()
226 reasonFlags = (opt.getUnalignedBitString()).toBooleanArray(); in DistributionPoint()
227 } else if (opt.isContextSpecific(TAG_ISSUER) in DistributionPoint()
228 && opt.isConstructed()) { in DistributionPoint()
233 opt.resetTag(DerValue.tag_Sequence); in DistributionPoint()
[all …]
DPrivateKeyUsageExtension.java147 DerValue opt = seq[i]; in PrivateKeyUsageExtension() local
149 if (opt.isContextSpecific(TAG_BEFORE) && in PrivateKeyUsageExtension()
150 !opt.isConstructed()) { in PrivateKeyUsageExtension()
155 opt.resetTag(DerValue.tag_GeneralizedTime); in PrivateKeyUsageExtension()
156 str = new DerInputStream(opt.toByteArray()); in PrivateKeyUsageExtension()
159 } else if (opt.isContextSpecific(TAG_AFTER) && in PrivateKeyUsageExtension()
160 !opt.isConstructed()) { in PrivateKeyUsageExtension()
165 opt.resetTag(DerValue.tag_GeneralizedTime); in PrivateKeyUsageExtension()
166 str = new DerInputStream(opt.toByteArray()); in PrivateKeyUsageExtension()
DBasicConstraintsExtension.java138 DerValue opt = val.data.getDerValue(); in BasicConstraintsExtension() local
139 if (opt.tag != DerValue.tag_Boolean) { in BasicConstraintsExtension()
144 this.ca = opt.getBoolean(); in BasicConstraintsExtension()
153 opt = val.data.getDerValue(); in BasicConstraintsExtension()
154 if (opt.tag != DerValue.tag_Integer) { in BasicConstraintsExtension()
157 this.pathLen = opt.getInteger(); in BasicConstraintsExtension()
DPolicyInformation.java109 DerValue opt = val.data.getDerValue(); in PolicyInformation() local
110 if (opt.tag != DerValue.tag_Sequence) in PolicyInformation()
112 if (opt.data.available() == 0) in PolicyInformation()
114 while (opt.data.available() != 0) in PolicyInformation()
116 (opt.data.getDerValue().toByteArray())); in PolicyInformation()
DNameConstraintsExtension.java188 DerValue opt = val.data.getDerValue(); in NameConstraintsExtension() local
190 if (opt.isContextSpecific(TAG_PERMITTED) && opt.isConstructed()) { in NameConstraintsExtension()
195 opt.resetTag(DerValue.tag_Sequence); in NameConstraintsExtension()
196 permitted = new GeneralSubtrees(opt); in NameConstraintsExtension()
198 } else if (opt.isContextSpecific(TAG_EXCLUDED) && in NameConstraintsExtension()
199 opt.isConstructed()) { in NameConstraintsExtension()
204 opt.resetTag(DerValue.tag_Sequence); in NameConstraintsExtension()
205 excluded = new GeneralSubtrees(opt); in NameConstraintsExtension()
DGeneralSubtrees.java80 DerValue opt = val.data.getDerValue(); in GeneralSubtrees() local
81 GeneralSubtree tree = new GeneralSubtree(opt); in GeneralSubtrees()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertificatePair.java232 DerValue opt = val.data.getDerValue(); in parse() local
233 short tag = (byte) (opt.tag & 0x01f); in parse()
236 if (opt.isContextSpecific() && opt.isConstructed()) { in parse()
241 opt = opt.data.getDerValue(); in parse()
243 (new X509CertImpl(opt.toByteArray())); in parse()
247 if (opt.isContextSpecific() && opt.isConstructed()) { in parse()
252 opt = opt.data.getDerValue(); in parse()
254 (new X509CertImpl(opt.toByteArray())); in parse()
/libcore/ojluni/src/main/native/
DNet.c433 jboolean mayNeedConversion, jint level, jint opt) in Java_sun_nio_ch_Net_getIntOption0() argument
448 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) { in Java_sun_nio_ch_Net_getIntOption0()
453 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
459 n = NET_GetSockOpt(fdval(env, fdo), level, opt, arg, (int*)&arglen); in Java_sun_nio_ch_Net_getIntOption0()
461 n = getsockopt(fdval(env, fdo), level, opt, arg, &arglen); in Java_sun_nio_ch_Net_getIntOption0()
471 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) in Java_sun_nio_ch_Net_getIntOption0()
476 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
485 jint opt, jint arg, jboolean isIPv6) in Java_sun_nio_ch_Net_setIntOption0() argument
500 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) { in Java_sun_nio_ch_Net_setIntOption0()
506 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
[all …]
Dnet_util_md.c179 static int findMaxBuf(int fd, int opt, int sotype) { in findMaxBuf() argument
191 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess, sizeof(int)) == 0) { in findMaxBuf()
193 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess,sizeof(int)) < 0) { in findMaxBuf()
204 if (setsockopt(fd, SOL_SOCKET, opt, &mid, sizeof(int)) == 0) { in findMaxBuf()
964 NET_GetSockOpt(int fd, int level, int opt, void *result, in NET_GetSockOpt() argument
970 rv = getsockopt(fd, level, opt, result, len); in NET_GetSockOpt()
974 rv = getsockopt(fd, level, opt, result, &socklen); in NET_GetSockOpt()
989 if ((level == SOL_SOCKET) && ((opt == SO_SNDBUF) in NET_GetSockOpt()
990 || (opt == SO_RCVBUF))) { in NET_GetSockOpt()
1001 if (level == SOL_SOCKET && opt == SO_LINGER) { in NET_GetSockOpt()
[all …]
Dnet_util.h169 NET_GetSockOpt(int fd, int level, int opt, void *result, int *len);
172 NET_SetSockOpt(int fd, int level, int opt, const void *arg, int len);
/libcore/json/src/main/java/org/json/
DJSONArray.java274 Object value = opt(index); in isNull()
301 public Object opt(int index) { in opt() method in JSONArray
348 Object object = opt(index); in optBoolean()
382 Object object = opt(index); in optDouble()
416 Object object = opt(index); in optInt()
450 Object object = opt(index); in optLong()
483 Object object = opt(index); in optString()
509 Object object = opt(index); in optJSONArray()
534 Object object = opt(index); in optJSONObject()
552 String name = JSON.toString(names.opt(i)); in toJSONObject()
[all …]
DJSONObject.java187 Object value = copyFrom.opt(name); in JSONObject()
401 public Object opt(String name) { in opt() method in JSONObject
434 Object object = opt(name); in optBoolean()
468 Object object = opt(name); in optDouble()
502 Object object = opt(name); in optInt()
541 Object object = opt(name); in optLong()
574 Object object = opt(name); in optString()
600 Object object = opt(name); in optJSONArray()
625 Object object = opt(name); in optJSONObject()
644 String name = JSON.toString(names.opt(i)); in toJSONArray()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java377 for (OpenOption opt: options) { in newInputStream()
379 if (opt == StandardOpenOption.APPEND || in newInputStream()
380 opt == StandardOpenOption.WRITE) in newInputStream()
381 throw new UnsupportedOperationException("'" + opt + "' not allowed"); in newInputStream()
427 for (OpenOption opt: options) { in newOutputStream()
428 if (opt == StandardOpenOption.READ) in newOutputStream()
430 opts.add(opt); in newOutputStream()
/libcore/ojluni/src/main/java/java/net/
DPlainDatagramSocketImpl.java89 protected void socketSetOption(int opt, Object val) throws SocketException { in socketSetOption() argument
91 socketSetOption0(opt, val); in socketSetOption()
212 protected void socketSetOption0(int opt, Object val) throws SocketException { in socketSetOption0() argument
217 IoBridge.setSocketOption(fd, opt, val); in socketSetOption0()
220 protected Object socketGetOption(int opt) throws SocketException { in socketGetOption() argument
225 return IoBridge.getSocketOption(fd, opt); in socketGetOption()
DAbstractPlainSocketImpl.java204 public void setOption(int opt, Object val) throws SocketException { in setOption() argument
273 if (opt == SO_TIMEOUT) { in setOption()
276 socketSetOption(opt, val); in setOption()
278 public Object getOption(int opt) throws SocketException { in getOption() argument
282 if (opt == SO_TIMEOUT) { in getOption()
337 return socketGetOption(opt); in getOption()
743 abstract Object socketGetOption(int opt) throws SocketException; in socketGetOption() argument
DPlainSocketImpl.java104 protected void socketSetOption(int opt, Object val) throws SocketException { in socketSetOption() argument
106 socketSetOption0(opt, val); in socketSetOption()
280 Object socketGetOption(int opt) throws SocketException { in socketGetOption() argument
281 return IoBridge.getSocketOption(fd, opt); in socketGetOption()
DAbstractPlainDatagramSocketImpl.java382 protected abstract void socketSetOption(int opt, Object val) in socketSetOption() argument
384 protected abstract Object socketGetOption(int opt) throws SocketException; in socketGetOption() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixMountEntry.java69 for (String opt: Util.split(optionsAsString, ',')) { in hasOption()
70 if (opt.equals(requested)) in hasOption()
/libcore/json/src/test/java/org/json/
DSelfUseTest.java51 @Override public Object opt(String name) {
53 return super.opt(name);
86 @Override public Object opt(int index) {
88 return super.opt(index);
DJSONArrayTest.java50 assertNull(array.opt(0)); in testEmptyArray()
162 assertEquals(JSONObject.NULL, array.opt(0)); in testNulls()
163 assertEquals(null, array.opt(1)); in testNulls()
164 assertEquals(null, array.opt(2)); in testNulls()
165 assertEquals(null, array.opt(3)); in testNulls()
226 assertEquals(Double.MIN_VALUE, array.opt(0)); in testNumbers()
264 assertEquals("true", array.opt(0)); in testStrings()
517 assertEquals(null, array.opt(3)); in testAccessOutOfBounds()
518 assertEquals(null, array.opt(-3)); in testAccessOutOfBounds()
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java2342 for (LinkOption opt: options) {
2343 if (opt == LinkOption.NOFOLLOW_LINKS) {
2347 if (opt == null)
2988 for (CopyOption opt: options) {
2989 if (opt == StandardCopyOption.REPLACE_EXISTING) {
2992 if (opt == null) {
2995 throw new UnsupportedOperationException(opt + " not supported");

12