Searched refs:field (Results 1 - 25 of 180) sorted by relevance

12345678

/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DPublicFinalTestVo.java19 public PublicFinalTestVo(int field) { argument
20 myField = field;
H A DPublicFinalWithObservableTestVo.java25 public PublicFinalWithObservableTestVo(int field) { argument
26 myField = field;
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DFieldWithIndex.kt23 * If we are sure that the field will be there at compile time, we set it to always Exists so that
26 data class FieldWithIndex(val field: Field, val indexVar: String, val alwaysExists: Boolean) {
29 return fields.mapIndexed { index, field ->
30 FieldWithIndex(field = field,
H A DConstructor.kt27 fun hasField(field: Field): Boolean {
30 is FieldParam -> it.field === field
31 is EmbeddedParam -> it.embedded.field === field
37 class FieldParam(val field: Field) : Param(ParamType.FIELD) {
38 override fun log(): String = field.getPath()
42 override fun log(): String = embedded.field.getPath()
H A DEmbeddedField.kt23 * Used when a field is embedded inside an Entity or Pojo.
26 data class EmbeddedField(val field: Field, val prefix: String = "",
28 val getter by lazy { field.getter }
29 val setter by lazy { field.setter }
30 val nonNull = field.element.hasAnnotation(NonNull::class)
37 return field.nonNull && (parent == null || parent.isNonNullRecursively())
/frameworks/data-binding/integration-tests/IndependentLibrary/app/src/main/java/android/databinding/test/independentlibrary/vo/
H A DMyBindableObject.java32 public void setField(String field) { argument
33 mField = field;
34 notifyPropertyChanged(BR.field);
/frameworks/data-binding/integration-tests/MultiModuleTestApp/testlibrary/src/main/java/android/databinding/testlibrary/
H A DTestLibObject.java31 public void setField(String field) { argument
32 this.mField = field;
33 notifyPropertyChanged(BR.field);
/frameworks/base/test-runner/src/android/test/
H A DActivityTestCase.java68 for (Field field : fields) {
69 final Class<?> fieldClass = field.getDeclaringClass();
70 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()
71 && (field.getModifiers() & Modifier.FINAL) == 0) {
73 field.setAccessible(true);
74 field.set(this, null);
76 android.util.Log.d("TestCase", "Error: Could not nullify field!");
79 if (field.get(this) != null) {
80 android.util.Log.d("TestCase", "Error: Could not nullify field!");
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DDataBindingMapperTest.java25 for (Field field : BR.class.getDeclaredFields()) {
26 assertEquals(field.getName(),
27 DataBindingUtil.convertBrIdToString((int) field.get(BR.class)));
H A DProcessBindableTest.java47 for (Field field: fields) {
48 assertTrue(field.getModifiers() == modifiers);
49 String name = field.getName();
50 fieldValues.put(name, field.getInt(null));
59 assertTrue("missing field: " + fieldName, fieldValues.containsKey(fieldName));
/frameworks/base/tools/streaming_proto/
H A Dstream_proto_utils.cpp7 * Position of the field type in a (long long) fieldId.
12 // FieldId flags for whether the field is single, repeated or packed.
21 get_field_id(const FieldDescriptorProto& field) argument
24 uint64_t result = (uint32_t)field.number();
27 result |= (uint64_t)field.type() << FIELD_TYPE_SHIFT;
30 if (field.options().packed()) {
32 } else if (field.label() == FieldDescriptorProto::LABEL_REPEATED) {
42 get_proto_type(const FieldDescriptorProto& field) argument
44 switch (field.type()) {
66 return field
[all...]
H A Dstream_proto_utils.h14 * Get encoded field id from a field.
16 uint64_t get_field_id(const FieldDescriptorProto& field);
19 * Get the string name for a field.
21 string get_proto_type(const FieldDescriptorProto& field);
/frameworks/base/tools/incident_section_gen/
H A Dmain.cpp62 * Privacy WindowState__state { 1, 9, NULL, LOCAL, NULL }; // first two integers are values for field id and proto type.
82 * 1. Both field and message can be tagged with DESTINATION: LOCAL(L), EXPLICIT(E), AUTOMATIC(A).
85 * 4. Message field tag overrides its default message tag.
112 const FieldDescriptor* field = descriptor->field(i); local
113 if (field->type() == FieldDescriptor::TYPE_MESSAGE) {
114 sections[field->name()] = field;
123 const FieldDescriptor* field = it->second; local
124 printf(" { %d, \"%s\" }", field
174 printPrivacy(const string& name, const FieldDescriptor* field, const string& children, const Destination dest, const string& patterns, const string& comments = �) argument
181 getSectionFlags(const FieldDescriptor* field) argument
185 getPrivacyFlags(const FieldDescriptor* field) argument
199 getFieldDest(const FieldDescriptor* field) argument
218 getFieldName(const FieldDescriptor* field) argument
233 isDefaultField(const FieldDescriptor* field, const Destination containerDest) argument
249 const FieldDescriptor* field = descriptor->field(i); local
314 const FieldDescriptor* field = fieldsInOrder[i]; local
382 const FieldDescriptor* field = fieldsInOrder[i]; local
405 const FieldDescriptor* field = descriptor->field(i); local
457 const FieldDescriptor* field = fieldsInOrder[i]; local
535 const FieldDescriptor* field = descriptor->field(i); local
579 const FieldDescriptor* field = descriptor->field(i); local
[all...]
/frameworks/base/tools/stats_log_api_gen/
H A DCollation.cpp68 print_error(const FieldDescriptor* field, const char* format, ...) argument
70 const Descriptor* message = field->containing_type();
74 if (field->GetSourceLocation(&loc)) {
90 java_type(const FieldDescriptor* field) argument
92 int protoType = field->type();
116 if (field->message_type()->full_name() ==
162 const FieldDescriptor *field = atom->field(j); local
163 fields[field->number()] = field;
171 const FieldDescriptor *field = it->second; local
187 const FieldDescriptor *field = it->second; local
214 const FieldDescriptor *field = it->second; local
229 const FieldDescriptor *field = it->second; local
291 const FieldDescriptor *field = atom->field(j); local
304 const FieldDescriptor *field = it->second; local
[all...]
H A Dtest_collation.cpp58 /** Expects that the provided atom has no enum values for any field. */
61 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
62 field != atom->fields.end(); field++) { \
63 EXPECT_TRUE(field->enumValues.empty()); \
67 /** Expects that exactly one specific field has expected enum values. */
70 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
71 field != atom->fields.end(); field++) { \
72 if (field
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
H A DFieldProcessor.kt35 // pass only if this is processed as a child of Embedded field
85 val field = Field(name = name,
96 val adapter = context.typeAdapterStore.findColumnTypeAdapter(field.type,
97 field.affinity)
98 field.statementBinder = adapter
99 field.cursorValueReader = adapter
100 field.affinity = adapter?.typeAffinity ?: field.affinity
101 context.checker.check(adapter != null, field.element,
105 field
[all...]
H A DPojoProcessor.kt124 .groupBy { field ->
126 PROCESSED_ANNOTATIONS.count { field.hasAnnotation(it) } < 2, field,
129 if (field.hasAnnotation(Embedded::class)) {
131 } else if (field.hasAnnotation(Relation::class)) {
213 assignGetter(it.field, getterCandidates)
214 assignSetter(it.field, setterCandidates, constructor)
218 assignGetter(it.field, getterCandidates)
219 assignSetter(it.field, setterCandidates, constructor)
254 val embeddedMap = embedded.associateBy { it.field
[all...]
/frameworks/base/libs/services/src/os/
H A DStatsDimensionsValue.cpp33 StatsDimensionsValue::StatsDimensionsValue(int32_t field, String16 value) : argument
34 mField(field),
38 StatsDimensionsValue::StatsDimensionsValue(int32_t field, int32_t value) : argument
39 mField(field),
43 StatsDimensionsValue::StatsDimensionsValue(int32_t field, int64_t value) : argument
44 mField(field),
48 StatsDimensionsValue::StatsDimensionsValue(int32_t field, bool value) : argument
49 mField(field),
53 StatsDimensionsValue::StatsDimensionsValue(int32_t field, float value) : argument
54 mField(field),
58 StatsDimensionsValue(int32_t field, vector<StatsDimensionsValue> value) argument
[all...]
/frameworks/base/libs/services/include/android/os/
H A DStatsDimensionsValue.h33 StatsDimensionsValue(int32_t field, String16 value);
34 StatsDimensionsValue(int32_t field, int32_t value);
35 StatsDimensionsValue(int32_t field, int64_t value);
36 StatsDimensionsValue(int32_t field, bool value);
37 StatsDimensionsValue(int32_t field, float value);
38 StatsDimensionsValue(int32_t field, std::vector<StatsDimensionsValue> value);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneStateListenerTest.java95 Field field = PhoneStateListener.class.getDeclaredField("callback");
96 field.setAccessible(true);
103 ((IPhoneStateListener) field.get(mPhoneStateListenerUT)).onServiceStateChanged(ss);
112 Field field = PhoneStateListener.class.getDeclaredField("callback");
113 field.setAccessible(true);
118 ((IPhoneStateListener) field.get(mPhoneStateListenerUT)).onUserMobileDataStateChanged(true);
126 Field field = PhoneStateListener.class.getDeclaredField("callback");
127 field.setAccessible(true);
137 ((IPhoneStateListener) field.get(mPhoneStateListenerUT))
/frameworks/base/cmds/statsd/src/
H A DFieldValue.h41 // Get the encoded field for a leaf with a [field] number at depth 0;
42 inline int32_t getSimpleField(size_t field) { argument
43 return ((int32_t)field << 8 * 2);
47 * Field is a wrapper class for 2 integers that represents the field of a log element in its Atom
61 * When we read through the list, we will encode each field in a 32bit integer.
65 * The first 8 bits are the depth of the field. for example, the uid 1000 has depth 2.
67 * The first bit of each 8bits field is reserved to mark if the item is the last item at that level
96 Field(int32_t tag, int32_t field) : mTag(tag), mField(field){}; argument
98 setField(int32_t field) argument
137 int32_t field = (mField & 0x00ffffff); local
150 int32_t field = (mField & 0x00ffffff); local
232 int32_t field = (mMask & 0x00ffffff); local
260 getSimpleMatcher(int32_t tag, size_t field) argument
329 FieldValue(const Field& field, const Value& value) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderOperationTest.java388 Field field;
389 field = CLASS_BUILDER.getDeclaredField("mSelectionArgsBackReferences");
390 field.setAccessible(true);
391 field.set(builder, selArgsBackRef);
397 Field field;
398 field = CLASS_BUILDER.getDeclaredField("mValuesBackReferences");
399 field.setAccessible(true);
400 field.set(builder, valuesBackReferences);
406 Field field;
407 field
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DInputPort.java31 * InputPorts may be bound to fields of the Filter. When an input port is bound to a field, Frame
32 * values will be assigned to the field once a Frame is received on that port. The Frame value must
33 * be of a type that is compatible with the field type.
54 public FieldBinding(Field field) { argument
55 mField = field;
69 throw new RuntimeException("Assigning frame " + frame + " to field "
107 * Bind this input port to the specified field.
109 * Use this when you wish to pull frames directly into a field of the filter. This requires
110 * that the input frames can be interpreted as object-based frames of the field's class.
117 * @param field th
121 bindToField(Field field) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFinalPort.java27 public FinalPort(Filter filter, String name, Field field, boolean hasDefault) { argument
28 super(filter, name, field, hasDefault);
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduHeaders.java98 * X-Mms-Message-Type field types.
137 * field types.
145 * field type components.
151 * X-Mms-MMS-Version field types.
162 * From field type components.
183 * MM-Flags field type components.
190 * X-Mms-Message-Class field types.
203 * X-Mms-Priority field types.
210 * X-Mms-Response-Status field types.
245 * X-Mms-Retrieve-Status field type
342 getOctet(int field) argument
358 setOctet(int value, int field) argument
502 getTextString(int field) argument
515 setTextString(byte[] value, int field) argument
551 getEncodedStringValue(int field) argument
562 getEncodedStringValues(int field) argument
581 setEncodedStringValue(EncodedStringValue value, int field) argument
618 setEncodedStringValues(EncodedStringValue[] value, int field) argument
651 appendEncodedStringValue(EncodedStringValue value, int field) argument
683 getLongInteger(int field) argument
698 setLongInteger(long value, int field) argument
[all...]

Completed in 917 milliseconds

12345678