/packages/apps/Calendar/src/com/android/calendar/ |
D | AllInOneActivity.java | 295 int viewType = -1; in onCreate() local 299 viewType = icicle.getInt(BUNDLE_KEY_RESTORE_VIEW, -1); in onCreate() 312 if (viewType == -1 || viewType > ViewType.MAX_VALUE) { in onCreate() 313 viewType = Utils.getViewTypeFromIntentAndSharedPref(this); in onCreate() 370 configureActionBar(viewType); in onCreate() 387 initFragments(timeMillis, viewType, icicle); in onCreate() 420 private void configureActionBar(int viewType) { in configureActionBar() argument 421 createButtonsSpinner(viewType, mIsTabletConfig); in configureActionBar() 430 private void createButtonsSpinner(int viewType, boolean tabletConfig) { in createButtonsSpinner() argument 432 mActionBarMenuSpinnerAdapter = new CalendarViewAdapter (this, viewType, !tabletConfig); in createButtonsSpinner() [all …]
|
D | CalendarController.java | 139 public int viewType; // one of the ViewType field in CalendarController.EventInfo 345 info.viewType = ViewType.CURRENT; in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 377 int viewType) { in sendEvent() argument 378 sendEvent(sender, eventType, start, end, start, eventId, viewType, EXTRA_GOTO_TIME, null, in sendEvent() 386 int viewType, long extraLong, String query, ComponentName componentName) { in sendEvent() argument 387 sendEvent(sender, eventType, start, end, start, eventId, viewType, extraLong, query, in sendEvent() 392 long eventId, int viewType, long extraLong, String query, ComponentName componentName) { in sendEvent() argument 399 info.viewType = viewType; in sendEvent() 425 if (event.viewType == ViewType.DETAIL) { in sendEvent() 426 event.viewType = mDetailViewType; in sendEvent() [all …]
|
D | CalendarViewAdapter.java | 86 public CalendarViewAdapter(Context context, int viewType, boolean showDate) { in CalendarViewAdapter() argument 90 mCurrentMainView = viewType; in CalendarViewAdapter() 254 TextView viewType = (TextView)v.findViewById(R.id.button_view); in getDropDownView() local 258 viewType.setText(mButtonNames [DAY_BUTTON_INDEX]); in getDropDownView() 264 viewType.setText(mButtonNames [WEEK_BUTTON_INDEX]); in getDropDownView() 270 viewType.setText(mButtonNames [MONTH_BUTTON_INDEX]); in getDropDownView() 284 public void setMainView(int viewType) { in setMainView() argument 285 mCurrentMainView = viewType; in setMainView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AttachmentPreviewFactory.java | 66 final int viewType, final boolean startImageRequest, in createAttachmentPreview() argument 74 attachmentView = createImagePreview(layoutInflater, attachmentData, parent, viewType, in createAttachmentPreview() 77 attachmentView = createAudioPreview(layoutInflater, attachmentData, parent, viewType); in createAttachmentPreview() 79 attachmentView = createVideoPreview(layoutInflater, attachmentData, parent, viewType); in createAttachmentPreview() 81 attachmentView = createVCardPreview(layoutInflater, attachmentData, parent, viewType); in createAttachmentPreview() 151 final int viewType, final boolean startImageRequest) { in createImagePreview() argument 153 switch (viewType) { in createImagePreview() 172 if (viewType == TYPE_CHOOSER_GRID) { in createImagePreview() 210 final int viewType) { in createVCardPreview() argument 212 switch (viewType) { in createVCardPreview() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsGridAdapter.java | 148 if (!isViewType(items.get(i).viewType, VIEW_TYPE_MASK_ICON)) { in getRowsNotForAccessibility() 168 if (isIconViewType(mApps.getAdapterItems().get(position).viewType)) { in getSpanSize() 211 public static boolean isDividerViewType(int viewType) { in isDividerViewType() argument 212 return isViewType(viewType, VIEW_TYPE_MASK_DIVIDER); in isDividerViewType() 215 public static boolean isIconViewType(int viewType) { in isIconViewType() argument 216 return isViewType(viewType, VIEW_TYPE_MASK_ICON); in isIconViewType() 219 public static boolean isViewType(int viewType, int viewTypeMask) { in isViewType() argument 220 return (viewType & viewTypeMask) != 0; in isViewType() 252 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 253 switch (viewType) { in onCreateViewHolder() [all …]
|
D | AlphabeticalAppsList.java | 73 public int viewType; field in AlphabeticalAppsList.AdapterItem 91 item.viewType = AllAppsGridAdapter.VIEW_TYPE_ICON; in asApp() 101 item.viewType = AllAppsGridAdapter.VIEW_TYPE_EMPTY_SEARCH; in asEmptySearch() 108 item.viewType = AllAppsGridAdapter.VIEW_TYPE_ALL_APPS_DIVIDER; in asAllAppsDivider() 115 item.viewType = AllAppsGridAdapter.VIEW_TYPE_SEARCH_MARKET; in asMarketSearch() 122 item.viewType = AllAppsGridAdapter.VIEW_TYPE_WORK_TAB_FOOTER; in asWorkTabFooter() 347 if (AllAppsGridAdapter.isDividerViewType(item.viewType)) { in refillAdapterItems() 349 } else if (AllAppsGridAdapter.isIconViewType(item.viewType)) { in refillAdapterItems() 368 if (!AllAppsGridAdapter.isIconViewType(item.viewType)) { in refillAdapterItems() 382 if (!AllAppsGridAdapter.isIconViewType(item.viewType)) { in refillAdapterItems()
|
D | AllAppsRecyclerView.java | 357 if (AllAppsGridAdapter.isIconViewType(item.viewType)) { in getCurrentScrollY() 359 if (posItem != null && posItem.viewType == item.viewType && in getCurrentScrollY() 366 y += mViewHeights.get(item.viewType, 0); in getCurrentScrollY() 370 int elHeight = mViewHeights.get(item.viewType); in getCurrentScrollY() 374 holder = getAdapter().createViewHolder(this, item.viewType); in getCurrentScrollY()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/ui/ |
D | CustomRecycledViewPool.java | 40 public void setMaxRecycledViews(int viewType, int maxViews) { in setMaxRecycledViews() argument 41 super.setMaxRecycledViews(viewType, maxViews); in setMaxRecycledViews() 42 mInitialized.put(viewType, true); in setMaxRecycledViews() 47 int viewType = scrap.getItemViewType(); in putRecycledView() local 48 if (!mInitialized.get(viewType)) { in putRecycledView() 49 setMaxRecycledViews(viewType, MAX_VIEWS); in putRecycledView()
|
/packages/apps/Car/Media/src/com/android/car/media/browse/ |
D | BrowseViewData.java | 48 BrowseViewData(MediaItemMetadata mediaItem, @NonNull BrowseItemViewType viewType, in BrowseViewData() argument 51 mViewType = viewType; in BrowseViewData() 63 BrowseViewData(@NonNull CharSequence text, @NonNull BrowseItemViewType viewType, in BrowseViewData() argument 66 mViewType = viewType; in BrowseViewData() 74 BrowseViewData(@NonNull BrowseItemViewType viewType, View.OnClickListener onClickListener) { in BrowseViewData() argument 77 mViewType = viewType; in BrowseViewData()
|
D | BrowseAdapter.java | 164 BrowseItemViewType viewType = getItem(position).mViewType; in getSpanSizeLookup() 165 return viewType.getSpanSize(mMaxSpanSize); in getSpanSizeLookup() 172 public BrowseViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 173 int layoutId = BrowseItemViewType.values()[viewType].getLayoutId(); 230 BrowseItemViewType viewType, Consumer<Observer> notification) { 234 result.add(new BrowseViewData(item, viewType, listener));
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardsAdapter.java | 77 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, @LayoutRes int viewType) { in onCreateViewHolder() argument 79 mContext, mLifecycleOwner, viewType); in onCreateViewHolder() 80 final View view = LayoutInflater.from(parent.getContext()).inflate(viewType, parent, false); in onCreateViewHolder() 81 return renderer.createViewHolder(view, viewType); in onCreateViewHolder() 107 final int viewType = mContextualCards.get(position).getViewType(); in onAttachedToRecyclerView() 108 if (viewType == ConditionContextualCardRenderer.VIEW_TYPE_HALF_WIDTH in onAttachedToRecyclerView() 109 || viewType == SliceContextualCardRenderer.VIEW_TYPE_HALF_WIDTH) { in onAttachedToRecyclerView()
|
D | ContextualCardLookupTable.java | 50 ControllerRendererMapping(@CardType int cardType, @LayoutRes int viewType, in ControllerRendererMapping() argument 54 mViewType = viewType; in ControllerRendererMapping() 115 int viewType) throws IllegalStateException { in getCardRendererClassByViewType() argument 117 .filter(m -> m.mViewType == viewType).collect(Collectors.toList()); in getCardRendererClassByViewType()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAdapter.java | 124 for (int viewType : viewTypes) { in withViewTypes() 125 mFactoriesByViewType.put(viewType, factory); in withViewTypes() 126 mListenersByViewType.put(viewType, listener); in withViewTypes() 261 public ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 262 final ItemViewHolder.Factory factory = mFactoriesByViewType.get(viewType); in onCreateViewHolder() 264 return factory.createViewHolder(parent, viewType); in onCreateViewHolder() 266 throw new IllegalArgumentException("Unsupported view type: " + viewType); in onCreateViewHolder() 507 public ItemViewHolder<?> createViewHolder(ViewGroup parent, int viewType); in createViewHolder() argument
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SuggestionsAdapterBase.java | 55 for (String viewType : mViewFactory.getSuggestionViewTypes()) { in SuggestionsAdapterBase() 56 if (!mViewTypeMap.containsKey(viewType)) { in SuggestionsAdapterBase() 57 mViewTypeMap.put(viewType, mViewTypeMap.size()); in SuggestionsAdapterBase() 132 String viewType = mViewFactory.getViewType(suggestion); in suggestionViewType() local 133 if (!mViewTypeMap.containsKey(viewType)) { in suggestionViewType() 134 throw new IllegalStateException("Unknown viewType " + viewType); in suggestionViewType() 136 return viewType; in suggestionViewType()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelsRowAdapter.java | 81 protected int getLayoutResId(int viewType) { in getLayoutResId() argument 82 return viewType; in getLayoutResId() 92 int viewType = getItemViewType(position); in onBindViewHolder() local 93 if (viewType == R.layout.menu_card_guide) { in onBindViewHolder() 95 } else if (viewType == R.layout.menu_card_up) { in onBindViewHolder() 97 } else if (viewType == R.layout.menu_card_down) { in onBindViewHolder() 99 } else if (viewType == R.layout.menu_card_setup) { in onBindViewHolder() 101 } else if (viewType == R.layout.menu_card_app_link) { in onBindViewHolder() 103 } else if (viewType == R.layout.menu_card_dvr) { in onBindViewHolder()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | ContextualCardsAdapter.java | 77 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, @LayoutRes int viewType) { in onCreateViewHolder() argument 79 mContext, mLifecycleOwner, viewType); in onCreateViewHolder() 80 final View view = LayoutInflater.from(parent.getContext()).inflate(viewType, parent, false); in onCreateViewHolder() 81 return renderer.createViewHolder(view, viewType); in onCreateViewHolder() 107 final int viewType = mContextualCards.get(position).getViewType(); in onAttachedToRecyclerView() 108 switch (viewType) { in onAttachedToRecyclerView()
|
D | ContextualCardLookupTable.java | 50 ControllerRendererMapping(@CardType int cardType, @LayoutRes int viewType, in ControllerRendererMapping() argument 54 mViewType = viewType; in ControllerRendererMapping() 115 int viewType) throws IllegalStateException { in getCardRendererClassByViewType() argument 117 .filter(m -> m.mViewType == viewType).collect(Collectors.toList()); in getCardRendererClassByViewType()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/ |
D | NewCallLogAdapter.java | 182 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, @RowType int viewType) { in onCreateViewHolder() argument 183 switch (viewType) { in onCreateViewHolder() 205 throw Assert.createUnsupportedOperationFailException("Unsupported view type: " + viewType); in onCreateViewHolder() 211 @RowType int viewType = getItemViewType(position); in onBindViewHolder() local 212 switch (viewType) { in onBindViewHolder() 249 "Unexpected view type " + viewType + " at position: " + position); in onBindViewHolder()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | GuidedActionsAlignUtil.java | 81 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in createGuidedActionsStylist() 83 View v = inflater.inflate(onProvideItemLayoutId(viewType), parent, false); in createGuidedActionsStylist() 96 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 98 View v = inflater.inflate(onProvideItemLayoutId(viewType), parent, false);
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | GuidedActionsStylistWithDivider.java | 41 public int onProvideItemLayoutId(int viewType) { in onProvideItemLayoutId() argument 42 if (viewType == VIEW_TYPE_DIVIDER) { in onProvideItemLayoutId() 45 return super.onProvideItemLayoutId(viewType); in onProvideItemLayoutId()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/ |
D | AudioFragment.java | 86 @NonNull ViewGroup parent, int viewType) { in onCreateViewHolder() argument 87 if (viewType == R.layout.header) { in onCreateViewHolder() 89 .inflate(viewType, parent, false)) { }; in onCreateViewHolder() 92 .inflate(viewType, parent, false)); in onCreateViewHolder()
|
D | SeriesFragment.java | 97 @NonNull ViewGroup parent, int viewType) { in onCreateViewHolder() argument 98 if (viewType == R.layout.header) { in onCreateViewHolder() 100 .inflate(viewType, parent, false)) { }; in onCreateViewHolder() 103 .inflate(viewType, parent, false)); in onCreateViewHolder()
|
D | GenreFragment.java | 93 @NonNull ViewGroup parent, int viewType) { in onCreateViewHolder() argument 94 if (viewType == R.layout.header) { in onCreateViewHolder() 96 .inflate(viewType, parent, false)) { }; in onCreateViewHolder() 99 .inflate(viewType, parent, false)); in onCreateViewHolder()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 605 int viewType; in startDetailsActivity() local 610 viewType = DetailsActivity.SCHEDULED_RECORDING_VIEW; in startDetailsActivity() 612 viewType = DetailsActivity.CURRENT_RECORDING_VIEW; in startDetailsActivity() 616 viewType = DetailsActivity.RECORDED_PROGRAM_VIEW; in startDetailsActivity() 618 viewType = DetailsActivity.SCHEDULED_RECORDING_VIEW; in startDetailsActivity() 625 viewType = DetailsActivity.RECORDED_PROGRAM_VIEW; in startDetailsActivity() 628 viewType = DetailsActivity.SERIES_RECORDING_VIEW; in startDetailsActivity() 633 intent.putExtra(DetailsActivity.DETAILS_VIEW_TYPE, viewType); in startDetailsActivity()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | NewVoicemailAdapter.java | 215 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, @RowType int viewType) { in onCreateViewHolder() argument 219 switch (viewType) { in onCreateViewHolder() 233 throw Assert.createUnsupportedOperationFailException("Unsupported view type: " + viewType); in onCreateViewHolder() 386 @RowType int viewType = getItemViewType(position); in onBindAlertViewHolder() local 396 Assert.checkArgument(viewType == RowType.VOICEMAIL_ALERT, "Invalid row type: " + viewType); in onBindAlertViewHolder() 414 @RowType int viewType = getItemViewType(position); in onBindHeaderViewHolder() local 423 "Unexpected view type " + viewType + " at position: " + position); in onBindHeaderViewHolder()
|