Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 221) 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/tools/winscope/src/viewers/components/
Dtree_node_data_view_component.ts37 @Input() item!: UiTreeNode;
40 return this.item instanceof HierarchyTreeNode ? this.item.chips : [];
44 return this.item instanceof HierarchyTreeNode && this.item.shortName
45 ? this.item.shortName
46 : this.item.name;
50 if (this.item.name instanceof Terminal) {
53 return this.item.name ?? '';
58 this.item instanceof HierarchyTreeNode &&
59 this.item.simplifyNames &&
60 this.item.shortName &&
[all …]
Dproperty_groups_component.ts281 @Input() item!: Layer;
284 return this.item.proto?.inputWindowInfo;
288 const frame = this.item.proto?.destinationFrame;
295 return (this.item.flags & 0x400) === 0x400;
305 if (this.item?.visibilityReason?.length > 0) {
307 if (Array.isArray(this.item.visibilityReason)) {
308 reason = this.item.visibilityReason.join(', ');
310 reason = this.item.visibilityReason;
316 if (this.item?.occludedBy?.length > 0) {
319 value: this.item.occludedBy.map((it: any) => it.id).join(', '),
[all …]
Dtree_component.ts93 @Input() item?: UiTreeNode;
102 @Input() showNode = (item: UiTreeNode) => true;
103 @Input() isLeaf = (item?: UiTreeNode) => {
104 return !item || !item.children || item.children.length === 0;
146 this.item instanceof HierarchyTreeNode &&
147 UiTreeUtils.isHighlighted(this.item, this.highlightedItems)
149 this.selectedTreeChange.emit(this.item);
166 if (!this.isLeaf(this.item) && isDoubleClick) {
184 if (this.item?.stableId) {
185 this.highlightedItemChange.emit(`${this.item.stableId}`);
[all …]
Dtree_node_properties_data_view_component.ts34 @Input() item!: PropertiesTreeNode;
37 if (!this.item.propertyValue) {
41 if (this.item.propertyValue === 'null') {
45 if (this.item.propertyValue === 'true') {
49 if (this.item.propertyValue === 'false') {
53 if (!isNaN(Number(this.item.propertyValue))) {
Dproperties_component.ts146 showNode(item: any) {
148 !(item instanceof Terminal) &&
149 !(item.name instanceof Terminal) &&
150 !(item.propertyKey instanceof Terminal)
154 isLeaf(item: any) {
156 !item.children ||
157 item.children.length === 0 ||
158 item.children.filter((c: any) => !(c instanceof Terminal)).length === 0
Dime_additional_properties_component.ts328 isHighlighted(item: any) {
329 return UiTreeUtils.isHighlighted(item, this.highlightedItems);
332 formatProto(item: any) {
333 if (item?.prettyPrint) {
334 return item.prettyPrint();
460 onClickShowInPropertiesPanel(item: any, name?: string) {
461 if (item.id) {
462 this.updateHighlightedItems(item.id);
464 this.updateAdditionalPropertySelected(item, name);
476 private updateAdditionalPropertySelected(item: any, name?: string) {
[all …]
Dtree_node_component.ts57 @Input() item!: UiTreeNode;
77 return !(this.item instanceof HierarchyTreeNode);
82 (!this.isPropertiesTreeNode() && !UiTreeUtils.isParentNode(this.item.kind ?? '')) ?? false
108 this.pinNodeChange.emit(this.item);
116 const childrenDiffClasses = this.getAllDiffTypesOfChildren(this.item);
131 private getAllDiffTypesOfChildren(item: UiTreeNode) {
132 if (!item.children) {
137 for (const child of item.children) {
Dhierarchy_component.ts177 selectedTreeChange(item: UiTreeNode) {
178 if (!(item instanceof HierarchyTreeNode)) {
183 detail: {selectedItem: item},
188 pinnedItemChange(item: UiTreeNode) {
189 if (!(item instanceof HierarchyTreeNode)) {
194 detail: {pinnedItem: item},
/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/samples/SampleInputMethodAccessibilityService/src/com/example/android/sampleinputmethodaccessibilityservice/
DSampleInputMethodAccessibilityService.java77 private static <T> Pair<CharSequence, T> item(@NonNull CharSequence label, @Nullable T value) { in item() method in SampleInputMethodAccessibilityService
96 for (Pair<CharSequence, T> item : items) { in addButtons()
99 button.setText(item.first); in addButtons()
110 action.accept(item.second, ic); in addButtons()
163 item("A", "A"), in onServiceConnected()
164 item("Hello World", "Hello World"), in onServiceConnected()
165 item("\uD83D\uDE36\u200D\uD83C\uDF2B\uFE0F", in onServiceConnected()
171 item("A", KeyEvent.KEYCODE_A), in onServiceConnected()
172 item("DEL", KeyEvent.KEYCODE_DEL), in onServiceConnected()
173 item("DPAD_LEFT", KeyEvent.KEYCODE_DPAD_LEFT), in onServiceConnected()
[all …]
/development/tools/winscope/src/viewers/common/
Dtree_transformer.ts330 private getPropertyKey(item: PropertiesDump): string {
331 if (item['name'] && (!item['children'] || item['children'].length === 0)) {
332 return item['name'].split(': ')[0];
334 return item['name'];
337 private getPropertyValue(item: PropertiesDump): string | null {
338 if (item['name'] && (!item['children'] || item['children'].length === 0)) {
339 return item['name'].split(': ').slice(1).join(': ');
344 private filterMatches(item: PropertiesDump | null): boolean {
346 return this.filter(item as TreeNode) ?? false;
409 private compatibleStableId(item: HierarchyTreeNode): string {
[all …]
Dui_tree_utils.ts81 static diffClass(item: UiTreeNode): string {
82 const diffType = item.diffType;
86 static isHighlighted(item: UiTreeNode, highlightedItems: string[]) {
87 return item instanceof HierarchyTreeNode && highlightedItems.includes(`${item.stableId}`);
/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/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/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/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()
/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/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()

123456789