/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/ |
D | TcpInfoTest.java | 178 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/Bluetooth/tools/pdl/src/ |
D | ast.rs | 84 pub enum Field { enum 145 fields: Vec<Field>, 153 fields: Vec<Field>, 157 Group { id: String, loc: SourceRange, fields: Vec<Field> }, 263 impl Field { impl 266 Field::Checksum { loc, .. } in loc() 267 | Field::Padding { loc, .. } in loc() 268 | Field::Size { loc, .. } in loc() 269 | Field::Count { loc, .. } in loc() 270 | Field::Body { loc, .. } in loc() [all …]
|
D | lint.rs | 26 struct FieldPath<'d>(Vec<&'d Field>); 52 groups: HashMap<String, &'d Field>, 66 all_fields: HashMap<String, &'d Field>, 140 fn insert(&mut self, field: &'d Field, result: &mut LintDiagnostics) { in insert() argument 142 Field::Checksum { loc, field_id, .. } => { in insert() 160 Field::Padding { .. } | Field::Reserved { .. } | Field::Fixed { .. } => None, in insert() 162 Field::Size { loc, field_id, .. } | Field::Count { loc, field_id, .. } => { in insert() 178 Field::Body { loc, .. } | Field::Payload { loc, .. } => { in insert() 195 Field::Array { loc, id, .. } in insert() 196 | Field::Scalar { loc, id, .. } in insert() [all …]
|
D | parser.rs | 319 fn parse_field(node: Node<'_>, context: &Context) -> Result<ast::Field, String> { in parse_field() argument 326 ast::Field::Checksum { loc, field_id } in parse_field() 330 ast::Field::Padding { loc, width } in parse_field() 341 ast::Field::Size { loc, field_id, width } in parse_field() 346 ast::Field::Count { loc, field_id, width } in parse_field() 348 Rule::body_field => ast::Field::Body { loc }, in parse_field() 351 ast::Field::Payload { loc, size_modifier } in parse_field() 356 ast::Field::Fixed { loc, enum_id, tag_id, width, value } in parse_field() 360 ast::Field::Reserved { loc, width } in parse_field() 378 ast::Field::Array { loc, id, type_id, width, size, size_modifier } in parse_field() [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.h | 27 struct Field; 81 struct Field { struct 87 Field() {} in Field() function 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() function 168 inline bool operator==(const Field& that) const { argument 172 inline bool operator!=(const Field& that) const { 176 bool operator<(const Field& that) const { 222 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
D | MimeHeader.java | 48 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/services/Car/cpp/watchdog/server/tests/ |
D | IoPerfCollectionTest.cpp | 51 using ::testing::Field; 64 return ExplainMatchResult(AllOf(Field("bytes", &UserPackageStats::IoStats::bytes, 66 Field("fsync", &UserPackageStats::IoStats::fsync, 72 return ExplainMatchResult(AllOf(Field("comm", &UserPackageStats::ProcStats::ProcessValue::comm, 74 Field("value", 86 return ExplainMatchResult(AllOf(Field("value", &UserPackageStats::ProcStats::value, 88 Field("topNProcesses", 95 const auto uidMatcher = Field("uid", &UserPackageStats::uid, Eq(expected.uid)); 97 Field("genericPackageName", &UserPackageStats::genericPackageName, 104 Field("stats:IoStats", &UserPackageStats::stats, in __anon6abe9aed0202() [all …]
|
D | OveruseConfigurationTestUtils.cpp | 33 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/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | DscpPolicyValue.java | 23 import com.android.net.module.util.Struct.Field; 34 @Field(order = 0, type = Type.ByteArray, arraysize = 16) 37 @Field(order = 1, type = Type.ByteArray, arraysize = 16) 40 @Field(order = 2, type = Type.U32) 43 @Field(order = 3, type = Type.UBE16) 46 @Field(order = 4, type = Type.UBE16) 49 @Field(order = 5, type = Type.UBE16) 52 @Field(order = 6, type = Type.U8) 55 @Field(order = 7, type = Type.U8) 58 @Field(order = 8, type = Type.U8, padding = 3)
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioContextToAudioAttributeValidityTest.java | 28 import java.lang.reflect.Field; 42 List<Field> usageFields = getAudioAttributeUsageFields(); in provideParams() 45 for (Field usageField : usageFields) { in provideParams() 84 private static List<Field> getAudioAttributeUsageFields() { in getAudioAttributeUsageFields() 85 Field[] audioAttributesFields = AudioAttributes.class.getDeclaredFields(); in getAudioAttributeUsageFields() 86 List<Field> audioAttributesUsageFields = new ArrayList<>(); in getAudioAttributeUsageFields() 88 for (Field field : audioAttributesFields) { in getAudioAttributeUsageFields() 98 private static boolean isAudioAttributeUsageField(Field field) { in isAudioAttributeUsageField()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpInfo.java | 36 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/Bluetooth/system/gd/dumpsys/internal/ |
D | filter_internal.h | 84 PrivacyLevel FindFieldPrivacyLevel(const reflection::Field& field); 117 bool FilterTypeBool(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy… 118 bool FilterTypeFloat(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privac… 119 bool FilterTypeInteger(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priv… 120 bool FilterTypeLong(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy… 121 bool FilterTypeString(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva… 122 bool FilterTypeStruct(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
|
D | filter_internal.cc | 84 internal::PrivacyLevel internal::FindFieldPrivacyLevel(const reflection::Field& field) { in FindFieldPrivacyLevel() 108 bool internal::FilterTypeBool(const reflection::Field& field, flatbuffers::Table* table, PrivacyLev… in FilterTypeBool() 130 const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy_level) { in FilterTypeInteger() 168 bool internal::FilterTypeFloat(const reflection::Field& field, flatbuffers::Table* table, PrivacyLe… in FilterTypeFloat() 203 bool internal::FilterTypeLong(const reflection::Field& field, flatbuffers::Table* table, PrivacyLev… in FilterTypeLong() 229 bool internal::FilterTypeString(const reflection::Field& field, flatbuffers::Table* table, PrivacyL… in FilterTypeString() 272 bool internal::FilterTypeStruct(const reflection::Field& field, flatbuffers::Table* table, PrivacyL… in FilterTypeStruct()
|
/packages/modules/StatsD/statsd/tests/ |
D | FieldValue_test.cpp | 237 Field field1(10, pos1, 2); in TEST() 238 Field field2(10, pos2, 2); in TEST() 240 Field field3(10, pos3, 2); in TEST() 241 Field field4(10, pos4, 0); in TEST() 402 Field field1(atomId, pos1, /*depth=*/2); in TEST() 403 Field field2(atomId, pos2, /*depth=*/2); in TEST() 404 Field field3(atomId, pos3, /*depth=*/2); in TEST() 405 Field field4(atomId, pos4, /*depth=*/2); in TEST() 406 Field field5(atomId, pos5, /*depth=*/0); in TEST() 451 Field field1(10, pos1, 2); in TEST() [all …]
|
D | metadata_util_test.cpp | 34 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()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | StatsMapValue.java | 20 import com.android.net.module.util.Struct.Field; 27 @Field(order = 0, type = Type.U63) 30 @Field(order = 1, type = Type.U63) 33 @Field(order = 2, type = Type.U63) 36 @Field(order = 3, type = Type.U63)
|
D | StatsMapKey.java | 20 import com.android.net.module.util.Struct.Field; 27 @Field(order = 0, type = Type.U32) 30 @Field(order = 1, type = Type.U32) 33 @Field(order = 2, type = Type.U32) 36 @Field(order = 3, type = Type.U32)
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | Tether6Value.java | 29 @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)
|
D | TetherDownstream6Key.java | 24 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/services/Car/car-lib/src/com/android/car/internal/util/ |
D | DebugUtils.java | 19 import java.lang.reflect.Field; 39 for (Field field : clazz.getDeclaredFields()) { in valueToString() 64 for (Field field : clazz.getDeclaredFields()) { in flagsToString() 106 for (Field field : clazz.getDeclaredFields()) { in constantToString() 120 private static String constNameWithoutPrefix(String prefix, Field field) { in constNameWithoutPrefix()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | EntrySchema.java | 25 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/modules/StatsD/statsd/src/logd/ |
D | LogEvent.cpp | 55 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent() 56 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent() 57 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent() 58 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent() 60 FieldValue(Field(mTagId, getSimpleField(5)), Value((int)requiresLowLatencyMonitor))); in LogEvent() 61 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent() 62 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent() 63 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent() 73 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent() 76 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent() [all …]
|
/packages/services/Car/car-test-lib/src/android/car/test/util/ |
D | AnnotationHelper.java | 23 import java.lang.reflect.Field; 40 Field[] fields = Class.forName(className).getDeclaredFields(); in checkForAnnotation() 42 Field field = fields[j]; in checkForAnnotation() 94 private static boolean containsAddedInAnnotation(Field field, Class... annotationClasses) { in containsAddedInAnnotation() 115 private static void validatedAddInOrBeforeAnnotation(Field field) { in validatedAddInOrBeforeAnnotation()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | NotificationCompatUtils.java | 22 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 =
|
/packages/modules/Bluetooth/system/stack/test/ |
D | ble_advertiser_test.cc | 34 using ::testing::Field; 267 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F() 285 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F() 406 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F() 418 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F() 501 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in StartAdvertisingSetWithSpecificAddressType() 737 Contains(Field(&SetEnableData::max_extended_advertising_events, in TEST_F() 782 Contains(Field(&SetEnableData::max_extended_advertising_events, in TEST_F() 799 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F() 888 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F() [all …]
|