Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/linear/
DLinearDividerItemDecoration.java53 public void onDraw(Canvas canvas, RecyclerView parent, RecyclerView.State state) { in onDraw() argument
55 drawHorizontalDividers(canvas, parent); in onDraw()
57 drawVerticalDividers(canvas, parent); in onDraw()
71 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
72 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
74 if (parent.getChildAdapterPosition(view) == 0) { in getItemOffsets()
78 mOrientation = ((LinearLayoutManager) parent.getLayoutManager()).getOrientation(); in getItemOffsets()
93 private void drawHorizontalDividers(Canvas canvas, RecyclerView parent) { in drawHorizontalDividers() argument
95 parent.getPaddingTop() + (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
97 int parentBottom = parent.getHeight() - parent.getPaddingBottom() in drawHorizontalDividers()
[all …]
DLinearOffsetItemDecoration.java91 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
92 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
94 if (mOffsetPosition == OffsetPosition.START && parent.getChildAdapterPosition(view) > 0) { in getItemOffsets()
100 && parent.getChildAdapterPosition(view) != itemCount - 1) { in getItemOffsets()
104 mOrientation = ((LinearLayoutManager) parent.getLayoutManager()).getOrientation(); in getItemOffsets()
144 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument
145 super.onDraw(c, parent, state); in onDraw()
151 drawOffsetHorizontal(c, parent); in onDraw()
153 drawOffsetVertical(c, parent); in onDraw()
157 private void drawOffsetHorizontal(Canvas canvas, RecyclerView parent) { in drawOffsetHorizontal() argument
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java149 View parent = view; in findParentForDelay() local
150 while (parent.getParent() instanceof View) { in findParentForDelay()
151 parent = (View) parent.getParent(); in findParentForDelay()
152 if (isParentForDelay(parent.getId())) { in findParentForDelay()
153 return parent; in findParentForDelay()
168 private void getTransitionTargets(ViewGroup parent, List<View> transitionTargets) { in getTransitionTargets() argument
169 int count = parent.getChildCount(); in getTransitionTargets()
171 View child = parent.getChildAt(i); in getTransitionTargets()
356 ViewParent parent = child.getParent(); in getRelativeLeft() local
358 while (parent instanceof View) { in getRelativeLeft()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DFragmentUtils.java45 T parent = (T) parentForTesting; in getParent() local
46 return parent; in getParent()
52 T parent = (T) parentFragment; in getParent() local
53 return parent; in getParent()
56 T parent = (T) fragment.getActivity(); in getParent() local
57 return parent; in getParent()
60 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent() local
61 return parent; in getParent()
81 T parent = (T) parentForTesting; in getParent() local
82 return parent; in getParent()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
DVerticalListDividerDecoration.java75 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDrawOver() argument
76 if (parent.getLayoutManager() == null || mDivider == null) { in onDrawOver()
79 drawVertical(c, parent); in onDrawOver()
82 private void drawVertical(Canvas canvas, RecyclerView parent) { in drawVertical() argument
86 if (parent.getClipToPadding()) { in drawVertical()
87 left = parent.getPaddingLeft(); in drawVertical()
88 right = parent.getWidth() - parent.getPaddingRight(); in drawVertical()
89 canvas.clipRect(left, parent.getPaddingTop(), right, in drawVertical()
90 parent.getHeight() - parent.getPaddingBottom()); in drawVertical()
93 right = parent.getWidth(); in drawVertical()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java240 ViewGroup parent = null; in handleHotseatButtonKeyEvent() local
247 parent = iconParent; in handleHotseatButtonKeyEvent()
252 parent = iconParent; in handleHotseatButtonKeyEvent()
260 parent = hotseatParent; in handleHotseatButtonKeyEvent()
270 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1); in handleHotseatButtonKeyEvent()
271 newIcon = parent.getChildAt(0); in handleHotseatButtonKeyEvent()
277 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1); in handleHotseatButtonKeyEvent()
278 newIcon = parent.getChildAt(0); in handleHotseatButtonKeyEvent()
284 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1); in handleHotseatButtonKeyEvent()
285 newIcon = parent.getChildAt(parent.getChildCount() - 1); in handleHotseatButtonKeyEvent()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/grid/
DGridDividerItemDecoration.java61 public void onDrawOver(Canvas canvas, RecyclerView parent, RecyclerView.State state) { in onDrawOver() argument
62 drawVerticalDividers(canvas, parent); in onDrawOver()
63 drawHorizontalDividers(canvas, parent); in onDrawOver()
76 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
88 private void drawHorizontalDividers(Canvas canvas, RecyclerView parent) { in drawHorizontalDividers() argument
89 int childCount = parent.getChildCount(); in drawHorizontalDividers()
102 View firstRowChild = parent.getChildAt(i); in drawHorizontalDividers()
103 View lastRowChild = parent.getChildAt(lastRowChildIndex); in drawHorizontalDividers()
106 firstRowChild.getTop() + (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
111 - (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
[all …]
DGridOffsetItemDecoration.java93 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
94 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets()
97 boolean childIsInTopRow = parent.getChildAdapterPosition(view) < mNumColumns; in getItemOffsets()
112 parent.getChildAdapterPosition(view) >= childCount - lastRowChildCount; in getItemOffsets()
123 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument
124 super.onDraw(c, parent, state); in onDraw()
129 int parentLeft = parent.getPaddingLeft(); in onDraw()
130 int parentRight = parent.getWidth() - parent.getPaddingRight(); in onDraw()
134 int parentTop = parent.getPaddingTop(); in onDraw()
149 View child = parent.getChildAt(i); in onDraw()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailDialogUtil.java39 public static Dialog getDialog(VoicemailSettingsActivity parent, int id) { in getDialog() argument
44 AlertDialog.Builder b = new AlertDialog.Builder(parent); in getDialog()
53 b.setNegativeButton(R.string.close_dialog, parent); in getDialog()
61 b.setNegativeButton(R.string.close_dialog, parent); in getDialog()
66 b.setPositiveButton(R.string.close_dialog, parent); in getDialog()
71 b.setPositiveButton(R.string.close_dialog, parent); in getDialog()
75 b.setPositiveButton(R.string.alert_dialog_yes, parent); in getDialog()
76 b.setNegativeButton(R.string.alert_dialog_no, parent); in getDialog()
82 b.setPositiveButton(R.string.ok, parent); in getDialog()
88 b.setNeutralButton(R.string.close_dialog, parent); in getDialog()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java248 MtpImageView parent = ((WeakReference<MtpImageView>) msg.obj).get(); in handleMessage() local
249 if (parent == null) { in handleMessage()
254 synchronized (parent.mFetchLock) { in handleMessage()
255 parent.mFetchPending = false; in handleMessage()
256 device = parent.mFetchDevice; in handleMessage()
257 objectInfo = parent.mFetchObjectInfo; in handleMessage()
262 Object result = parent.fetchMtpImageDataFromDevice(device, objectInfo); in handleMessage()
266 synchronized (parent.mFetchLock) { in handleMessage()
267 if (parent.mFetchObjectInfo != objectInfo) { in handleMessage()
270 parent.mFetchResult = result; in handleMessage()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallListAdapter.java44 View parent = (View) v.getParent().getParent();
45 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
57 View parent = (View) v.getParent().getParent();
58 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
70 View parent = (View) v.getParent().getParent();
71 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
80 View parent = (View) v.getParent().getParent();
81 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
90 View parent = (View) v.getParent().getParent();
91 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag();
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DFragmentUtils.java51 T parent = (T) sParentForTesting; in getParent() local
52 return parent; in getParent()
58 T parent = (T) parentFragment; in getParent() local
59 return parent; in getParent()
65 T parent = (T) activity; in getParent() local
66 return parent; in getParent()
97 String parent; in checkParent() local
100 parent = fragment.getActivity().getClass().getName(); in checkParent()
102 parent = fragment.getHost().getClass().getName(); in checkParent()
110 parent = fragment.getParentFragment().getClass().getName(); in checkParent()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DImportancePreference.java165 void setImportanceSummary(ViewGroup parent, int importance, boolean fromUser) { in setImportanceSummary() argument
169 TransitionManager.beginDelayedTransition(parent, transition); in setImportanceSummary()
176 parent.findViewById(R.id.silence_summary).setVisibility(GONE); in setImportanceSummary()
177 ((ImageView) parent.findViewById(R.id.silence_icon)).setImageTintList(colorNormal); in setImportanceSummary()
178 ((TextView) parent.findViewById(R.id.silence_label)).setTextColor(colorNormal); in setImportanceSummary()
180 ((ImageView) parent.findViewById(R.id.alert_icon)).setImageTintList(colorAccent); in setImportanceSummary()
181 ((TextView) parent.findViewById(R.id.alert_label)).setTextColor(colorAccent); in setImportanceSummary()
183 parent.findViewById(R.id.alert_summary).setVisibility(VISIBLE); in setImportanceSummary()
185 parent.findViewById(R.id.alert_summary).setVisibility(GONE); in setImportanceSummary()
186 ((ImageView) parent.findViewById(R.id.alert_icon)).setImageTintList(colorNormal); in setImportanceSummary()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java65 final MessagePartData attachmentData, final ViewGroup parent, in createAttachmentPreview() argument
71 attachmentView = createPendingAttachmentPreview(layoutInflater, parent, in createAttachmentPreview()
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()
150 final MessagePartData attachmentData, final ViewGroup parent, in createImagePreview() argument
167 final View view = layoutInflater.inflate(layoutId, parent, false /* attachToRoot */); in createImagePreview()
188 parent.getResources().getString(R.string.message_image_content_description)); in createImagePreview()
193 final ViewGroup parent, final PendingAttachmentData attachmentData) { in createPendingAttachmentPreview() argument
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/toast/
DSnackbarSlidingBehavior.java36 public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) { in layoutDependsOn() argument
41 public boolean onDependentViewChanged(CoordinatorLayout parent, View child, View dependency) { in onDependentViewChanged() argument
42 updateTranslationY(parent, child); in onDependentViewChanged()
47 public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) { in onDependentViewRemoved() argument
48 updateTranslationY(parent, child); in onDependentViewRemoved()
52 public boolean onLayoutChild(CoordinatorLayout parent, View child, int layoutDirection) { in onLayoutChild() argument
53 updateTranslationY(parent, child); in onLayoutChild()
57 private void updateTranslationY(CoordinatorLayout parent, View child) { in updateTranslationY() argument
59 for (View dependency : parent.getDependencies(child)) { in updateTranslationY()
DSnackbarSlidingBehavior.kt38 parent: CoordinatorLayout, in layoutDependsOn()
46 parent: CoordinatorLayout, in onDependentViewChanged()
50 updateTranslationY(parent, child) in onDependentViewChanged()
54 override fun onDependentViewRemoved(parent: CoordinatorLayout, child: View, dependency: View) { in onDependentViewRemoved()
55 updateTranslationY(parent, child) in onDependentViewRemoved()
59 parent: CoordinatorLayout, in onLayoutChild()
63 updateTranslationY(parent, child) in onLayoutChild()
67 private fun updateTranslationY(parent: CoordinatorLayout, child: View) { in updateTranslationY()
69 for (dependency in parent.getDependencies(child)) { in updateTranslationY()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java95 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
100 view = mInflater.inflate(R.layout.notification_header_template, parent, false); in onCreateViewHolder()
104 view = mInflater.inflate(R.layout.notification_footer_template, parent, false); in onCreateViewHolder()
110 R.layout.group_notification_template, parent, false); in onCreateViewHolder()
115 .inflate(R.layout.group_summary_notification_template, parent, false); in onCreateViewHolder()
120 .inflate(R.layout.call_notification_template, parent, false); in onCreateViewHolder()
125 R.layout.car_emergency_notification_template, parent, false); in onCreateViewHolder()
130 R.layout.car_warning_notification_template, parent, false); in onCreateViewHolder()
137 R.layout.car_information_notification_template, parent, false); in onCreateViewHolder()
144 R.layout.car_information_notification_template_inner, parent, false); in onCreateViewHolder()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java192 StubDocument parent = mStorage.get(parentId); in createDocument() local
193 File file = createFile(parent, mimeType, displayName); in createDocument()
195 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); in createDocument()
588 StubDocument parent = mStorage.get(parentId); in createDocument() local
589 File file = createFile(parent, mimeType, displayName); in createDocument()
591 final StubDocument document = StubDocument.createDocumentWithFlags(file, mimeType, parent, in createDocument()
603 private File createFile(StubDocument parent, String mimeType, String displayName) in createFile() argument
605 if (parent == null) { in createFile()
609 if (!parent.file.isDirectory()) { in createFile()
612 + parent.file.getName()); in createFile()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAlertManager.java33 private final ViewGroup parent; field in CallLogAlertManager
36 public CallLogAlertManager(CallLogAdapter adapter, LayoutInflater inflater, ViewGroup parent) { in CallLogAlertManager() argument
39 this.parent = parent; in CallLogAlertManager()
40 view = inflater.inflate(R.layout.call_log_alert_item, parent, false); in CallLogAlertManager()
49 public RecyclerView.ViewHolder createViewHolder(ViewGroup parent) { in createViewHolder() argument
51 parent == this.parent, in createViewHolder()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java246 public static void show(DataUsageEditController parent, boolean isLimit) { in show() argument
247 if (!(parent instanceof Fragment)) { in show()
250 Fragment targetFragment = (Fragment) parent; in show()
256 args.putParcelable(EXTRA_TEMPLATE, parent.getNetworkTemplate()); in show()
355 public static void show(BillingCycleSettings parent) { in show() argument
356 if (!parent.isAdded()) return; in show()
359 args.putParcelable(EXTRA_TEMPLATE, parent.mNetworkTemplate); in show()
363 dialog.setTargetFragment(parent, 0); in show()
364 dialog.show(parent.getFragmentManager(), TAG_CYCLE_EDITOR); in show()
424 public static void show(BillingCycleSettings parent) { in show() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DBillingCycleSettings.java246 public static void show(DataUsageEditController parent, boolean isLimit) { in show() argument
247 if (!(parent instanceof Fragment)) { in show()
250 Fragment targetFragment = (Fragment) parent; in show()
256 args.putParcelable(EXTRA_TEMPLATE, parent.getNetworkTemplate()); in show()
355 public static void show(BillingCycleSettings parent) { in show() argument
356 if (!parent.isAdded()) return; in show()
359 args.putParcelable(EXTRA_TEMPLATE, parent.mNetworkTemplate); in show()
363 dialog.setTargetFragment(parent, 0); in show()
364 dialog.show(parent.getFragmentManager(), TAG_CYCLE_EDITOR); in show()
424 public static void show(BillingCycleSettings parent) { in show() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DRemoveAccountPreferenceController.java61 public RemoveAccountPreferenceController(Context context, Fragment parent) { in RemoveAccountPreferenceController() argument
63 mParentFragment = parent; in RemoveAccountPreferenceController()
114 Fragment parent, Account account, UserHandle userHandle) { in show() argument
115 if (!parent.isAdded()) { in show()
123 dialog.setTargetFragment(parent, 0); in show()
124 dialog.show(parent.getFragmentManager(), REMOVE_ACCOUNT_DIALOG); in show()
190 public static void show(Fragment parent) { in show() argument
191 if (!parent.isAdded()) { in show()
195 dialog.setTargetFragment(parent, 0); in show()
196 dialog.show(parent.getFragmentManager(), FAILED_REMOVAL_DIALOG); in show()
/packages/apps/Settings/src/com/android/settings/accounts/
DRemoveAccountPreferenceController.java60 public RemoveAccountPreferenceController(Context context, Fragment parent) { in RemoveAccountPreferenceController() argument
62 mParentFragment = parent; in RemoveAccountPreferenceController()
113 Fragment parent, Account account, UserHandle userHandle) { in show() argument
114 if (!parent.isAdded()) { in show()
122 dialog.setTargetFragment(parent, 0); in show()
123 dialog.show(parent.getFragmentManager(), REMOVE_ACCOUNT_DIALOG); in show()
188 public static void show(Fragment parent) { in show() argument
189 if (!parent.isAdded()) { in show()
193 dialog.setTargetFragment(parent, 0); in show()
195 dialog.show(parent.getFragmentManager(), FAILED_REMOVAL_DIALOG); in show()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DSeriesDetailsActivity.java187 @NonNull ViewGroup parent) { in updateViews()
188 return getView(android.R.layout.simple_spinner_item, position, convertView, parent); in updateViews()
193 @NonNull ViewGroup parent) { in updateViews()
195 position, convertView, parent); in updateViews()
199 @NonNull ViewGroup parent) { in updateViews()
202 view = getInflater().inflate(resource, parent, false); in updateViews()
240 @NonNull ViewGroup parent, int viewType) { in onCreateViewHolder()
241 return new EpisodeViewHolder(LayoutInflater.from(parent.getContext()) in onCreateViewHolder()
242 .inflate(viewType, parent, false)); in onCreateViewHolder()
268 public void onItemSelected(@NonNull AdapterView<?> parent, @NonNull View view, in onItemSelected() argument
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DStatsLogUtils.java52 ViewParent parent; in getLaunchProviderRecursive() local
54 parent = v.getParent(); in getLaunchProviderRecursive()
61 while (parent != null && count-- > 0) { in getLaunchProviderRecursive()
62 if (parent instanceof LogContainerProvider) { in getLaunchProviderRecursive()
63 return (LogContainerProvider) parent; in getLaunchProviderRecursive()
65 parent = parent.getParent(); in getLaunchProviderRecursive()

12345678910>>...28