Home
last modified time | relevance | path

Searched refs:fieldName (Results 1 – 18 of 18) sorted by relevance

/libcore/luni/src/main/java/libcore/net/http/
DResponseHeaders.java136 String fieldName = headers.getFieldName(i); in ResponseHeaders() local
138 if ("Cache-Control".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
140 } else if ("Date".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
142 } else if ("Expires".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
144 } else if ("Last-Modified".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
146 } else if ("ETag".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
148 } else if ("Pragma".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
152 } else if ("Age".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
154 } else if ("Vary".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
162 } else if ("Content-Encoding".equalsIgnoreCase(fieldName)) { in ResponseHeaders()
[all …]
DRawHeaders.java148 public void add(String fieldName, String value) { in add() argument
149 if (fieldName == null) { in add()
158 System.logW("Ignoring HTTP header field '" + fieldName + "' because its value is null"); in add()
161 namesAndValues.add(fieldName); in add()
165 public void removeAll(String fieldName) { in removeAll() argument
167 if (fieldName.equalsIgnoreCase(namesAndValues.get(i))) { in removeAll()
174 public void addAll(String fieldName, List<String> headerFields) { in addAll() argument
176 add(fieldName, value); in addAll()
184 public void set(String fieldName, String value) { in set() argument
185 removeAll(fieldName); in set()
[all …]
DRequestHeaders.java85 String fieldName = headers.getFieldName(i); in RequestHeaders() local
87 if ("Cache-Control".equalsIgnoreCase(fieldName)) { in RequestHeaders()
89 } else if ("Pragma".equalsIgnoreCase(fieldName)) { in RequestHeaders()
93 } else if ("If-None-Match".equalsIgnoreCase(fieldName)) { in RequestHeaders()
95 } else if ("If-Modified-Since".equalsIgnoreCase(fieldName)) { in RequestHeaders()
97 } else if ("Authorization".equalsIgnoreCase(fieldName)) { in RequestHeaders()
99 } else if ("Content-Length".equalsIgnoreCase(fieldName)) { in RequestHeaders()
104 } else if ("Transfer-Encoding".equalsIgnoreCase(fieldName)) { in RequestHeaders()
106 } else if ("User-Agent".equalsIgnoreCase(fieldName)) { in RequestHeaders()
108 } else if ("Host".equalsIgnoreCase(fieldName)) { in RequestHeaders()
[all …]
DHttpURLConnectionImpl.java137 @Override public final String getHeaderField(String fieldName) { in getHeaderField() argument
140 return fieldName == null in getHeaderField()
142 : rawHeaders.get(fieldName); in getHeaderField()
424 String fieldName = responseCode == HTTP_PROXY_AUTH in processAuthHeader() local
427 successorRequestHeaders.set(fieldName, credentials); in processAuthHeader()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java45 public static <U> AtomicLongFieldUpdater<U> newUpdater(Class<U> tclass, String fieldName) { in newUpdater() argument
47 return new CASUpdater<U>(tclass, fieldName); in newUpdater()
49 return new LockedUpdater<U>(tclass, fieldName); in newUpdater()
243 CASUpdater(Class<T> tclass, String fieldName) { in CASUpdater() argument
248 field = tclass.getDeclaredField(fieldName); in CASUpdater()
328 LockedUpdater(Class<T> tclass, String fieldName) { in LockedUpdater() argument
333 field = tclass.getDeclaredField(fieldName); in LockedUpdater()
DAtomicIntegerFieldUpdater.java45 public static <U> AtomicIntegerFieldUpdater<U> newUpdater(Class<U> tclass, String fieldName) { in newUpdater() argument
46 return new AtomicIntegerFieldUpdaterImpl<U>(tclass, fieldName); in newUpdater()
244 AtomicIntegerFieldUpdaterImpl(Class<T> tclass, String fieldName) { in AtomicIntegerFieldUpdaterImpl() argument
249 field = tclass.getDeclaredField(fieldName); in AtomicIntegerFieldUpdaterImpl()
DAtomicReferenceFieldUpdater.java63 …> AtomicReferenceFieldUpdater<U,W> newUpdater(Class<U> tclass, Class<W> vclass, String fieldName) { in newUpdater() argument
66 fieldName); in newUpdater()
174 String fieldName) { in AtomicReferenceFieldUpdaterImpl() argument
180 field = tclass.getDeclaredField(fieldName); in AtomicReferenceFieldUpdaterImpl()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp278 static void setIntegerField(JNIEnv* env, jobject obj, const char* fieldName, int value) { in setIntegerField() argument
280 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "Ljava/lang/Integer;"); in setIntegerField()
284 static void setStringField(JNIEnv* env, jobject obj, const char* fieldName, jstring value) { in setStringField() argument
285 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "Ljava/lang/String;"); in setStringField()
290 static void setStringArrayField(JNIEnv* env, jobject obj, const char* fieldName, jobjectArray value… in setStringArrayField() argument
291 jfieldID fid = env->GetFieldID(JniConstants::localeDataClass, fieldName, "[Ljava/lang/String;"); in setStringArrayField()
295 static void setStringArrayField(JNIEnv* env, jobject obj, const char* fieldName, const UnicodeStrin… in setStringArrayField() argument
307 setStringArrayField(env, obj, fieldName, result.get()); in setStringArrayField()
310 static void setStringField(JNIEnv* env, jobject obj, const char* fieldName, UResourceBundle* bundle… in setStringField() argument
315 setStringField(env, obj, fieldName, env->NewString(chars, charCount)); in setStringField()
[all …]
Dlibcore_io_OsConstants.cpp39 static void initConstant(JNIEnv* env, jclass c, const char* fieldName, int value) { in initConstant() argument
40 jfieldID field = env->GetStaticFieldID(c, fieldName, "I"); in initConstant()
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DFieldTest.java374 String fieldName = null; in testProtectedFieldAccess() local
385 fieldName = "objectField"; in testProtectedFieldAccess()
386 objectField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
388 fieldName = "booleanField"; in testProtectedFieldAccess()
389 booleanField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
391 fieldName = "byteField"; in testProtectedFieldAccess()
392 byteField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
394 fieldName = "charField"; in testProtectedFieldAccess()
395 charField = fieldClass.getDeclaredField(fieldName); in testProtectedFieldAccess()
397 fieldName = "shortField"; in testProtectedFieldAccess()
[all …]
/libcore/luni/src/main/java/java/text/
DFormat.java243 protected Field(String fieldName) { in Field() argument
244 super(fieldName); in Field()
DDateFormat.java779 protected Field(String fieldName, int calendarField) { in Field() argument
780 super(fieldName); in Field()
DNumberFormat.java816 protected Field(String fieldName) {
817 super(fieldName);
DMessageFormat.java1294 protected Field(String fieldName) { in Field() argument
1295 super(fieldName); in Field()
/libcore/luni/src/main/java/java/io/
DEmulatedFields.java144 private ObjectSlot findSlot(String fieldName, Class<?> fieldType) { in findSlot() argument
148 if (slot.field.getName().equals(fieldName)) { in findSlot()
171 if (field.getName().equals(fieldName)) { in findSlot()
DObjectInputStream.java920 String fieldName = input.readUTF(); in readFieldDescriptors() local
942 ObjectStreamField f = new ObjectStreamField(classSig, fieldName); in readFieldDescriptors()
1146 String fieldName = fieldDesc.getName(); in readFieldValues() local
1147 ObjectStreamField localFieldDesc = classDesc.getField(fieldName); in readFieldValues()
1151 …throw new ClassCastException(classDesc.getName() + "." + fieldName + " - " + fieldType + " not com… in readFieldValues()
DObjectOutputStream.java477 …ative Object getFieldL(Object instance, Class<?> declaringClass, String fieldName, String fieldTyp… in getFieldL() argument
/libcore/luni/src/main/java/java/lang/
DSystem.java640 private static native void setFieldImpl(String fieldName, String signature, Object stream); in setFieldImpl() argument