Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 915) sorted by relevance

12345678910>>...37

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages()
53 var clone = map.Clone(); in Clone_ClonesMessages()
54 map["x"].C = 30; in Clone_ClonesMessages()
68 var map = new MapField<int, T>(); in TestNullValues()
70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
72 map.Add(1, nonNullValue); in TestNullValues()
73 map[1] = nonNullValue; in TestNullValues()
79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java137 for (SmallSortedMap<Integer, Integer> map : allMaps) { in runPutAndGetTest()
138 assertEquals(numElements, map.size()); in runPutAndGetTest()
140 assertEquals(new Integer(i + 1), map.get(i)); in runPutAndGetTest()
150 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testReplacingPut() local
152 assertNull(map.put(i, i + 1)); in testReplacingPut()
153 assertNull(map.remove(i + 1)); in testReplacingPut()
156 assertEquals(new Integer(i + 1), map.put(i, i + 2)); in testReplacingPut()
161 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testRemove() local
163 assertNull(map.put(i, i + 1)); in testRemove()
164 assertNull(map.remove(i + 1)); in testRemove()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_lite_unittest.proto42 map<int32 , int32 > map_int32_int32 = 1;
43 map<int64 , int64 > map_int64_int64 = 2;
44 map<uint32 , uint32 > map_uint32_uint32 = 3;
45 map<uint64 , uint64 > map_uint64_uint64 = 4;
46 map<sint32 , sint32 > map_sint32_sint32 = 5;
47 map<sint64 , sint64 > map_sint64_sint64 = 6;
48 map<fixed32 , fixed32 > map_fixed32_fixed32 = 7;
49 map<fixed64 , fixed64 > map_fixed64_fixed64 = 8;
50 map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
51 map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
[all …]
Dmap_unittest.proto45 map<int32 , int32 > map_int32_int32 = 1;
46 map<int64 , int64 > map_int64_int64 = 2;
47 map<uint32 , uint32 > map_uint32_uint32 = 3;
48 map<uint64 , uint64 > map_uint64_uint64 = 4;
49 map<sint32 , sint32 > map_sint32_sint32 = 5;
50 map<sint64 , sint64 > map_sint64_sint64 = 6;
51 map<fixed32 , fixed32 > map_fixed32_fixed32 = 7;
52 map<fixed64 , fixed64 > map_fixed64_fixed64 = 8;
53 map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
54 map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
[all …]
Dmap_unittest_proto3.proto51 map<int32 , int32 > map_int32_int32 = 1;
52 map<int64 , int64 > map_int64_int64 = 2;
53 map<uint32 , uint32 > map_uint32_uint32 = 3;
54 map<uint64 , uint64 > map_uint64_uint64 = 4;
55 map<sint32 , sint32 > map_sint32_sint32 = 5;
56 map<sint64 , sint64 > map_sint64_sint64 = 6;
57 map<fixed32 , fixed32 > map_fixed32_fixed32 = 7;
58 map<fixed64 , fixed64 > map_fixed64_fixed64 = 8;
59 map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
60 map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
[all …]
Dmap_test_util.cc994 std::map<int32, int32> map; in ExpectMapFieldsSetViaReflection() local
995 map[0] = 0; in ExpectMapFieldsSetViaReflection()
996 map[1] = 1; in ExpectMapFieldsSetViaReflection()
1005 EXPECT_EQ(map[key], val); in ExpectMapFieldsSetViaReflection()
1013 std::map<int64, int64> map; in ExpectMapFieldsSetViaReflection() local
1014 map[0] = 0; in ExpectMapFieldsSetViaReflection()
1015 map[1] = 1; in ExpectMapFieldsSetViaReflection()
1024 EXPECT_EQ(map[key], val); in ExpectMapFieldsSetViaReflection()
1032 std::map<uint32, uint32> map; in ExpectMapFieldsSetViaReflection() local
1033 map[0] = 0; in ExpectMapFieldsSetViaReflection()
[all …]
Dmap_proto2_unittest.proto55 map<int32, Proto2MapEnum> known_map_field = 101;
56 map<int32, Proto2MapEnum> unknown_map_field = 102;
60 map<int32, Proto2MapEnumPlusExtra> known_map_field = 101;
61 map<int32, Proto2MapEnumPlusExtra> unknown_map_field = 102;
65 map<int32, protobuf_unittest_import.ImportEnumForMap> import_enum_amp = 1;
69 map<int32, int32> m = 1;
74 map<int32, TestIntIntMap> m_int32 = 1;
75 map<int64, TestIntIntMap> m_int64 = 2;
76 map<uint32, TestIntIntMap> m_uint32 = 3;
77 map<uint64, TestIntIntMap> m_uint64 = 4;
[all …]
Dunittest_well_known_types.proto22 // map handle different wrappers in different ways.
92 // A map field for each well-known type. We only
93 // need to worry about the value part of the map being the
94 // well-known types, as messages can't be map keys.
96 map<int32,google.protobuf.Any> any_field = 1;
97 map<int32,google.protobuf.Api> api_field = 2;
98 map<int32,google.protobuf.Duration> duration_field = 3;
99 map<int32,google.protobuf.Empty> empty_field = 4;
100 map<int32,google.protobuf.FieldMask> field_mask_field = 5;
101 map<int32,google.protobuf.SourceContext> source_context_field = 6;
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.h47 static bool map(C2Config::bitrate_mode_t, int32_t*);
48 static bool map(int32_t, C2Config::bitrate_mode_t*);
51 static bool map(C2Config::pcm_encoding_t, int32_t*);
52 static bool map(int32_t, C2Config::pcm_encoding_t*);
55 static bool map(C2Config::picture_type_t, int32_t*);
56 static bool map(int32_t, C2Config::picture_type_t*);
59 static bool map(C2Color::range_t, int32_t*);
60 static bool map(int32_t, C2Color::range_t*);
61 static bool map(C2Color::primaries_t, C2Color::matrix_t, int32_t*);
62 static bool map(int32_t, C2Color::primaries_t*, C2Color::matrix_t*);
[all …]
DCodec2Mapper.cpp443 return sAacProfiles.map(from, to); in simpleMap()
446 return sAacProfiles.map(from, to); in simpleMap()
452 return sAvcLevels.map(from, to); in simpleMap()
455 return sAvcLevels.map(from, to); in simpleMap()
458 return sAvcProfiles.map(from, to); in simpleMap()
461 return sAvcProfiles.map(from, to); in simpleMap()
467 return sDolbyVisionLevels.map(from, to); in simpleMap()
470 return sDolbyVisionLevels.map(from, to); in simpleMap()
473 return sDolbyVisionProfiles.map(from, to); in simpleMap()
476 return sDolbyVisionProfiles.map(from, to); in simpleMap()
[all …]
/frameworks/base/packages/InputDevices/res/raw/
Dkeyboard_layout_english_us_dvorak.kcm23 map key 12 LEFT_BRACKET
24 map key 13 RIGHT_BRACKET
25 map key 16 APOSTROPHE
26 map key 17 COMMA
27 map key 18 PERIOD
28 map key 19 P
29 map key 20 Y
30 map key 21 F
31 map key 22 G
32 map key 23 C
[all …]
Dkeyboard_layout_english_us_workman.kcm23 map key 17 D
24 map key 18 R
25 map key 19 W
26 map key 20 B
27 map key 21 J
28 map key 22 F
29 map key 23 U
30 map key 24 P
31 map key 25 SEMICOLON
32 map key 32 H
[all …]
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp50 NativeKeyCharacterMap(int32_t deviceId, const sp<KeyCharacterMap>& map) : in NativeKeyCharacterMap() argument
51 mDeviceId(deviceId), mMap(map) { in NativeKeyCharacterMap()
73 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, in android_view_KeyCharacterMap_create() local
75 if (!map) { in android_view_KeyCharacterMap_create()
80 reinterpret_cast<jlong>(map)); in android_view_KeyCharacterMap_create()
99 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); in nativeReadFromParcel() local
100 return reinterpret_cast<jlong>(map); in nativeReadFromParcel()
104 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeWriteToParcel() local
107 parcel->writeInt32(map->getDeviceId()); in nativeWriteToParcel()
108 map->getMap()->writeToParcel(parcel); in nativeWriteToParcel()
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_implicit_parameter/
Dstdout.txt.expect52 // int -> FLOAT32 map
54 // int -> INT32 map
56 // int -> QUANT8_ASYMM map
61 // int -> FLOAT32 map
63 // int -> INT32 map
65 // int -> QUANT8_ASYMM map
73 // int -> FLOAT32 map
75 // int -> INT32 map
77 // int -> QUANT8_ASYMM map
82 // int -> FLOAT32 map
[all …]
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
DSessionMap.h53 map.add(key, value); in addValue()
78 return map.size(); in getSize()
92 if (map.size() > index) { in getValueAt()
93 value = map.valueAt(index); in getValueAt()
107 map.removeItem(key); in removeValue()
126 map = objectCopy.map;
131 KeyedVector<int, TValue> map;
152 int size = map.size(); in destroyMap()
155 deleteValue(map.valueAt(i)); in destroyMap()
157 map.clear(); in destroyMap()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DAbUpdateInstaller.java64 Map<Integer, Integer> map = new HashMap<>(); in buildErrorCodesMap() local
65 map.put( in buildErrorCodesMap()
68 map.put( in buildErrorCodesMap()
71 map.put( in buildErrorCodesMap()
76 map.put( in buildErrorCodesMap()
79 map.put( in buildErrorCodesMap()
82 map.put( in buildErrorCodesMap()
85 map.put( in buildErrorCodesMap()
89 map.put( in buildErrorCodesMap()
94 map.put( in buildErrorCodesMap()
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_vts_implicit_parameter/
Dstdout.txt.expect89 // int -> FLOAT32 map
91 // int -> INT32 map
93 // int -> QUANT8_ASYMM map
98 // int -> FLOAT32 map
100 // int -> INT32 map
102 // int -> QUANT8_ASYMM map
110 // int -> FLOAT32 map
112 // int -> INT32 map
114 // int -> QUANT8_ASYMM map
119 // int -> FLOAT32 map
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtilCompatTest.java117 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_EmptyInput() local
118 assertThat(map).isEmpty(); in buildInputMethodsAndSubtypesString_EmptyInput()
123 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleIme() local
124 map.put("ime0", new HashSet<>()); in buildInputMethodsAndSubtypesString_SingleIme()
125 String result = InputMethodAndSubtypeUtilCompat.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleIme()
131 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype() local
132 map.put("ime0", asHashSet("subtype0")); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
133 String result = InputMethodAndSubtypeUtilCompat.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
139 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes() local
140 map.put("ime0", asHashSet("subtype0", "subtype1")); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes()
[all …]
DInputMethodAndSubtypeUtilTest.java115 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_EmptyInput() local
116 assertThat(map).isEmpty(); in buildInputMethodsAndSubtypesString_EmptyInput()
121 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleIme() local
122 map.put("ime0", new HashSet<>()); in buildInputMethodsAndSubtypesString_SingleIme()
123 String result = InputMethodAndSubtypeUtil.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleIme()
129 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype() local
130 map.put("ime0", asHashSet("subtype0")); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
131 String result = InputMethodAndSubtypeUtil.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
137 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes() local
138 map.put("ime0", asHashSet("subtype0", "subtype1")); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes()
[all …]
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java122 ArrayMap<String,HealthStatsWriter> map = mStatsValues[index]; in addStats() local
123 if (map == null) { in addStats()
124 map = mStatsValues[index] = new ArrayMap<String,HealthStatsWriter>(1); in addStats()
126 map.put(name, value); in addStats()
137 ArrayMap<String,TimerStat> map = mTimersValues[index]; in addTimers() local
138 if (map == null) { in addTimers()
139 map = mTimersValues[index] = new ArrayMap<String,TimerStat>(1); in addTimers()
141 map.put(name, value); in addTimers()
150 ArrayMap<String,Long> map = mMeasurementsValues[index]; in addMeasurements() local
151 if (map == null) { in addMeasurements()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h65 const android::ResTable_map_entry* map);
69 const android::ResTable_map_entry* map);
73 const android::ResTable_map_entry* map);
77 const android::ResTable_map_entry* map);
81 const android::ResTable_map_entry* map);
115 std::map<ResourceId, ResourceName> id_index_;
127 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin() argument
128 return (const ResTable_map*)((const uint8_t*)map + ::aapt::util::DeviceToHost32(map->size)); in begin()
131 inline const ResTable_map* end(const ResTable_map_entry* map) { in end() argument
132 return begin(map) + aapt::util::DeviceToHost32(map->count); in end()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/tests/
Dgenerated_code.proto44 map<int32, string> map_int32_string = 61;
45 map<int64, string> map_int64_string = 62;
46 map<uint32, string> map_uint32_string = 63;
47 map<uint64, string> map_uint64_string = 64;
48 map<bool, string> map_bool_string = 65;
49 map<string, string> map_string_string = 66;
50 map<string, TestMessage> map_string_msg = 67;
51 map<string, TestEnum> map_string_enum = 68;
52 map<string, int32> map_string_int32 = 69;
53 map<string, bool> map_string_bool = 70;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ruby/
Druby_generated_code.proto44 map<int32, string> map_int32_string = 61;
45 map<int64, string> map_int64_string = 62;
46 map<uint32, string> map_uint32_string = 63;
47 map<uint64, string> map_uint64_string = 64;
48 map<bool, string> map_bool_string = 65;
49 map<string, string> map_string_string = 66;
50 map<string, TestMessage> map_string_msg = 67;
51 map<string, TestEnum> map_string_enum = 68;
52 map<string, int32> map_string_int32 = 69;
53 map<string, bool> map_string_bool = 70;
/frameworks/base/core/tests/coretests/src/android/util/
DArrayMapTest.java31 ArrayMap<String, String> map = new ArrayMap<>(); field in ArrayMapTest
49 while (map != null) { in testConcurrentModificationException()
51 map.put(String.format("key %d", i++), "B_DONT_DO_THAT"); in testConcurrentModificationException()
60 + " size=" + (map == null ? "??" : String.valueOf(map.size())) + "]"); in testConcurrentModificationException()
70 map.clear(); in testConcurrentModificationException()
82 + i + " size=" + map.size() + "]"); in testConcurrentModificationException()
85 map = null; // will stop other thread in testConcurrentModificationException()
96 map.put(String.format("key %d", i++), "B_DONT_DO_THAT"); in testNonConcurrentAccesses()
101 map.clear(); in testNonConcurrentAccesses()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
Dunittest_runtime_proto3.proto101 // Some token map cases, too many combinations to list them all.
102 map<int32 , int32 > map_int32_int32 = 70;
103 map<int64 , int64 > map_int64_int64 = 71;
104 map<uint32 , uint32 > map_uint32_uint32 = 72;
105 map<uint64 , uint64 > map_uint64_uint64 = 73;
106 map<sint32 , sint32 > map_sint32_sint32 = 74;
107 map<sint64 , sint64 > map_sint64_sint64 = 75;
108 map<fixed32 , fixed32 > map_fixed32_fixed32 = 76;
109 map<fixed64 , fixed64 > map_fixed64_fixed64 = 77;
110 map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 78;
[all …]

12345678910>>...37