/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/ |
D | ThemeComponentOption.java | 99 public abstract void bindPreview(ViewGroup container); in bindPreview() argument 145 public void bindPreview(ViewGroup container) { in bindPreview() argument 146 container.setContentDescription( in bindPreview() 147 container.getContext().getString(R.string.font_preview_content_description)); in bindPreview() 149 bindPreviewHeader(container, R.string.preview_name_font, R.drawable.ic_font, null); in bindPreview() 151 ViewGroup cardBody = container.findViewById(R.id.theme_preview_card_body_container); in bindPreview() 153 LayoutInflater.from(container.getContext()).inflate( in bindPreview() 157 TextView title = container.findViewById(R.id.font_card_title); in bindPreview() 159 TextView bodyText = container.findViewById(R.id.font_card_body); in bindPreview() 161 container.findViewById(R.id.font_card_divider).setBackgroundColor( in bindPreview() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/widget/ |
D | CarUiTextViewTest.java | 85 ViewGroup container = mActivity.findViewById( in testTruncateToVariant_startAsViewGone() local 87 container.post(() -> container.setVisibility(View.GONE)); in testTruncateToVariant_startAsViewGone() 88 container.post(() -> container.addView(textView)); in testTruncateToVariant_startAsViewGone() 89 container.post(() -> container.setVisibility(View.VISIBLE)); in testTruncateToVariant_startAsViewGone() 103 ViewGroup container = mActivity.findViewById( in testSpanOverLastLine() local 105 container.post(() -> container.addView(textView)); in testSpanOverLastLine() 120 ViewGroup container = mActivity.findViewById( in testLineBreaks_lineBreakAtEnd() local 122 container.post(() -> container.addView(textView)); in testLineBreaks_lineBreakAtEnd() 137 ViewGroup container = mActivity.findViewById( in testSpan() local 139 container.post(() -> container.addView(textView)); in testSpan()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelWriter.java | 86 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument 87 item.container = container; in updateItemInfoProps() 92 if (container == Favorites.CONTAINER_HOTSEAT) { in updateItemInfoProps() 105 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 108 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 111 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 126 modelItem.container == item.container && in checkItemInfoLocked() 156 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument 157 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase() 160 .put(Favorites.CONTAINER, item.container) in moveItemInDatabase() [all …]
|
D | ModelUtils.java | 65 (lhs, rhs) -> Integer.compare(lhs.container, rhs.container)); in filterCurrentWorkspaceItems() 67 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in filterCurrentWorkspaceItems() 74 } else if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in filterCurrentWorkspaceItems() 78 if (itemsOnScreen.contains(info.container)) { in filterCurrentWorkspaceItems() 96 if (lhs.container == rhs.container) { in sortWorkspaceItemsSpatially() 98 switch (lhs.container) { in sortWorkspaceItemsSpatially() 119 return Integer.compare(lhs.container, rhs.container); in sortWorkspaceItemsSpatially() 130 info -> info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) in getMissingHotseatRanks()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/ |
D | CarUiRecyclerViewTest.java | 159 ViewGroup container = mActivity.findViewById(R.id.test_container); in testIsScrollbarPresent_scrollbarEnabled() local 160 container.post(() -> { in testIsScrollbarPresent_scrollbarEnabled() 161 container.addView(carUiRecyclerView); in testIsScrollbarPresent_scrollbarEnabled() 172 ViewGroup container = mActivity.findViewById(R.id.test_container); in testIsScrollbarPresent_scrollbarDisabled() local 173 container.post(() -> { in testIsScrollbarPresent_scrollbarDisabled() 174 container.addView(carUiRecyclerView); in testIsScrollbarPresent_scrollbarDisabled() 184 ViewGroup container = mActivity.findViewById(R.id.test_container); in testPadding() local 187 container.post(() -> { in testPadding() 188 container.addView(carUiRecyclerView); in testPadding() 215 ViewGroup container = mActivity.findViewById(R.id.test_container); in testGridLayout() local [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsCompanionAppsController.java | 97 private static void removePreference(PreferenceCategory container, String packageName) { in removePreference() argument 98 Preference preference = container.findPreference(packageName); in removePreference() 100 container.removePreference(preference); in removePreference() 105 PreferenceCategory container, CharSequence appName, Context context) { in removeAssociationDialog() argument 108 removeAssociation(packageName, address, container); in removeAssociationDialog() 125 PreferenceCategory container) { in removeAssociation() argument 135 removePreference(container, packageName); in removeAssociation() 150 private List<String> getPreferencesNeedToShow(String address, PreferenceCategory container) { in getPreferencesNeedToShow() argument 156 for (int i = 0; i < container.getPreferenceCount(); i++) { in getPreferencesNeedToShow() 157 String preferenceKey = container.getPreference(i).getKey(); in getPreferencesNeedToShow() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
D | DisambigDialog.java | 63 @VisibleForTesting public LinearLayout container; field in DisambigDialog 80 container = view.findViewById(R.id.communication_avenue_container); in onCreateDialog() 82 insertOptions(container.findViewById(R.id.communication_avenue_container), channels); in onCreateDialog() 113 private void insertOptions(LinearLayout container, List<Channel> channels) { in insertOptions() argument 118 insertDivider(container); in insertOptions() 120 insertHeader(container, channel.number(), channel.label()); in insertOptions() 122 insertOption(container, channel); in insertOptions() 126 private void insertDivider(LinearLayout container) { in insertDivider() argument 130 .inflate(R.layout.disambig_dialog_divider, container, false); in insertDivider() 131 container.addView(view); in insertDivider() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | CallDetailsEntryViewHolder.java | 77 View container, CallDetailsEntryListener callDetailsEntryListener) { in CallDetailsEntryViewHolder() argument 78 super(container); in CallDetailsEntryViewHolder() 79 context = container.getContext(); in CallDetailsEntryViewHolder() 81 callTypeIcon = (CallTypeIconsView) container.findViewById(R.id.call_direction); in CallDetailsEntryViewHolder() 82 callTypeText = (TextView) container.findViewById(R.id.call_type); in CallDetailsEntryViewHolder() 83 callTime = (TextView) container.findViewById(R.id.call_time); in CallDetailsEntryViewHolder() 84 callDuration = (TextView) container.findViewById(R.id.call_duration); in CallDetailsEntryViewHolder() 86 multimediaImageContainer = container.findViewById(R.id.multimedia_image_container); in CallDetailsEntryViewHolder() 87 multimediaDetailsContainer = container.findViewById(R.id.ec_container); in CallDetailsEntryViewHolder() 88 multimediaDivider = container.findViewById(R.id.divider); in CallDetailsEntryViewHolder() [all …]
|
D | CallDetailsHeaderViewHolder.java | 70 View container, in CallDetailsHeaderViewHolder() argument 74 super(container); in CallDetailsHeaderViewHolder() 75 context = container.getContext(); in CallDetailsHeaderViewHolder() 76 callbackButton = container.findViewById(R.id.call_back_button); in CallDetailsHeaderViewHolder() 77 nameView = container.findViewById(R.id.contact_name); in CallDetailsHeaderViewHolder() 78 numberView = container.findViewById(R.id.phone_number); in CallDetailsHeaderViewHolder() 79 networkView = container.findViewById(R.id.network); in CallDetailsHeaderViewHolder() 80 contactPhoto = container.findViewById(R.id.quick_contact_photo); in CallDetailsHeaderViewHolder() 82 container.findViewById(R.id.assisted_dialing_text); in CallDetailsHeaderViewHolder() 83 assistedDialingContainer = container.findViewById(R.id.assisted_dialing_container); in CallDetailsHeaderViewHolder()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogAlertManager.java | 34 private final ViewGroup container; field in CallLogAlertManager 41 container = (ViewGroup) view.findViewById(R.id.container); in CallLogAlertManager() 46 return inflater.inflate(layoutId, container, false); in inflate() 57 return container.getChildCount() == 0; in isEmpty() 61 return container.indexOfChild(view) != -1; in contains() 66 container.removeAllViews(); in clear() 75 container.addView(view); in add() 76 if (container.getChildCount() == 1) { in add()
|
D | CallLogModalAlertManager.java | 37 private final ViewGroup container; field in CallLogModalAlertManager 44 container = (ViewGroup) parent.findViewById(R.id.modal_message_container); in CallLogModalAlertManager() 57 container.addView(view); in add() 63 container.removeAllViews(); in clear() 68 return container.getChildCount() == 0; in isEmpty() 72 return container.indexOfChild(view) != -1; in contains()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/ |
D | BasePreviewAdapter.java | 74 public Object instantiateItem(@NonNull ViewGroup container, int position) { in instantiateItem() argument 75 if (ViewCompat.getLayoutDirection(container) == LAYOUT_DIRECTION_RTL) { in instantiateItem() 78 CardView card = (CardView) mInflater.inflate(mPreviewCardResId, container, false); in instantiateItem() 84 container.removeView(card); in instantiateItem() 86 container.addView(card); in instantiateItem() 91 public void destroyItem(@NonNull ViewGroup container, int position, in destroyItem() argument 95 if (card.getParent() == container) { in destroyItem() 96 container.removeView(card); in destroyItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupContainerWithArrow.java | 203 final PopupContainerWithArrow container = in showForIcon() local 206 container.configureForLauncher(launcher); in showForIcon() 209 container.populateAndShow(icon, in showForIcon() 217 container.requestFocus(); in showForIcon() 218 return container; in showForIcon() 374 private void initializeSystemShortcut(int resId, ViewGroup container, SystemShortcut info) { in initializeSystemShortcut() argument 376 resId, container, getInsertIndexForSystemShortcut(container, info)); in initializeSystemShortcut() 393 private int getInsertIndexForSystemShortcut(ViewGroup container, SystemShortcut shortcut) { in getInsertIndexForSystemShortcut() argument 394 final View separator = container.findViewById(R.id.separator); in getInsertIndexForSystemShortcut() 397 container.indexOfChild(separator) : in getInsertIndexForSystemShortcut() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WorkspaceLayoutManager.java | 43 if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT in addInScreenFromBind() 44 || info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT_PREDICTION) { in addInScreenFromBind() 49 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 57 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 72 default void addInScreen(View child, int container, int screenId, int x, int y, in addInScreen() argument 74 if (container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in addInScreen() 88 if (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT in addInScreen() 89 || container == LauncherSettings.Favorites.CONTAINER_HOTSEAT_PREDICTION) { in addInScreen()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | SmartPoster.java | 163 LinearLayout container = new LinearLayout(activity); in getView() local 164 container.setOrientation(LinearLayout.VERTICAL); in getView() 165 container.setLayoutParams(new LayoutParams( in getView() 168 container.addView(mTitleRecord.getView(activity, inflater, container, offset)); in getView() 169 inflater.inflate(R.layout.tag_divider, container); in getView() 170 container.addView(mUriRecord.getView(activity, inflater, container, offset)); in getView() 171 return container; in getView()
|
D | RecordUtils.java | 79 LinearLayout container = new LinearLayout(activity); in getViewsForIntent() local 80 container.setOrientation(LinearLayout.VERTICAL); in getViewsForIntent() 81 container.setLayoutParams(new LayoutParams( in getViewsForIntent() 90 if (container.getChildCount() > 0) { in getViewsForIntent() 91 inflater.inflate(R.layout.tag_divider, container); in getViewsForIntent() 95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent() 98 return container; in getViewsForIntent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
D | MtpPagerAdapter.java | 77 public void finishUpdate(ViewGroup container) { in finishUpdate() argument 79 super.finishUpdate(container); in finishUpdate() 88 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument 90 container.removeView(v); in destroyItem() 96 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument 102 v = (MtpFullscreenView) mInflater.inflate(R.layout.ingest_fullsize, container, false); in instantiateItem() 107 container.addView(v); in instantiateItem()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | NavStateController.java | 74 public NavStateController(View container) { in NavStateController() argument 75 mNavigationState = container; in NavStateController() 76 mSectionManeuver = container.findViewById(R.id.section_maneuver); in NavStateController() 77 mSectionNavigation = container.findViewById(R.id.section_navigation); in NavStateController() 78 mSectionServiceStatus = container.findViewById(R.id.section_service_status); in NavStateController() 80 mManeuver = container.findViewById(R.id.maneuver); in NavStateController() 81 mProvidedManeuver = container.findViewById(R.id.provided_maneuver); in NavStateController() 82 mLane = container.findViewById(R.id.lane); in NavStateController() 83 mProvidedLane = container.findViewById(R.id.provided_lane); in NavStateController() 84 mDistance = container.findViewById(R.id.distance); in NavStateController() [all …]
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | NavStateController.java | 75 public NavStateController(View container, ImageResolver imageResolver) { in NavStateController() argument 76 mNavigationState = container; in NavStateController() 77 mSectionManeuver = container.findViewById(R.id.section_maneuver); in NavStateController() 78 mSectionNavigation = container.findViewById(R.id.section_navigation); in NavStateController() 79 mSectionServiceStatus = container.findViewById(R.id.section_service_status); in NavStateController() 81 mManeuver = container.findViewById(R.id.maneuver); in NavStateController() 82 mProvidedManeuver = container.findViewById(R.id.provided_maneuver); in NavStateController() 83 mLane = container.findViewById(R.id.lane); in NavStateController() 84 mProvidedLane = container.findViewById(R.id.provided_lane); in NavStateController() 85 mDistance = container.findViewById(R.id.distance); in NavStateController() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | ViewUtils.java | 273 public static void setView(@Nullable View view, FrameLayout container) { 276 if (container.getChildCount() == 1 && container.getChildAt(0) == view) { 285 container.removeAllViews(); 286 container.addView(view); 287 container.setVisibility(VISIBLE); 289 if (container.getChildCount() != 0) { 290 container.removeAllViews(); 292 container.setVisibility(INVISIBLE);
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
D | FastScroller.java | 37 private TextView container; field in FastScroller 51 container = findViewById(R.id.fast_scroller_container); in onFinishInflate() 71 container.setVisibility(VISIBLE); in onTouchEvent() 81 container.setVisibility(INVISIBLE); in onTouchEvent() 98 container.setText(adapter.getHeaderString(targetPos)); in setRecyclerViewPosition() 129 int containerHeight = container.getHeight(); in setContainerAndScrollBarPosition() 132 container.setY( in setContainerAndScrollBarPosition()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FragmentTabPagerAdapter.kt | 85 override fun startUpdate(container: ViewGroup) { in startUpdate() 86 check(container.id != View.NO_ID) { "ViewPager with adapter $this has no id" } in startUpdate() 89 override fun instantiateItem(container: ViewGroup, position: Int): Any { in instantiateItem() 101 mCurrentTransaction!!.add(container.id, fragment, tab.name) in instantiateItem() 112 override fun destroyItem(container: ViewGroup, position: Int, any: Any) { in destroyItem() 121 override fun setPrimaryItem(container: ViewGroup, position: Int, any: Any) { in setPrimaryItem() 134 override fun finishUpdate(container: ViewGroup) { in finishUpdate()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ViewsStateBundle.java | 115 SparseArray<Parcelable> container = childStates.getSparseParcelableArray(key); in loadView() local 116 if (container != null) { in loadView() 117 view.restoreHierarchyState(container); in loadView() 129 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in saveViewUnchecked() local 130 view.saveHierarchyState(container); in saveViewUnchecked() 131 childStates.putSparseParcelableArray(key, container); in saveViewUnchecked()
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 95 RestrictionModeContainer container = new RestrictionModeContainer(); in CarUxRestrictionsConfiguration() local 97 container.setRestrictionsForDriveState(drivingState, in CarUxRestrictionsConfiguration() 101 mRestrictionModes.put(mode, container); in CarUxRestrictionsConfiguration() 257 private void writeRestrictionMode(JsonWriter writer, RestrictionModeContainer container) in writeRestrictionMode() argument 261 writeRestrictionsList(writer, container.getRestrictionsForDriveState(DRIVING_STATE_PARKED)); in writeRestrictionMode() 264 writeRestrictionsList(writer, container.getRestrictionsForDriveState(DRIVING_STATE_IDLING)); in writeRestrictionMode() 267 writeRestrictionsList(writer, container.getRestrictionsForDriveState(DRIVING_STATE_MOVING)); in writeRestrictionMode() 271 container.getRestrictionsForDriveState(DRIVING_STATE_UNKNOWN)); in writeRestrictionMode() 635 RestrictionModeContainer container = new RestrictionModeContainer(); in CarUxRestrictionsConfiguration() local 639 container.setRestrictionsForDriveState(drivingState, restrictions); in CarUxRestrictionsConfiguration() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/ |
D | HistoryItemActionBottomSheet.java | 121 LinearLayout container = Assert.isNotNull(findViewById(R.id.action_container)); in onCreate() local 124 container.addView(getDividerView(container)); in onCreate() 126 container.addView(getModuleView(container, module)); in onCreate() 220 private View getDividerView(ViewGroup container) { in getDividerView() argument 222 return inflater.inflate(R.layout.divider_layout, container, false); in getDividerView() 225 private View getModuleView(ViewGroup container, HistoryItemActionModule module) { in getModuleView() argument 227 View moduleView = inflater.inflate(R.layout.module_layout, container, false); in getModuleView()
|