Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 26) 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/java/java/net/
DAbstractPlainSocketImpl.java200 public void setOption(int opt, Object val) throws SocketException { in setOption() argument
205 switch (opt) { in setOption()
263 throw new SocketException("unrecognized TCP option: " + opt); in setOption()
265 socketSetOption(opt, on, val); in setOption()
267 public Object getOption(int opt) throws SocketException { in getOption() argument
271 if (opt == SO_TIMEOUT) { in getOption()
283 switch (opt) { in getOption()
285 ret = socketGetOption(opt, null); in getOption()
288 ret = socketGetOption(opt, null); in getOption()
291 ret = socketGetOption(opt, null); in getOption()
[all …]
DPlainDatagramSocketImpl.java71 protected native void socketSetOption(int opt, Object val) in socketSetOption() argument
74 protected native Object socketGetOption(int opt) throws SocketException; in socketGetOption() argument
DPlainSocketImpl.java74 native int socketGetOption(int opt, Object iaContainerObj) throws SocketException; in socketGetOption() argument
DAbstractPlainDatagramSocketImpl.java384 protected abstract void socketSetOption(int opt, Object val) in socketSetOption() argument
386 protected abstract Object socketGetOption(int opt) throws SocketException; in socketGetOption() argument
/libcore/ojluni/src/main/native/
DNet.c337 jboolean mayNeedConversion, jint level, jint opt) in Java_sun_nio_ch_Net_getIntOption0() argument
352 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) { in Java_sun_nio_ch_Net_getIntOption0()
357 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
363 n = NET_GetSockOpt(fdval(env, fdo), level, opt, arg, (int*)&arglen); in Java_sun_nio_ch_Net_getIntOption0()
365 n = getsockopt(fdval(env, fdo), level, opt, arg, &arglen); in Java_sun_nio_ch_Net_getIntOption0()
375 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) in Java_sun_nio_ch_Net_getIntOption0()
380 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
388 jboolean mayNeedConversion, jint level, jint opt, jint arg) in Java_sun_nio_ch_Net_setIntOption0() argument
403 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) { in Java_sun_nio_ch_Net_setIntOption0()
409 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()
982 NET_GetSockOpt(int fd, int level, int opt, void *result, in NET_GetSockOpt() argument
988 if ((level == IPPROTO_IP) && (opt == IP_TOS)) { in NET_GetSockOpt()
1003 rv = getsockopt(fd, level, opt, result, len); in NET_GetSockOpt()
1007 rv = getsockopt(fd, level, opt, result, &socklen); in NET_GetSockOpt()
1022 if ((level == SOL_SOCKET) && ((opt == SO_SNDBUF) in NET_GetSockOpt()
1023 || (opt == SO_RCVBUF))) { in NET_GetSockOpt()
[all …]
DPlainDatagramSocketImpl.c1201 jint opt, jobject value) in setMulticastInterface() argument
1203 if (opt == java_net_SocketOptions_IP_MULTICAST_IF) { in setMulticastInterface()
1217 if (opt == java_net_SocketOptions_IP_MULTICAST_IF2) { in setMulticastInterface()
1294 jint opt, jobject value) { in setMulticastLoopbackMode() argument
1321 jint opt, in PlainDatagramSocketImpl_socketSetOption() argument
1351 if (opt == java_net_SocketOptions_IP_MULTICAST_IF || in PlainDatagramSocketImpl_socketSetOption()
1352 opt == java_net_SocketOptions_IP_MULTICAST_IF2) { in PlainDatagramSocketImpl_socketSetOption()
1354 setMulticastInterface(env, this, fd, opt, value); in PlainDatagramSocketImpl_socketSetOption()
1361 if (opt == java_net_SocketOptions_IP_MULTICAST_LOOP) { in PlainDatagramSocketImpl_socketSetOption()
1362 setMulticastLoopbackMode(env, this, fd, opt, value); in PlainDatagramSocketImpl_socketSetOption()
[all …]
Dnet_util.h156 NET_GetSockOpt(int fd, int level, int opt, void *result, int *len);
159 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.java184 Object value = copyFrom.opt(name); in JSONObject()
398 public Object opt(String name) { in opt() method in JSONObject
431 Object object = opt(name); in optBoolean()
465 Object object = opt(name); in optDouble()
499 Object object = opt(name); in optInt()
538 Object object = opt(name); in optLong()
571 Object object = opt(name); in optString()
597 Object object = opt(name); in optJSONArray()
622 Object object = opt(name); in optJSONObject()
641 String name = JSON.toString(names.opt(i)); in toJSONArray()
[all …]
/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()
DJSONObjectTest.java92 assertNull(object.opt("foo")); in testEmptyObject()
295 assertEquals(Double.MIN_VALUE, object.opt("foo")); in testNumbers()
299 assertEquals(Double.MIN_VALUE, object.opt("foo")); in testNumbers()
417 assertEquals("true", object.opt("foo")); in testStrings()
758 assertEquals(null, copy.opt("b")); in testCopyConstructor()
839 assertEquals(null, object.opt(null)); in testOptNull()
/libcore/ojluni/src/main/java/sun/nio/ch/
DNet.java518 int level, int opt)
522 int level, int opt, int arg)

12