Home
last modified time | relevance | path

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

1234567

/development/tools/winscope/src/trace/
Dframe_map_test.ts21 let map: FrameMap; variable
28 map = new FrameMapBuilder(5, 7)
37 expect(map.getFramesRange({start: -2, end: -1})).toEqual(undefined);
38 expect(map.getFramesRange({start: 0, end: 1})).toEqual(undefined);
39 expect(map.getFramesRange({start: 5, end: 6})).toEqual(undefined);
40 expect(map.getFramesRange({start: 1, end: 1})).toEqual(undefined);
43 expect(map.getFramesRange({start: 0, end: 6})).toEqual({start: 1, end: 7});
44 expect(map.getFramesRange({start: 1, end: 5})).toEqual({start: 1, end: 7});
47 expect(map.getFramesRange({start: 1, end: 4})).toEqual({start: 1, end: 2});
48 expect(map.getFramesRange({start: 1, end: 2})).toEqual({start: 1, end: 2});
[all …]
/development/tools/ota_analysis/src/services/
Dmap_parser.js43 let /** Array<String> */ map = []
46 for (let i = 0; i < totalLength; i++) map[i] = 'unknown'
68 InsertMap(map, elements[0], left, right)
71 this.maps.set(partitionName, map)
74 this.maps.set(partitionName, map)
86 let /** Array<String> */ map = this.maps.get(partitionName)
88 names.push(queryMap(map,
103 function InsertMap(map, name, left, right) { argument
105 map[i] = name
115 function queryMap(map, left, right) { argument
[all …]
Decharts_data.js61 data: Array.from(this.statisticData).map((pair) => {
86 function trimMap(map, maximumEntries) { argument
87 if (map.size <= maximumEntries) return map
92 for (let [key, value] of map) {
103 for (let [key, value] of map) {
Dpayload_composition.js18 function addNumberToMap(map, key, value) { argument
19 if (!map.get(key)) {
20 map.set(key, 0)
22 map.set(key, map.get(key) + value)
/development/tools/winscope/src/parsers/input_method/
Dhierarchy_tree_builder_input_method.ts27 const map = children.reduce((map, child) => { constant
34 map.set(this.childIdentifier, [childNode]);
35 return map;
37 return map;
/development/tools/winscope/src/parsers/surface_flinger/
Dhierarchy_tree_builder_sf.ts28 const map = layers.reduce((map, layer) => { constant
39 const curr = map.get(layerId);
53 map.set(layerId, [layerNode]);
55 return map;
57 return map;
/development/tools/winscope/src/parsers/view_capture/legacy/
Dhierarchy_tree_builder_vc.ts26 const map = views.reduce((map, view) => { constant
36 map.set(hashcode, [viewNode]);
37 return map;
39 return map;
/development/tools/winscope/src/parsers/view_capture/perfetto/
Dhierarchy_tree_builder_vc.ts26 const map = views.reduce((map, view) => { constant
34 map.set(id, [viewNode]);
35 return map;
37 return map;
/development/tools/winscope/src/parsers/window_manager/
Dhierarchy_tree_builder_wm.ts27 const map = containers.reduce((map, container) => { constant
37 map.set(token, [containerNode]);
38 return map;
40 return map;
/development/vndk/tools/header-checker/src/utils/
Dheader_abi_util.h40 const std::map<K, T> &old_elements_map, in FindRemovedElements()
41 const std::map<K, T> &new_elements_map) { in FindRemovedElements()
55 inline void AddToMap(std::map<K, T> *dst, Iterable &src, KeyGetter get_key, in AddToMap()
71 const std::map<K, T> &old_elements_map, in FindCommonElements()
72 const std::map<K, T> &new_elements_map) { in FindCommonElements()
74 typename std::map<K, T>::const_iterator old_element = in FindCommonElements()
76 typename std::map<K, T>::const_iterator new_element = in FindCommonElements()
Dconfig_file.cpp32 static std::map<std::string, bool> LoadFlags(const Json::Value &section) { in LoadFlags()
33 std::map<std::string, bool> map; in LoadFlags() local
36 map[flag_keys] = section["flags"][flag_keys].asBool(); in LoadFlags()
39 return map; in LoadFlags()
Dcommand_line_utils.cpp38 llvm::StringMap<llvm::cl::Option *> &map = llvm::cl::getRegisteredOptions(); in HideIrrelevantCommandLineOptions() local
39 for (llvm::StringMapEntry<llvm::cl::Option *> &p : map) { in HideIrrelevantCommandLineOptions()
/development/tools/winscope/src/viewers/viewer_transactions/
Dpresenter_test.ts135 assertDefined(outputUiData).entries.map((entry) => entry.transactionId),
149 assertDefined(outputUiData).entries.map((entry) => entry.vsyncId),
156 assertDefined(outputUiData).entries.map((entry) => entry.vsyncId),
164 new Set(assertDefined(outputUiData).entries.map((entry) => entry.pid)),
171 new Set(assertDefined(outputUiData).entries.map((entry) => entry.pid)),
176 new Set(assertDefined(outputUiData).entries.map((entry) => entry.pid)),
183 new Set(assertDefined(outputUiData).entries.map((entry) => entry.uid)),
188 new Set(assertDefined(outputUiData).entries.map((entry) => entry.uid)),
193 new Set(assertDefined(outputUiData).entries.map((entry) => entry.uid)),
200 new Set(assertDefined(outputUiData).entries.map((entry) => entry.type)),
[all …]
/development/apps/Development/src/com/android/development/
DMediaScannerActivity.java177 final ContentValues map = mValues[i]; in addAlbum() local
178 map.put(MediaStore.MediaColumns.DATA, in addAlbum()
180 map.put(MediaStore.MediaColumns.TITLE, in addAlbum()
182 map.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); in addAlbum()
184 map.put(Audio.Media.ARTIST, artist); in addAlbum()
185 map.put("album_artist", albumArtist); in addAlbum()
186 map.put(Audio.Media.ALBUM, albumName); in addAlbum()
187 map.put(Audio.Media.TRACK, i + 1); in addAlbum()
188 map.put(Audio.Media.DURATION, 4*60*1000); in addAlbum()
189 map.put(Audio.Media.IS_MUSIC, 1); in addAlbum()
[all …]
/development/tools/cargo_embargo/src/
Dbp.rs29 pub map: BTreeMap<String, BpValue>, field
73 BpProperties { map: BTreeMap::new(), raw_block: None } in new()
77 match self.map.get(k).unwrap() { in get_string()
84 self.map.insert(k.to_string(), v.into()); in set()
95 self.map.entry(k.to_string()).or_insert_with(|| BpValue::Object(BpProperties::new())); in object()
147 let mut props: Vec<(&String, &BpValue)> = self.map.iter().collect(); in write()
215 BpValue::List(x.into_iter().map(|x| x.into()).collect()) in from()
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryDatabase.java70 HashMap<String,String> map = new HashMap<String,String>(); in buildColumnMap() local
71 map.put(KEY_WORD, KEY_WORD); in buildColumnMap()
72 map.put(KEY_DEFINITION, KEY_DEFINITION); in buildColumnMap()
73 map.put(BaseColumns._ID, "rowid AS " + in buildColumnMap()
75 map.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, "rowid AS " + in buildColumnMap()
77 map.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, "rowid AS " + in buildColumnMap()
79 return map; in buildColumnMap()
/development/vndk/tools/header-checker/src/repr/json/
Dconverter.h85 static const std::map<AccessSpecifierIR, std::string> access_ir_to_json{
91 static const std::map<RecordTypeIR::RecordKind, std::string>
98 static const std::map<VTableComponentIR::Kind, std::string>
110 static const std::map<ElfSymbolIR::ElfSymbolBinding, std::string>
119 static inline const V &FindInMap(const std::map<K, V> &m, const K &k, in FindInMap()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java386 public Bundle saveState(Bundle map) { in saveState() argument
388 if (map != null) { in saveState()
389 map.putInt(KEY_DIFFICULTY, Integer.valueOf(mDifficulty)); in saveState()
390 map.putDouble(KEY_X, Double.valueOf(mX)); in saveState()
391 map.putDouble(KEY_Y, Double.valueOf(mY)); in saveState()
392 map.putDouble(KEY_DX, Double.valueOf(mDX)); in saveState()
393 map.putDouble(KEY_DY, Double.valueOf(mDY)); in saveState()
394 map.putDouble(KEY_HEADING, Double.valueOf(mHeading)); in saveState()
395 map.putInt(KEY_LANDER_WIDTH, Integer.valueOf(mLanderWidth)); in saveState()
396 map.putInt(KEY_LANDER_HEIGHT, Integer in saveState()
[all …]
/development/tools/external_crates/crate_health/src/
Dversion_match.rs38 self.dest.map(|dest| CompatibleVersionPair { source: self.source, dest }) in to_compatible()
86 self.get_compatible_version(source).map(|nv| self.dest.map_field().get(nv).unwrap()) in get_compatible_item()
105 .map(|(nv, source)| VersionPair { source, dest: self.get_compatible_item(nv) }) in pairs()
192 let results = generate_android_bps(self.compatible_and_eligible().map(|pair| pair.dest))?; in generate_android_bps()
320 version_match.superfluous().map(|(nv, _dest)| nv), in test_version_map()
325 version_match.pairs().map(|x| x.source), in test_version_map()
329 version_match.pairs().map(|x| x.dest), in test_version_map()
340 version_match.compatible_pairs().map(|x| x.source), in test_version_map()
344 version_match.compatible_pairs().map(|x| x.dest), in test_version_map()
411 assert_equal(version_match.ineligible().map(|m| m.name.as_str()), ["ineligible"]); in test_migratability()
[all …]
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DDeviceOwnerFragment.java318 HashMap<String, String> map = new HashMap<>(); in createData() local
319 map.put(KEY_PACKAGE_NAME, info.activityInfo.packageName); in createData()
320 map.put(KEY_ACTIVITY_NAME, info.activityInfo.name); in createData()
321 data.add(map); in createData()
328 HashMap<String, String> map = (HashMap<String, String>) getItem(position); in getComponentName() local
329 return new ComponentName(map.get(KEY_PACKAGE_NAME), map.get(KEY_ACTIVITY_NAME)); in getComponentName()
/development/samples/Snake/src/com/example/android/snake/
DSnakeView.java207 Bundle map = new Bundle(); in saveState() local
209 map.putIntArray("mAppleList", coordArrayListToArray(mAppleList)); in saveState()
210 map.putInt("mDirection", Integer.valueOf(mDirection)); in saveState()
211 map.putInt("mNextDirection", Integer.valueOf(mNextDirection)); in saveState()
212 map.putLong("mMoveDelay", Long.valueOf(mMoveDelay)); in saveState()
213 map.putLong("mScore", Long.valueOf(mScore)); in saveState()
214 map.putIntArray("mSnakeTrail", coordArrayListToArray(mSnakeTrail)); in saveState()
216 return map; in saveState()
DSnake.java70 Bundle map = savedInstanceState.getBundle(ICICLE_KEY); in onCreate() local
71 if (map != null) { in onCreate()
72 mSnakeView.restoreState(map); in onCreate()
/development/scripts/
Dget_rust_pkg.py234 all_base_names = set(map(lambda t: t[0], tuples))
242 map(lambda t: (t[0].difference(external_names), t[1]), new_tuples))
254 first_group = list(map(lambda t: t[1], first_group))
258 base_names = set(map(lambda t: t[0], first_group))
260 map(lambda t: (t[0].difference(base_names), t[1]), other_group))
267 list(map(lambda t: t[1][1], other_group))))
269 other_group = list(map(lambda t: t[1], other_group))
355 all_deps = dict(map(lambda t: (t[0], t), found_pkgs))
356 core_pkgs = set(map(lambda t: t[0], found_pkgs))
382 found_pkgs = list(map(lambda p: all_deps[p], core_pkgs))
[all …]
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduParser.java784 HashMap<Integer, Object> map = in parseHeaders() local
787 parseContentType(pduDataStream, map); in parseHeaders()
805 mStartParam = (byte[]) map.get(PduPart.P_START); in parseHeaders()
808 mTypeParam= (byte[]) map.get(PduPart.P_TYPE); in parseHeaders()
854 HashMap<Integer, Object> map = new HashMap<Integer, Object>(); in parseParts() local
855 byte[] contentType = parseContentType(pduDataStream, map); in parseParts()
863 byte[] name = (byte[]) map.get(PduPart.P_NAME); in parseParts()
869 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts()
1341 HashMap<Integer, Object> map, Integer length) { in parseContentTypeParams() argument
1396 map.put(PduPart.P_TYPE, type); in parseContentTypeParams()
[all …]
/development/tools/winscope/src/app/components/
Dtrace_view_component.ts163 .map((viewer) => viewer.getViews())
166 .map((view) => {
186 .map((viewer) => viewer.getViews())

1234567