/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | BaseAllAppsAdapter.java | 102 public final int viewType; field in BaseAllAppsAdapter.AdapterItem 112 public AdapterItem(int viewType) { in AdapterItem() argument 113 this.viewType = viewType; in AdapterItem() 133 return viewType == VIEW_TYPE_ICON; in isCountedForAccessibility() 140 return (other.viewType == viewType) && (other.getClass() == getClass()); in isSameAs() 188 public static boolean isDividerViewType(int viewType) { in isDividerViewType() argument 189 return isViewType(viewType, VIEW_TYPE_MASK_DIVIDER); in isDividerViewType() 193 public static boolean isIconViewType(int viewType) { in isIconViewType() argument 194 return isViewType(viewType, VIEW_TYPE_MASK_ICON); in isIconViewType() 198 public static boolean isPrivateSpaceHeaderView(int viewType) { in isPrivateSpaceHeaderView() argument [all …]
|
D | AllAppsGridAdapter.java | 156 if (!isViewType(items.get(i).viewType, VIEW_TYPE_MASK_ICON)) { in getRowsNotForAccessibility() 175 return (isIconViewType(item.viewType) && item.rowAppIndex != 0) in incrementTotalHeight() 177 : (heightUntilLastPos + mCachedSizes.get(item.viewType)); in incrementTotalHeight() 210 int viewType = items.get(position).viewType; in getSpanSize() local 211 if (isIconViewType(viewType)) { in getSpanSize() 214 if (mAdapterProvider.isViewSupported(viewType)) { in getSpanSize() 215 return totalSpans / mAdapterProvider.getItemsPerRow(viewType, mAppsPerRow); in getSpanSize()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.kt | 55 var viewType = -1 variable 114 @JvmField var viewType = 0 // one of the ViewType variable in com.android.calendar.EventInfo 303 info.viewType = ViewType.CURRENT in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 340 viewType: Int in sendEvent() 343 sender, eventType, start, end, start, eventId, viewType, EXTRA_GOTO_TIME, null, in sendEvent() 357 viewType: Int, in sendEvent() 363 sender, eventType, start, end, start, eventId, viewType, extraLong, query, in sendEvent() 375 viewType: Int, in sendEvent() 386 info.viewType = viewType in sendEvent() 406 previousViewType = viewType in sendEvent() [all …]
|
D | AllInOneActivity.kt | 255 var viewType = -1 in onCreate() variable 259 viewType = icicle.getInt(BUNDLE_KEY_RESTORE_VIEW, -1) in onCreate() 270 if (viewType == -1 || viewType > ViewType.MAX_VALUE) { in onCreate() 271 viewType = Utils.getViewTypeFromIntentAndSharedPref(this) in onCreate() 328 configureActionBar(viewType) in onCreate() 347 initFragments(timeMillis, viewType, icicle) in onCreate() 381 private fun configureActionBar(viewType: Int) { in configureActionBar() 382 createButtonsSpinner(viewType, mIsTabletConfig) in configureActionBar() 392 private fun createButtonsSpinner(viewType: Int, tabletConfig: Boolean) { in createButtonsSpinner() 394 mActionBarMenuSpinnerAdapter = CalendarViewAdapter(this, viewType, !tabletConfig) in createButtonsSpinner() [all …]
|
D | CalendarViewAdapter.kt | 37 class CalendarViewAdapter(context: Context, viewType: Int, showDate: Boolean) : BaseAdapter() { 199 val viewType: TextView? = v?.findViewById(R.id.button_view) as? TextView in getDropDownView() constant 203 viewType?.setText(mButtonNames[DAY_BUTTON_INDEX]) in getDropDownView() 209 viewType?.setText(mButtonNames[WEEK_BUTTON_INDEX]) in getDropDownView() 215 viewType?.setText(mButtonNames[MONTH_BUTTON_INDEX]) in getDropDownView() 227 fun setMainView(viewType: Int) { in setMainView() 228 mCurrentMainView = viewType in setMainView() 356 mCurrentMainView = viewType in <lambda>()
|
/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/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/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 | 49 ControllerRendererMapping(@CardType int cardType, @LayoutRes int viewType, in ControllerRendererMapping() argument 53 mViewType = viewType; in ControllerRendererMapping() 112 int viewType) throws IllegalStateException { in getCardRendererClassByViewType() argument 114 .filter(m -> m.mViewType == viewType).collect(Collectors.toList()); in getCardRendererClassByViewType()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SuggestionsAdapterBase.kt | 100 val viewType = mViewFactory.getViewType(suggestion) in suggestionViewType() constant 101 if (!mViewTypeMap.containsKey(viewType)) { in suggestionViewType() 102 throw IllegalStateException("Unknown viewType $viewType") in suggestionViewType() 104 return viewType in suggestionViewType() 215 for (viewType in mViewFactory.suggestionViewTypes) { constant in com.android.quicksearchbox.ui.SuggestionsAdapterBase 216 if (!mViewTypeMap.containsKey(viewType)) { 217 mViewTypeMap.put(viewType, mViewTypeMap.size)
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAdapter.kt | 114 for (viewType in viewTypes) { in withViewTypes() method 115 mFactoriesByViewType.put(viewType, factory) in withViewTypes() 116 mListenersByViewType.put(viewType, listener) in withViewTypes() 239 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<T> { in onCreateViewHolder() 240 val factory = mFactoriesByViewType[viewType] in onCreateViewHolder() 242 return factory.createViewHolder(parent, viewType) as ItemViewHolder<T> in onCreateViewHolder() 244 throw IllegalArgumentException("Unsupported view type: $viewType") in onCreateViewHolder() 445 fun createViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder<*> in createViewHolder()
|
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient/src/com/android/sdksandboxclient/ |
D | BannerOptionsActivity.java | 106 BannerOptions.ViewType viewType = BannerOptions.ViewType.valueOf(viewTypeSelection); in refreshVideoPreferenceVisibility() local 107 mVideoUrlPreference.setVisible(viewType == BannerOptions.ViewType.VIDEO); in refreshVideoPreferenceVisibility() 111 BannerOptions.ViewType viewType = BannerOptions.ViewType.valueOf(viewTypeSelection); in refreshOnClickEnabled() local 112 switch (viewType) { in refreshOnClickEnabled() 145 BannerOptions.ViewType viewType = BannerOptions.ViewType.valueOf(viewTypeSelection); in refreshAdSize() local 146 switch (viewType) { in refreshAdSize()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/grid/ |
D | ChooserGridAdapter.java | 242 public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { in onCreateViewHolder() argument 243 switch (viewType) { in onCreateViewHolder() 247 viewType, in onCreateViewHolder() 253 viewType, in onCreateViewHolder() 258 return createItemGroupViewHolder(viewType, parent); in onCreateViewHolder() 263 return new FooterViewHolder(sp, viewType); in onCreateViewHolder() 299 int viewType = ((ViewHolderBase) holder).getViewType(); in onBindViewHolder() local 300 switch (viewType) { in onBindViewHolder() 406 ItemGroupViewHolder createItemGroupViewHolder(int viewType, ViewGroup parent) { in createItemGroupViewHolder() argument 407 if (viewType == VIEW_TYPE_DIRECT_SHARE) { in createItemGroupViewHolder() [all …]
|
D | FooterViewHolder.java | 25 public FooterViewHolder(View itemView, int viewType) { in FooterViewHolder() argument 26 super(itemView, viewType); in FooterViewHolder()
|
/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/modules/Permission/tests/hostside/safetycenter/src/android/safetycenter/hostside/ |
D | SafetyCenterInteractionLoggingHostTest.kt | 77 assertThat(viewType).isEqualTo(ViewType.FULL) in openSafetyCenter_recordsSafetyCenterViewedEvent() 90 assertThat(viewType).isEqualTo(ViewType.QUICK_SETTINGS) in openSafetyCenterQs_recordsSafetyCenterViewedEvent() 102 safetyCenterViewedAtoms.associate { Pair(it.viewType, it.navigationSource) } in openSafetyCenterFullFromQs_recordsViewEventWithCorrectSource() 151 assertThat(notificationPostedAtoms.first().viewType) in sendNotification_recordsNotificationPostedEvent() 165 assertThat(viewType).isEqualTo(ViewType.SUBPAGE) in openSubpageFromIntentExtra_recordsEventWithUnknownNavigationSource() 178 val subpageViewedEvent = safetyCenterViewedAtoms.find { it.viewType == ViewType.SUBPAGE } in openSubpageFromHomepage_recordsEventWithSafetyCenterNavigationSource() 195 assertThat(viewType).isEqualTo(ViewType.SUBPAGE) in openSubpageFromSettingsSearch_recordsEventWithSettingsNavigationSource()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | SearchAdapterProvider.java | 58 public abstract boolean isViewSupported(int viewType); in isViewSupported() argument 69 ViewGroup parent, int viewType); in onCreateViewHolder() argument 81 public int getItemsPerRow(int viewType, int appsPerRow) { in getItemsPerRow() argument
|
/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/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/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()
|
/packages/apps/Settings/src/com/android/settings/dream/ |
D | DreamAdapter.java | 110 if (item.viewType() != DreamItemViewTypes.NO_DREAM_ITEM) { in bindView() 165 @DreamItemViewTypes.ViewType int viewType) { in onCreateViewHolder() argument 167 .inflate(mLayouts.get(viewType), viewGroup, false); in onCreateViewHolder() 178 return mItemList.get(position).viewType(); in getItemViewType()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | CategorySelectorFragment.java | 717 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 721 switch (viewType) { in onCreateViewHolder() 735 Log.e(TAG, "Unsupported viewType " + viewType + " in CategoryAdapter"); in onCreateViewHolder() 742 int viewType = getItemViewType(position); in onBindViewHolder() local 743 switch (viewType) { in onBindViewHolder() 753 Log.e(TAG, "Unsupported viewType " + viewType + " in CategoryAdapter"); in onBindViewHolder() 824 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 827 switch (viewType) { in onCreateViewHolder() 841 Log.e(TAG, "Unsupported viewType " + viewType + " in CategoryAdapter"); in onCreateViewHolder() 848 int viewType = getItemViewType(position); in onBindViewHolder() local [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
D | SearchResultsAdapter.java | 46 public SearchViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 50 switch (viewType) { in onCreateViewHolder() 83 return mSearchResults.get(position).viewType; in getItemViewType()
|
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/ |
D | CarSearchResultsAdapter.java | 53 public CarSearchViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 57 switch (viewType) { in onCreateViewHolder() 83 return mSearchResults.get(position).viewType; in getItemViewType()
|