Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 215) sorted by relevance

123456789

/development/vndk/tools/header-checker/src/repr/
Dir_dumper.cpp53 for (auto &&item : m) { in SortAbiElements()
54 xs.push_back(&item.second); in SortAbiElements()
67 for (auto &&item : SortAbiElements(module.GetFunctions())) { in DumpModule()
68 AddLinkableMessageIR(item); in DumpModule()
70 for (auto &&item : SortAbiElements(module.GetGlobalVariables())) { in DumpModule()
71 AddLinkableMessageIR(item); in DumpModule()
73 for (auto &&item : SortAbiElements(module.GetRecordTypes())) { in DumpModule()
74 AddLinkableMessageIR(item); in DumpModule()
76 for (auto &&item : SortAbiElements(module.GetFunctionTypes())) { in DumpModule()
77 AddLinkableMessageIR(item); in DumpModule()
[all …]
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DSessionManager.java96 PlaylistItem item = mPlaylist.get(i); in updateStatus() local
97 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); in updateStatus()
119 PlaylistItem item = new PlaylistItem( in add() local
121 mPlaylist.add(item); in add()
126 mPlayer.enqueue(item); in add()
129 return item; in add()
148 PlaylistItem item = getCurrentItem(); in seek() local
149 if (pos != item.getPosition()) { in seek()
150 item.setPosition(pos); in seek()
151 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in seek()
[all …]
DRemotePlayer.java128 public void play(final PlaylistItem item) { in play() argument
130 Log.d(TAG, "play: item=" + item); in play()
132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { in play()
137 item.setRemoteItemId(itemId); in play()
138 if (item.getPosition() > 0) { in play()
139 seekInternal(item); in play()
141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in play()
157 public void seek(final PlaylistItem item) { in seek() argument
158 seekInternal(item); in seek()
162 public void getStatus(final PlaylistItem item, final boolean update) { in getStatus() argument
[all …]
DMainActivity.java150 PlaylistItem item = getCheckedPlaylistItem();
151 if (item != null) {
152 long pos = item.getPosition() +
153 (mPaused ? 0 : (SystemClock.elapsedRealtime() - item.getTimestamp()));
338 PlaylistItem item = getCheckedPlaylistItem(); in onCreate()
339 if (fromUser && item != null && item.getDuration() > 0) { in onCreate()
340 long pos = progress * item.getDuration() / 100; in onCreate()
341 mSessionManager.seek(item.getItemId(), pos); in onCreate()
342 item.setPosition(pos); in onCreate()
343 item.setTimestamp(SystemClock.elapsedRealtime()); in onCreate()
[all …]
DPlayer.java38 public abstract void play(final PlaylistItem item); in play() argument
39 public abstract void seek(final PlaylistItem item); in seek() argument
40 public abstract void getStatus(final PlaylistItem item, final boolean update); in getStatus() argument
47 public abstract void enqueue(final PlaylistItem item); in enqueue() argument
/development/gsi/gsi_util/
Dbuild.py87 for item in REQUIRED_ITEMS:
88 print 'Copy {}...'.format(item.dest)
89 full_src = os.path.join(host_out, item.src)
90 _create_dirs_and_copy_file(item.dest, full_src)
113 for item in REQUIRED_ITEMS:
114 print ' {:20} <== {}'.format(item.dest, item.src)
116 for item in INCLUDE_FILES:
117 print ' {}'.format(item)
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DHistory.java59 public void add(String item) { in add() argument
60 item = item.trim(); in add()
61 if (item.length() == 0) { in add()
64 String fitem = item; in add()
66 mItems.add(item); in add()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DClipboardSample.java146 ClipData.Item item = clip.getItemAt(0); in updateClipData() local
147 if (item.getHtmlText() != null) { in updateClipData()
149 } else if (item.getText() != null) { in updateClipData()
151 } else if (item.getIntent() != null) { in updateClipData()
153 } else if (item.getUri() != null) { in updateClipData()
164 ClipData.Item item = clip.getItemAt(0); in updateClipData() local
170 mDataText.setText(item.getText()); in updateClipData()
173 mDataText.setText(item.getHtmlText()); in updateClipData()
176 mDataText.setText(item.getIntent().toUri(0)); in updateClipData()
179 mDataText.setText(item.getUri().toString()); in updateClipData()
[all …]
DChangedContacts.java285 LinearLayout item = new LinearLayout(mContext); in newView() local
286 item.addView(buildText(context)); in newView()
287 item.addView(buildText(context)); in newView()
288 return item; in newView()
293 LinearLayout item = (LinearLayout) view; in bindView() local
299 setText(item.getChildAt(0), id); in bindView()
300 setText(item.getChildAt(1), timestamp); in bindView()
315 LinearLayout item = new LinearLayout(mContext); in newView() local
316 item.addView(buildText(context)); in newView()
317 item.addView(buildText(context)); in newView()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMusicPlayerActivity.java40 public void onMediaItemSelected(MediaBrowser.MediaItem item) { in onMediaItemSelected() argument
41 if (item.isPlayable()) { in onMediaItemSelected()
42 getMediaController().getTransportControls().playFromMediaId(item.getMediaId(), null); in onMediaItemSelected()
48 } else if (item.isBrowsable()) { in onMediaItemSelected()
50 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId())) in onMediaItemSelected()
DQueueAdapter.java66 MediaSession.QueueItem item = getItem(position); in getView() local
67 holder.mTitleView.setText(item.getDescription().getTitle()); in getView()
68 if (item.getDescription().getDescription() != null) { in getView()
69 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView()
73 if (mActiveQueueItemId == item.getQueueId()) { in getView()
DBrowseFragment.java55 void onMediaItemSelected(MediaBrowser.MediaItem item); in onMediaItemSelected() argument
70 for (MediaBrowser.MediaItem item : children) {
71 mBrowserAdapter.add(item);
136 MediaBrowser.MediaItem item = mBrowserAdapter.getItem(position); in onCreateView()
139 listener.onMediaItemSelected(item); in onCreateView()
199 MediaBrowser.MediaItem item = getItem(position); in getView() local
200 holder.mTitleView.setText(item.getDescription().getTitle()); in getView()
201 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView()
202 if (item.isPlayable()) { in getView()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java69 JSONObject item = items.getJSONObject(i); in parseJson() local
71 parsed.name = item.getString(Constants.RECIPE_FIELD_NAME); in parseJson()
72 parsed.title = item.getString(Constants.RECIPE_FIELD_TITLE); in parseJson()
73 if (item.has(Constants.RECIPE_FIELD_IMAGE)) { in parseJson()
74 String imageFile = item.getString(Constants.RECIPE_FIELD_IMAGE); in parseJson()
77 parsed.summary = item.getString(Constants.RECIPE_FIELD_SUMMARY); in parseJson()
120 Item item = (Item) getItem(position); in getView() local
125 titleView.setText(item.title); in getView()
126 summaryView.setText(item.summary); in getView()
127 if (item.image != null) { in getView()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DSearchInvoke.java111 MenuItem item; in onPrepareOptionsMenu() local
121 item = menu.add( 0, 0, 0, "(Search Key)"); in onPrepareOptionsMenu()
125 item = menu.add( 0, 0, 0, "Search"); in onPrepareOptionsMenu()
126 item.setAlphabeticShortcut(SearchManager.MENU_KEY); in onPrepareOptionsMenu()
130 item = menu.add( 0, 0, 0, "(Type-To-Search)"); in onPrepareOptionsMenu()
134 item = menu.add( 0, 0, 0, "(Disabled)"); in onPrepareOptionsMenu()
138 item = menu.add(0, 1, 0, "Clear History"); in onPrepareOptionsMenu()
144 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
145 switch (item.getItemId()) { in onOptionsItemSelected()
180 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/development/tools/winscope/src/utils/
Dutils.js34 function stableIdCompatibilityFixup(item) { argument
37 if (item.stableId === 'winToken|-|') {
38 return item.stableId + item.children[0].stableId;
41 return item.stableId;
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java185 RssItem item = this.getItem(position); in getView() local
191 view.getText1().setText(item.getTitle()); in getView()
192 String descr = item.getDescription().toString(); in getView()
216 RssItem item = mAdapter.getItem(position); in onListItemClick() local
219 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(item.getLink().toString())); in onListItemClick()
279 ItemAdder(RssItem item) { in ItemAdder() argument
280 mItem = item; in ItemAdder()
356 public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu()
377 public boolean onMenuItemClick(MenuItem item) { in onMenuItemClick() argument
414 RssItem item = mAdapter.getItem(i); in onSaveInstanceState() local
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DStorageProviderFragment.java51 MenuItem item = menu.findItem(R.id.sample_action); in onPrepareOptionsMenu() local
52 item.setTitle(mLoggedIn ? R.string.log_out : R.string.log_in); in onPrepareOptionsMenu()
56 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
57 if (item.getItemId() == R.id.sample_action) { in onOptionsItemSelected()
59 item.setTitle(mLoggedIn ? R.string.log_out : R.string.log_in); in onOptionsItemSelected()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DCardFlipActivity.java81 MenuItem item = menu.add(Menu.NONE, R.id.action_flip, Menu.NONE, in onCreateOptionsMenu() local
85 item.setIcon(mShowingBack in onCreateOptionsMenu()
88 item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
93 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
94 switch (item.getItemId()) { in onOptionsItemSelected()
106 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
DScreenSlideActivity.java89 MenuItem item = menu.add(Menu.NONE, R.id.action_next, Menu.NONE, in onCreateOptionsMenu() local
93 item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT); in onCreateOptionsMenu()
98 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
99 switch (item.getItemId()) { in onOptionsItemSelected()
119 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/development/samples/devbytes/animation/SquashAndStretch/src/com/example/squashandstretch/
DSquashAndStretch.java66 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
67 if (item.getItemId() == R.id.menu_slow) { in onOptionsItemSelected()
68 sAnimatorScale = item.isChecked() ? 1 : 5; in onOptionsItemSelected()
69 item.setChecked(!item.isChecked()); in onOptionsItemSelected()
71 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DActivityAnimations.java91 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
92 if (item.getItemId() == R.id.menu_slow) { in onOptionsItemSelected()
93 sAnimatorScale = item.isChecked() ? 1 : 5; in onOptionsItemSelected()
94 item.setChecked(!item.isChecked()); in onOptionsItemSelected()
96 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/
DItem.java40 for (Item item : ITEMS) { in getItem()
41 if (item.getId() == id) { in getItem()
42 return item; in getItem()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/provider/
DSampleMediaRouteProvider.java243 public void onItemChanged(PlaylistItem item) { in SampleRouteController()
244 handleStatusChange(item); in SampleRouteController()
381 PlaylistItem item = mSessionManager.add(uri, mime, receiver); in handleEnqueue() local
383 if (item != null) { in handleEnqueue()
385 result.putString(MediaControlIntent.EXTRA_SESSION_ID, item.getSessionId()); in handleEnqueue()
386 result.putString(MediaControlIntent.EXTRA_ITEM_ID, item.getItemId()); in handleEnqueue()
388 item.getStatus().asBundle()); in handleEnqueue()
405 PlaylistItem item = mSessionManager.remove(iid); in handleRemove() local
407 if (item != null) { in handleRemove()
410 item.getStatus().asBundle()); in handleRemove()
[all …]
/development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/
DMainActivity.java48 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
49 switch (item.getItemId()) { in onOptionsItemSelected()
57 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
/development/samples/browseable/ActionBarCompat-Basic/src/com.example.android.actionbarcompat.basic/
DMainActivity.java69 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
70 switch (item.getItemId()) { in onOptionsItemSelected()
84 return super.onOptionsItemSelected(item); in onOptionsItemSelected()

123456789