Home
last modified time | relevance | path

Searched refs:viewType (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.java330 int viewType = -1; in onCreate() local
334 viewType = icicle.getInt(BUNDLE_KEY_RESTORE_VIEW, -1); in onCreate()
347 if (viewType == -1 || viewType > ViewType.MAX_VALUE) { in onCreate()
348 viewType = Utils.getViewTypeFromIntentAndSharedPref(this); in onCreate()
411 configureActionBar(viewType); in onCreate()
428 initFragments(timeMillis, viewType, icicle); in onCreate()
461 private void configureActionBar(int viewType) { in configureActionBar() argument
462 createButtonsSpinner(viewType, mIsTabletConfig); in configureActionBar()
471 private void createButtonsSpinner(int viewType, boolean tabletConfig) { in createButtonsSpinner() argument
473 mActionBarMenuSpinnerAdapter = new CalendarViewAdapter (this, viewType, !tabletConfig); in createButtonsSpinner()
[all …]
DCalendarController.java156 public int viewType; // one of the ViewType field in CalendarController.EventInfo
371 info.viewType = ViewType.CURRENT; in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
403 int viewType) { in sendEvent() argument
404 sendEvent(sender, eventType, start, end, start, eventId, viewType, EXTRA_GOTO_TIME, null, in sendEvent()
412 int viewType, long extraLong, String query, ComponentName componentName) { in sendEvent() argument
413 sendEvent(sender, eventType, start, end, start, eventId, viewType, extraLong, query, in sendEvent()
418 long eventId, int viewType, long extraLong, String query, ComponentName componentName) { in sendEvent() argument
425 info.viewType = viewType; in sendEvent()
451 if (event.viewType == ViewType.DETAIL) { in sendEvent()
452 event.viewType = mDetailViewType; in sendEvent()
[all …]
DCalendarViewAdapter.java86 public CalendarViewAdapter(Context context, int viewType, boolean showDate) { in CalendarViewAdapter() argument
90 mCurrentMainView = viewType; in CalendarViewAdapter()
262 TextView viewType = (TextView)v.findViewById(R.id.button_view); in getDropDownView() local
266 viewType.setText(mButtonNames [DAY_BUTTON_INDEX]); in getDropDownView()
272 viewType.setText(mButtonNames [WEEK_BUTTON_INDEX]); in getDropDownView()
278 viewType.setText(mButtonNames [MONTH_BUTTON_INDEX]); in getDropDownView()
284 viewType.setText(mButtonNames [AGENDA_BUTTON_INDEX]); in getDropDownView()
298 public void setMainView(int viewType) { in setMainView() argument
299 mCurrentMainView = viewType; in setMainView()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java66 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 …]
DCursorRecyclerAdapter.java189 public VH onCreateViewHolder(final ViewGroup parent, final int viewType) { in onCreateViewHolder() argument
190 return createViewHolder(mContext, parent, viewType); in onCreateViewHolder()
215 public abstract VH createViewHolder(Context context, ViewGroup parent, int viewType); in createViewHolder() argument
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAlphabeticalAppsList.java88 public int viewType; field in AlphabeticalAppsList.AdapterItem
111 item.viewType = AllAppsGridAdapter.SECTION_BREAK_VIEW_TYPE; in asSectionBreak()
121 item.viewType = AllAppsGridAdapter.PREDICTION_ICON_VIEW_TYPE; in asPredictedApp()
128 item.viewType = AllAppsGridAdapter.ICON_VIEW_TYPE; in asApp()
140 item.viewType = AllAppsGridAdapter.EMPTY_SEARCH_VIEW_TYPE; in asEmptySearch()
147 item.viewType = AllAppsGridAdapter.SEARCH_MARKET_DIVIDER_VIEW_TYPE; in asDivider()
154 item.viewType = AllAppsGridAdapter.SEARCH_MARKET_VIEW_TYPE; in asMarketSearch()
507 if (item.viewType == AllAppsGridAdapter.SECTION_BREAK_VIEW_TYPE) { in updateAdapterItems()
509 } else if (item.viewType == AllAppsGridAdapter.ICON_VIEW_TYPE || in updateAdapterItems()
510 item.viewType == AllAppsGridAdapter.PREDICTION_ICON_VIEW_TYPE) { in updateAdapterItems()
[all …]
DAllAppsGridAdapter.java128 switch (mApps.getAdapterItems().get(position).viewType) { in getSpanSize()
301 return items.get(pos).viewType == AllAppsGridAdapter.PREDICTION_ICON_VIEW_TYPE; in shouldDrawItemDivider()
313 if (item.viewType != AllAppsGridAdapter.ICON_VIEW_TYPE) { in shouldDrawItemSection()
318 (items.get(pos - 1).viewType == AllAppsGridAdapter.SECTION_BREAK_VIEW_TYPE); in shouldDrawItemSection()
451 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
452 switch (viewType) { in onCreateViewHolder()
542 return item.viewType; in getItemViewType()
DAllAppsRecyclerView.java423 if (item.viewType == AllAppsGridAdapter.ICON_VIEW_TYPE || in getCurScrollState()
424 item.viewType == AllAppsGridAdapter.PREDICTION_ICON_VIEW_TYPE) { in getCurScrollState()
439 if (item.viewType == AllAppsGridAdapter.ICON_VIEW_TYPE || in getScrollAtPosition()
440 item.viewType == AllAppsGridAdapter.PREDICTION_ICON_VIEW_TYPE) { in getScrollAtPosition()
DAllAppsContainerView.java70 if (section.firstAppItem.viewType != AllAppsGridAdapter.ICON_VIEW_TYPE) { in continueMerging()
102 if (section.firstAppItem.viewType != AllAppsGridAdapter.ICON_VIEW_TYPE) { in continueMerging()
DDefaultAppSearchController.java184 switch (item.viewType) { in onEditorAction()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsAdapterBase.java55 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()
DSuggestionViewInflater.java46 public SuggestionViewInflater(String viewType, Class<? extends SuggestionView> viewClass, in SuggestionViewInflater() argument
48 mViewType = viewType; in SuggestionViewInflater()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DSettingsLayoutAdapter.java122 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
128 switch (viewType) { in onCreateViewHolder()
139 throw new IllegalStateException("View type not found: " + viewType); in onCreateViewHolder()
144 viewHolder.init(viewType); in onCreateViewHolder()
215 public void init(int viewType) { in init() argument
216 mViewType = viewType; in init()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java609 ((LayoutParams) optScrap.getLayoutParams()).viewType : -1; in obtainView()
634 sglp.viewType = positionViewType; in obtainView()
717 int viewType; field in GalleryThumbnailView.LayoutParams
829 ArrayList<View> scrap = mScrapViews[lp.viewType]; in addScrap()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java419 private int getLayoutResourceId(int viewType) { in getLayoutResourceId() argument
420 switch (viewType) { in getLayoutResourceId()
427 throw new IllegalArgumentException("Unrecognized viewType " + viewType); in getLayoutResourceId()
/packages/apps/Camera2/src/com/android/camera/data/
DPlaceholderItem.java50 View v, FilmstripItemType viewType, int width, int height) { in PlaceholderItem() argument
52 mItemViewType = viewType; in PlaceholderItem()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java389 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
390 if (viewType == VIEW_TYPE_SHOW_CALL_HISTORY_LIST_ITEM) { in onCreateViewHolder()
392 } else if (viewType == VIEW_TYPE_VOICEMAIL_PROMO_CARD) { in onCreateViewHolder()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java680 final int viewType = (Integer) view.getTag(R.id.mediadata_tag_viewtype); in recycleView() local
681 if (viewType > 0) { in recycleView()
682 Queue<View> recycledViewsForType = recycledViews.get(viewType); in recycleView()
685 recycledViews.put(viewType, recycledViewsForType); in recycleView()
692 final int viewType = mDataAdapter.getItemViewType(index); in getRecycledView() local
693 Queue<View> recycledViewsForType = recycledViews.get(viewType); in getRecycledView()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java3023 ((LayoutParams) scrap.getLayoutParams()).viewType : -1;
3055 sglp.viewType = positionViewType;
3086 ((LayoutParams) optScrap.getLayoutParams()).viewType : -1;
3115 sglp.viewType = positionViewType;
3691 int viewType;
3821 final ArrayList<View> scrap = mScrapViews[lp.viewType];
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java356 private boolean isDebugView(String viewType /* non-nullable */) { in isDebugView() argument
357 return viewType.equals(getIntent().getStringExtra(EXTRA_FORCE_VIEW)); in isDebugView()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListAdapter.java58 final ViewGroup parent, final int viewType) { in createViewHolder() argument
DShareIntentAdapter.java63 final ViewGroup parent, final int viewType) { in createViewHolder() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java367 viewType = t; in ExpandedView()
371 final int viewType; field in ScrollAdapterView.ExpandedView
555 mRecycleExpandedViews.recycleView(v.expandedView, v.viewType);
2482 mRecycleExpandedViews.recycleView(v.expandedView, v.viewType);
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageAdapter.java73 final ViewGroup parent, final int viewType) { in createViewHolder() argument
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DDialogAdapter.java43 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument

12