Home
last modified time | relevance | path

Searched refs:Field (Results 1 – 25 of 106) sorted by relevance

12345

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpInfoTest.java178 private Map<TcpInfo.Field, Number> makeShortTestTcpInfoHash() { in makeShortTestTcpInfoHash()
179 final Map<TcpInfo.Field, Number> info = new LinkedHashMap<>(); in makeShortTestTcpInfoHash()
180 info.put(TcpInfo.Field.STATE, (byte) 0x01); in makeShortTestTcpInfoHash()
181 info.put(TcpInfo.Field.CASTATE, (byte) 0x00); in makeShortTestTcpInfoHash()
182 info.put(TcpInfo.Field.RETRANSMITS, (byte) 0x00); in makeShortTestTcpInfoHash()
183 info.put(TcpInfo.Field.PROBES, (byte) 0x00); in makeShortTestTcpInfoHash()
184 info.put(TcpInfo.Field.BACKOFF, (byte) 0x00); in makeShortTestTcpInfoHash()
185 info.put(TcpInfo.Field.OPTIONS, (byte) 0x07); in makeShortTestTcpInfoHash()
186 info.put(TcpInfo.Field.WSCALE, (byte) 0x88); in makeShortTestTcpInfoHash()
187 info.put(TcpInfo.Field.DELIVERY_RATE_APP_LIMITED, (byte) 0x00); in makeShortTestTcpInfoHash()
[all …]
/packages/modules/StatsD/statsd/src/
DFieldValue.h27 struct Field;
81 struct Field { struct
87 Field() {} in Field() argument
89 Field(int32_t tag, int32_t pos[], int32_t depth) : mTag(tag) { in Field() argument
93 Field(const Field& from) : mTag(from.getTag()), mField(from.getField()) { in Field() function
96 Field(int32_t tag, int32_t field) : mTag(tag), mField(field){}; in Field() argument
164 inline bool operator==(const Field& that) const { argument
168 inline bool operator!=(const Field& that) const {
172 bool operator<(const Field& that) const {
219 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher()
[all …]
Dmetadata_util.cpp58 metadata::Field* metadataField = metadataFieldValue->mutable_field(); in writeMetricDimensionKeyToMetadataDimensionKey()
66 metadata::Field* metadataField = metadataFieldValue->mutable_field(); in writeMetricDimensionKeyToMetadataDimensionKey()
77 Field field(metadataFieldValue.field().tag(), metadataFieldValue.field().field()); in writeFieldValuesFromMetadata()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTether4Value.java24 import com.android.net.module.util.Struct.Field;
33 @Field(order = 0, type = Type.U32)
37 @Field(order = 1, type = Type.EUI48)
39 @Field(order = 2, type = Type.EUI48)
41 @Field(order = 3, type = Type.UBE16)
44 @Field(order = 4, type = Type.U16)
47 @Field(order = 5, type = Type.ByteArray, arraysize = 16)
50 @Field(order = 6, type = Type.ByteArray, arraysize = 16)
53 @Field(order = 7, type = Type.UBE16)
56 @Field(order = 8, type = Type.UBE16)
[all …]
DTether4Key.java24 import com.android.net.module.util.Struct.Field;
33 @Field(order = 0, type = Type.U32)
36 @Field(order = 1, type = Type.EUI48)
39 @Field(order = 2, type = Type.U8, padding = 1)
42 @Field(order = 3, type = Type.ByteArray, arraysize = 4)
45 @Field(order = 4, type = Type.ByteArray, arraysize = 4)
48 @Field(order = 5, type = Type.UBE16)
51 @Field(order = 6, type = Type.UBE16)
DTetherStatsValue.java20 import com.android.net.module.util.Struct.Field;
28 @Field(order = 0, type = Type.U63)
30 @Field(order = 1, type = Type.U63)
32 @Field(order = 2, type = Type.U63)
34 @Field(order = 3, type = Type.U63)
36 @Field(order = 4, type = Type.U63)
38 @Field(order = 5, type = Type.U63)
DTether6Value.java29 @Field(order = 0, type = Type.S32)
33 @Field(order = 1, type = Type.EUI48)
35 @Field(order = 2, type = Type.EUI48)
37 @Field(order = 3, type = Type.UBE16)
40 @Field(order = 4, type = Type.U16)
DTetherDownstream6Key.java24 import com.android.net.module.util.Struct.Field;
35 @Field(order = 0, type = Type.U32)
38 @Field(order = 1, type = Type.EUI48, padding = 2)
41 @Field(order = 2, type = Type.ByteArray, arraysize = 16)
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeHeader.java48 protected final ArrayList<Field> fields = new ArrayList<Field>();
63 fields.add(new Field(name, value)); in addHeader()
76 for (Field field : fields) { in getHeader()
88 ArrayList<Field> removeFields = new ArrayList<Field>(); in removeHeader()
89 for (Field field : fields) { in removeHeader()
108 for (Field field : fields) { in writeToString()
118 for (Field field : fields) { in writeTo()
126 private static class Field { class in MimeHeader
130 public Field(String name, String value) { in Field() method in MimeHeader.Field
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpInfo.java36 public enum Field { enum in TcpInfo
86 Field(int s) { in Field() method in TcpInfo.Field
93 static final int LOST_OFFSET = getFieldOffset(Field.LOST);
95 static final int RETRANSMITS_OFFSET = getFieldOffset(Field.RETRANSMITS);
97 static final int SEGS_IN_OFFSET = getFieldOffset(Field.SEGS_IN);
99 static final int SEGS_OUT_OFFSET = getFieldOffset(Field.SEGS_OUT);
105 private static int getFieldOffset(@NonNull final Field needle) { in getFieldOffset()
107 for (final Field field : Field.values()) { in getFieldOffset()
117 if (SEGS_IN_OFFSET + Field.SEGS_IN.size > infolen) { in TcpInfo()
/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp158 Field field1(10, pos1, 2); in TEST()
159 Field field2(10, pos2, 2); in TEST()
161 Field field3(10, pos3, 2); in TEST()
162 Field field4(10, pos4, 0); in TEST()
322 Field field1(atomId, pos1, /*depth=*/2); in TEST()
323 Field field2(atomId, pos2, /*depth=*/2); in TEST()
324 Field field3(atomId, pos3, /*depth=*/2); in TEST()
325 Field field4(atomId, pos4, /*depth=*/2); in TEST()
326 Field field5(atomId, pos5, /*depth=*/0); in TEST()
371 Field field1(10, pos1, 2); in TEST()
[all …]
Dmetadata_util_test.cpp34 Field field1(10, pos1, 2); in TEST()
35 Field field2(10, pos2, 2); in TEST()
36 Field field3(10, pos3, 2); in TEST()
37 Field field4(10, pos4, 0); in TEST()
DLogEvent_test.cpp37 Field getField(int32_t tag, const vector<int32_t>& pos, int32_t depth, const vector<bool>& last) { in getField()
38 Field f(tag, (int32_t*)pos.data(), depth); in getField()
104 Field expectedField = getField(100, {1, 1, 1}, 0, {false, false, false}); in TEST()
153 Field expectedField = getField(100, {1, 1, 1}, 0, {false, false, false}); in TEST()
190 Field expectedField = getField(100, {1, 1, 1}, 0, {true, false, false}); in TEST()
219 Field expectedField = getField(100, {1, 1, 1}, 0, {true, false, false}); in TEST()
261 Field expectedField = getField(100, {1, 1, 1}, 2, {true, false, false}); in TEST()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp83 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent()
84 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent()
85 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent()
86 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent()
88 FieldValue(Field(mTagId, getSimpleField(5)), Value((int)requiresLowLatencyMonitor))); in LogEvent()
89 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent()
90 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent()
91 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent()
101 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent()
104 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java25 import java.lang.reflect.Field;
107 Field field = column.field; in cursorToObject()
145 private void setIfNotNull(Field field, Object object, Object value) in setIfNotNull()
158 Field field = column.field; in valuesToObject()
196 Field field = column.field; in objectToValues()
235 Field field = column.field; in toDebugString()
252 Field field = column.field; in toDebugString()
474 Field[] fields = clazz.getDeclaredFields(); // including non-public fields in parseColumnInfo()
477 Field field = fields[i]; in parseColumnInfo()
521 public final Field field;
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp33 using ::testing::Field;
170 return AllOf(Field(&ResourceOveruseConfiguration::componentType, config.componentType), in ResourceOveruseConfigurationMatcher()
171 Field(&ResourceOveruseConfiguration::safeToKillPackages, in ResourceOveruseConfigurationMatcher()
173 Field(&ResourceOveruseConfiguration::vendorPackagePrefixes, in ResourceOveruseConfigurationMatcher()
175 Field(&ResourceOveruseConfiguration::packageMetadata, in ResourceOveruseConfigurationMatcher()
177 Field(&ResourceOveruseConfiguration::resourceSpecificConfigurations, in ResourceOveruseConfigurationMatcher()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DNotificationCompatUtils.java22 import java.lang.reflect.Field;
37 private static final Field FIELD_VISIBILITY_SECRET =
42 private static final Field FIELD_CATEGORY_RECOMMENDATION =
47 private static final Field FIELD_PRIORITY_LOW =
DEditorInfoCompatUtils.java21 import java.lang.reflect.Field;
27 private static final Field FIELD_IME_FLAG_FORCE_ASCII = CompatUtils.getField(
31 private static final Field FIELD_HINT_LOCALES = CompatUtils.getField(
DCompatUtils.java23 import java.lang.reflect.Field;
55 public static Field getField(final Class<?> targetClass, final String name) { in getField()
108 final Field field) { in getFieldValue()
120 public static void setFieldValue(final Object receiver, final Field field, final Object value) { in setFieldValue()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticConstantsTest.java29 import java.lang.reflect.Field;
48 Arrays.stream(clazz.getFields()).forEach((Field field) -> { in dumpClass()
86 static boolean isPublicStaticFinalInt(Field field) { in isPublicStaticFinalInt()
102 CarDiagnosticConstantsTest::isPublicStaticFinalInt).forEach( (Field field) -> { in validateMatch()
115 for (Field field2 : clazz2.getFields()) { in validateMatch()
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DPowerComponentValidityTest.java24 import java.lang.reflect.Field;
35 Field[] carFields = android.car.hardware.power.PowerComponent.class.getFields(); in testSamePowerComponent()
36 Field[] frameworksFields = in testSamePowerComponent()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ipmemorystore/
DNetworkAttributesTest.java33 import java.lang.reflect.Field;
52 final Field[] fieldList = NetworkAttributes.class.getDeclaredFields(); in testTotalWeight()
53 for (final Field field : fieldList) { in testTotalWeight()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/utils/
DMockedServiceManager.java22 import java.lang.reflect.Field;
82 Field field = c.getDeclaredField(instanceName); in replaceInstance()
98 Field field = key.mClass.getDeclaredField(key.mInstName); in restoreInstances()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DMockedServiceManager.java22 import java.lang.reflect.Field;
81 Field field = c.getDeclaredField(instanceName); in replaceInstance()
97 Field field = key.mClass.getDeclaredField(key.mInstName); in restoreInstances()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DJsonMetadataReader.java30 import java.lang.reflect.Field;
139 Field[] sensorIndexFields = sensorIndexClass.getFields(); in readSensorIndexFromJson()
141 for (Field f : sensorIndexFields) { in readSensorIndexFromJson()

12345