Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 116) sorted by relevance

12345

/development/tools/bugreport/src/com/android/bugreport/util/
DLines.java60 final ArrayList<Line> list = new ArrayList<Line>(); in readLines() local
66 list.add(new Line(lineno, text)); in readLines()
69 return new Lines<Line>(list); in readLines()
75 public Lines(ArrayList<? extends Line> list) { in Lines() argument
76 this.mList = list; in Lines()
86 private Lines(ArrayList<? extends Line> list, int min, int max) { in Lines() argument
87 mList = list; in Lines()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DEventScheduler.java156 FastEventQueue list = mEventBuffer.get(event.getTimestamp()); in add() local
157 if (list == null) { in add()
160 list = new FastEventQueue(event); in add()
161 mEventBuffer.put(event.getTimestamp(), list); in add() local
168 list.add(event); in add()
176 FastEventQueue list = mEventBuffer.get(lowestTime); in removeNextEventLocked() local
178 if ((list.size() == 1)) { in removeNextEventLocked()
181 event = list.remove(); in removeNextEventLocked()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DEventScheduler.java156 FastEventQueue list = mEventBuffer.get(event.getTimestamp()); in add() local
157 if (list == null) { in add()
160 list = new FastEventQueue(event); in add()
161 mEventBuffer.put(event.getTimestamp(), list); in add() local
168 list.add(event); in add()
176 FastEventQueue list = mEventBuffer.get(lowestTime); in removeNextEventLocked() local
178 if ((list.size() == 1)) { in removeNextEventLocked()
181 event = list.remove(); in removeNextEventLocked()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/pickers/
DPickerActivity.java61 mList = findViewById(R.id.list); in onCreate()
116 protected void onPostExecute(String[] list) {
117 if (list != null) {
118 mAllItems = list;
128 final ArrayList<String> list = new ArrayList<>(mAllItems.length); in refreshList() local
133 list.add(s); in refreshList()
137 mAdapter.addAll(list); in refreshList()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLinearLayout9.java36 ListView list = (ListView) findViewById(R.id.list); in onCreate() local
37 list.setAdapter(new ArrayAdapter<String>(this, in onCreate()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduHeaders.java563 ArrayList<EncodedStringValue> list = in getEncodedStringValues() local
565 if (null == list) { in getEncodedStringValues()
568 EncodedStringValue[] values = new EncodedStringValue[list.size()]; in getEncodedStringValues()
569 return list.toArray(values); in getEncodedStringValues()
637 ArrayList<EncodedStringValue> list = new ArrayList<EncodedStringValue>(); in setEncodedStringValues() local
639 list.add(value[i]); in setEncodedStringValues()
641 mHeaderMap.put(field, list); in setEncodedStringValues()
666 ArrayList<EncodedStringValue> list = in appendEncodedStringValue() local
668 if (null == list) { in appendEncodedStringValue()
669 list = new ArrayList<EncodedStringValue>(); in appendEncodedStringValue()
[all …]
DEncodedStringValue.java232 ArrayList<EncodedStringValue> list = new ArrayList<EncodedStringValue>(); in extract() local
235 list.add(new EncodedStringValue(values[i])); in extract()
239 int len = list.size(); in extract()
241 return list.toArray(new EncodedStringValue[len]); in extract()
/development/samples/browseable/DirectShare/src/com.example.android.directshare/
DSelectContactActivity.java53 ListView list = (ListView) findViewById(R.id.list); in onCreate() local
54 list.setAdapter(mAdapter); in onCreate()
55 list.setOnItemClickListener(mOnItemClickListener); in onCreate()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader2.java173 ArrayList<RssItem> list = new ArrayList<RssItem>(); in initializeList() local
174 list.add(new RssItem("http://www.sciam.com/xml/sciam.xml", "Scientific American")); in initializeList()
175list.add(new RssItem("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml", "… in initializeList()
176 list.add(new RssItem("http://www.theonion.com/content/feeds/daily.", "The Onion")); in initializeList()
177 list.add(new RssItem("http://feeds.engadget.com/weblogsinc/engadget", "Engadget")); in initializeList()
178 return list; in initializeList()
DMyRssReader3.java177 ArrayList<RssItem> list = new ArrayList<RssItem>(); in initializeList() local
178 list.add(new RssItem("http://www.sciam.com/xml/sciam.xml", "Scientific American")); in initializeList()
179list.add(new RssItem("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml", "… in initializeList()
180 list.add(new RssItem("http://feeds.theonion.com/theonion/daily", "The Onion")); in initializeList()
181 list.add(new RssItem("http://feeds.engadget.com/weblogsinc/engadget", "Engadget")); in initializeList()
182 return list; in initializeList()
/development/tools/winscope/src/cross_tool/
Dorigin_allow_list.ts31 const list = OriginAllowList.getList(mode); constant
33 for (const regex of list) {
/development/python-packages/adb/adb/
D__init__.py45 self, cmd: list[str], stdout: str, stderr: str, exit_code: int
55 def get_devices(adb_path: str = 'adb') -> list[str]:
167 def split_lines(s: str) -> list[str]:
182 def version(adb_path: list[str] | None = None) -> int:
224 self._features: list[str] | None = None
234 def features(self) -> list[str]:
245 def _make_shell_cmd(self, user_cmd: list[str]) -> list[str]:
279 def _simple_call(self, cmd: list[str]) -> str:
284 def shell(self, cmd: list[str]) -> tuple[str, str]:
302 def shell_nocheck(self, cmd: list[str]) -> tuple[int, str, str]:
[all …]
/development/tools/bugreport/src/com/android/bugreport/monkey/
DMonkeyLogParser.java78 ArrayList<Line> list = new ArrayList<Line>(); in extractAnrLines() local
93 list.add(new Line(lineno, line.text)); in extractAnrLines()
101 list.add(new Line(lineno, line.text)); in extractAnrLines()
109 return new Lines<Line>(list); in extractAnrLines()
/development/apps/Development/src/com/android/development/
DPermissionDetails.java95 AppListAdapter(List<PackageInfo> list) { in AppListAdapter() argument
96 mList = list; in AppListAdapter()
143 private void createAppList(List<PackageInfo> list) { in createAppList() argument
144 Log.i(TAG, "list.size=" + list.size()); in createAppList()
145 for (PackageInfo pkg : list) { in createAppList()
148 ListView listView = (ListView)findViewById(android.R.id.list); in createAppList()
149 mAdapter = new AppListAdapter(list); in createAppList()
150 ListView lv= (ListView) findViewById(android.R.id.list); in createAppList()
158 List<PackageInfo> list = mPm.getInstalledPackages(PackageManager.GET_PERMISSIONS); in getAppsUsingPerm() local
160 for (PackageInfo pkg : list) { in getAppsUsingPerm()
DArrayAdapter.java36 public void setSource(List<E> list) { in setSource() argument
37 mList = list; in setSource()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DDeviceOwnerFragment.java177 List<ResolveInfo> list = activity.getPackageManager() in retrieveCurrentSettings() local
179 mAdapter = new LauncherAdapter(activity, list); in retrieveCurrentSettings()
187 for (int i = 0; i < list.size(); ++i) { in retrieveCurrentSettings()
188 if (list.get(i).activityInfo.packageName.equals(packageName)) { in retrieveCurrentSettings()
309 public LauncherAdapter(Context context, List<ResolveInfo> list) { in LauncherAdapter() argument
310 super(context, createData(list), android.R.layout.simple_list_item_1, in LauncherAdapter()
315 private static List<HashMap<String, String>> createData(List<ResolveInfo> list) { in createData() argument
317 for (ResolveInfo info : list) { in createData()
/development/vndk/tools/elfcheck/bpflatten/
Dmain.go54 } else if list, ok := value.(*parser.List); ok {
56 for _, v := range list.Values {
140 var list []string
142 list = append(list, fmt.Sprintf("%v", s))
144 propValue = fmt.Sprintf("%s", strings.Join(list, " "))
/development/tools/mkstubs/tests/data/
DTestTemplateClass.java50 public static <T extends Comparable<? super T>> void sort(List<T> list) { in sort() argument
53 public <X extends T, Y> void getMap(List<T> list, Map<T, U> tu, Map<X, Set<? super Y>> xy) { in getMap() argument
/development/tools/otagui/src/components/
DPartialCheckbox.vue55 let list = []
58 list.push(key)
61 this.$emit('update:modelValue', list)
99 list-style-type: none;
DBuildLibrary.vue71 * Fetch the build list from backend.
79 "Cannot fetch Android Builds list from the backend, for the following reasons:"
94 "Cannot fetch Android Builds list from the backend, for the following reasons: "
116 list-style: none
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DCheckVoiceData.java100 ArrayList<String> list = intent.getStringArrayListExtra( in getCheckVoiceDataFor() local
103 if (list != null) { in getCheckVoiceDataFor()
104 for (String lang : list) { in getCheckVoiceDataFor()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentListArray.java41 ArrayListFragment list = new ArrayListFragment(); in onCreate() local
42 getFragmentManager().beginTransaction().add(android.R.id.content, list).commit(); in onCreate()
/development/tools/otagui/
Dtarget_lib.py26 partitions: list[str] = field(default_factory=list)
35 line = list(filter(pattern.search, lines))[0]
167 return list(map(self.sql_to_buildinfo, cursor.fetchall()))
/development/vndk/tools/sourcedr/ninja/
Dlist_installed_module_under_source.py21 def list(self, installed_filter=None, module_definition_filter=None): member in ModuleInfo
73 module_info.list(installed_filter, module_definition_filter):
/development/samples/ApiDemos/src/com/example/android/apis/
DApiDemos.java62 List<ResolveInfo> list = pm.queryIntentActivities(mainIntent, 0); in getData() local
64 if (null == list) in getData()
77 int len = list.size(); in getData()
82 ResolveInfo info = list.get(i); in getData()

12345