/libcore/ojluni/src/main/java/sun/security/x509/ |
D | IssuingDistributionPointExtension.java | 191 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 …]
|
D | EDIPartyName.java | 91 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()
|
D | GeneralSubtree.java | 84 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()
|
D | AuthorityKeyIdentifierExtension.java | 162 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 …]
|
D | DistributionPoint.java | 199 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 …]
|
D | PrivateKeyUsageExtension.java | 148 DerValue opt = seq[i]; in PrivateKeyUsageExtension() local 150 if (opt.isContextSpecific(TAG_BEFORE) && in PrivateKeyUsageExtension() 151 !opt.isConstructed()) { in PrivateKeyUsageExtension() 156 opt.resetTag(DerValue.tag_GeneralizedTime); in PrivateKeyUsageExtension() 157 str = new DerInputStream(opt.toByteArray()); in PrivateKeyUsageExtension() 160 } else if (opt.isContextSpecific(TAG_AFTER) && in PrivateKeyUsageExtension() 161 !opt.isConstructed()) { in PrivateKeyUsageExtension() 166 opt.resetTag(DerValue.tag_GeneralizedTime); in PrivateKeyUsageExtension() 167 str = new DerInputStream(opt.toByteArray()); in PrivateKeyUsageExtension()
|
D | BasicConstraintsExtension.java | 138 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()
|
D | PolicyInformation.java | 109 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()
|
D | NameConstraintsExtension.java | 188 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()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | X509CertificatePair.java | 232 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/ |
D | Net.c | 448 jboolean mayNeedConversion, jint level, jint opt) in Java_sun_nio_ch_Net_getIntOption0() argument 463 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) { in Java_sun_nio_ch_Net_getIntOption0() 468 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0() 474 n = NET_GetSockOpt(fdval(env, fdo), level, opt, arg, (int*)&arglen); in Java_sun_nio_ch_Net_getIntOption0() 476 n = getsockopt(fdval(env, fdo), level, opt, arg, &arglen); in Java_sun_nio_ch_Net_getIntOption0() 486 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) in Java_sun_nio_ch_Net_getIntOption0() 491 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0() 500 jint opt, jint arg, jboolean isIPv6) in Java_sun_nio_ch_Net_setIntOption0() argument 515 (opt == IP_MULTICAST_TTL || opt == IP_MULTICAST_LOOP)) { in Java_sun_nio_ch_Net_setIntOption0() 521 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0() [all …]
|
D | net_util_md.c | 186 static int findMaxBuf(int fd, int opt, int sotype) { in findMaxBuf() argument 198 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess, sizeof(int)) == 0) { in findMaxBuf() 200 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess,sizeof(int)) < 0) { in findMaxBuf() 211 if (setsockopt(fd, SOL_SOCKET, opt, &mid, sizeof(int)) == 0) { in findMaxBuf() 979 NET_GetSockOpt(int fd, int level, int opt, void *result, in NET_GetSockOpt() argument 985 rv = getsockopt(fd, level, opt, result, len); in NET_GetSockOpt() 989 rv = getsockopt(fd, level, opt, result, &socklen); in NET_GetSockOpt() 1004 if ((level == SOL_SOCKET) && ((opt == SO_SNDBUF) in NET_GetSockOpt() 1005 || (opt == SO_RCVBUF))) { in NET_GetSockOpt() 1016 if (level == SOL_SOCKET && opt == SO_LINGER) { in NET_GetSockOpt() [all …]
|
D | net_util.h | 182 NET_GetSockOpt(int fd, int level, int opt, void *result, int *len); 185 NET_SetSockOpt(int fd, int level, int opt, const void *arg, int len);
|
/libcore/json/src/main/java/org/json/ |
D | JSONArray.java | 276 Object value = opt(index); in isNull() 303 public Object opt(int index) { in opt() method in JSONArray 350 Object object = opt(index); in optBoolean() 384 Object object = opt(index); in optDouble() 418 Object object = opt(index); in optInt() 452 Object object = opt(index); in optLong() 485 Object object = opt(index); in optString() 511 Object object = opt(index); in optJSONArray() 536 Object object = opt(index); in optJSONObject() 554 String name = JSON.toString(names.opt(i)); in toJSONObject() [all …]
|
D | JSONObject.java | 193 Object value = copyFrom.opt(name); in JSONObject() 409 @Nullable public Object opt(@Nullable String name) { in opt() method in JSONObject 442 Object object = opt(name); in optBoolean() 476 Object object = opt(name); in optDouble() 510 Object object = opt(name); in optInt() 549 Object object = opt(name); in optLong() 582 Object object = opt(name); in optString() 608 Object object = opt(name); in optJSONArray() 633 Object object = opt(name); in optJSONObject() 652 String name = JSON.toString(names.opt(i)); in toJSONArray() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/spi/ |
D | FileSystemProvider.java | 377 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/ |
D | PlainDatagramSocketImpl.java | 90 protected void socketSetOption(int opt, Object val) throws SocketException { in socketSetOption() argument 92 socketSetOption0(opt, val); in socketSetOption() 214 protected void socketSetOption0(int opt, Object val) throws SocketException { in socketSetOption0() argument 219 IoBridge.setSocketOption(fd, opt, val); in socketSetOption0() 222 protected Object socketGetOption(int opt) throws SocketException { in socketGetOption() argument 227 return IoBridge.getSocketOption(fd, opt); in socketGetOption()
|
D | AbstractPlainSocketImpl.java | 234 public void setOption(int opt, Object val) throws SocketException { in setOption() argument 305 if (opt == SO_TIMEOUT) { in setOption() 308 socketSetOption(opt, val); in setOption() 310 public Object getOption(int opt) throws SocketException { in getOption() argument 314 if (opt == SO_TIMEOUT) { in getOption() 369 return socketGetOption(opt); in getOption() 786 abstract Object socketGetOption(int opt) throws SocketException; in socketGetOption() argument
|
D | PlainSocketImpl.java | 116 protected void socketSetOption(int opt, Object val) throws SocketException { in socketSetOption() argument 118 socketSetOption0(opt, val); in socketSetOption() 296 Object socketGetOption(int opt) throws SocketException { in socketGetOption() argument 297 return IoBridge.getSocketOption(fd, opt); in socketGetOption()
|
D | AbstractPlainDatagramSocketImpl.java | 414 protected abstract void socketSetOption(int opt, Object val) in socketSetOption() argument 416 protected abstract Object socketGetOption(int opt) throws SocketException; in socketGetOption() argument
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixMountEntry.java | 69 for (String opt: Util.split(optionsAsString, ',')) { in hasOption() 70 if (opt.equals(requested)) in hasOption()
|
/libcore/json/src/test/java/libcore/org/json/ |
D | SelfUseTest.java | 56 @Override public Object opt(String name) { 58 return super.opt(name); 91 @Override public Object opt(int index) { 93 return super.opt(index);
|
D | JSONArrayTest.java | 55 assertNull(array.opt(0)); in testEmptyArray() 167 assertEquals(JSONObject.NULL, array.opt(0)); in testNulls() 168 assertEquals(null, array.opt(1)); in testNulls() 169 assertEquals(null, array.opt(2)); in testNulls() 170 assertEquals(null, array.opt(3)); in testNulls() 231 assertEquals(Double.MIN_VALUE, array.opt(0)); in testNumbers() 269 assertEquals("true", array.opt(0)); in testStrings() 522 assertEquals(null, array.opt(3)); in testAccessOutOfBounds() 523 assertEquals(null, array.opt(-3)); in testAccessOutOfBounds()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | PlainSocketImpl.java | 50 protected void socketSetOption(int opt, java.lang.Object val) throws java.net.SocketException { in socketSetOption() argument 95 java.lang.Object socketGetOption(int opt) throws java.net.SocketException { in socketGetOption() argument
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 2342 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");
|