Home
last modified time | relevance | path

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

12345678910>>...29

/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/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/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java91 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
96 view = mInflater.inflate(R.layout.notification_header_template, parent, false); in onCreateViewHolder()
100 view = mInflater.inflate(R.layout.notification_footer_template, parent, false); in onCreateViewHolder()
106 R.layout.group_notification_template, parent, false); in onCreateViewHolder()
111 .inflate(R.layout.group_summary_notification_template, parent, false); in onCreateViewHolder()
116 .inflate(R.layout.call_notification_template, parent, false); in onCreateViewHolder()
121 R.layout.car_emergency_notification_template, parent, false); in onCreateViewHolder()
126 R.layout.car_warning_notification_template, parent, false); in onCreateViewHolder()
133 R.layout.car_information_notification_template, parent, false); in onCreateViewHolder()
140 R.layout.car_information_notification_template_inner, parent, false); in onCreateViewHolder()
[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()
/packages/apps/UnifiedEmail/assets/
Dscript.js50 var parent = el;
52 while (parent) {
53 result.left += parent.offsetLeft;
54 result.top += parent.offsetTop;
55 parent = parent.offsetParent;
66 var parent = el;
67 while (parent) {
68 if (parent.classList && parent.classList.contains(className)) {
71 parent = parent.parentNode;
73 return parent || null;
[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/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/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/UnifiedEmail/src/com/android/mail/browse/
DConversationViewAdapter.java131 public View createView(Context context, LayoutInflater inflater, ViewGroup parent) { in createView() argument
133 R.layout.conversation_view_header, parent, false); in createView()
181 public View createView(Context context, LayoutInflater inflater, ViewGroup parent) { in createView() argument
183 inflater.inflate(R.layout.conversation_footer, parent, false); in createView()
271 public View createView(Context context, LayoutInflater inflater, ViewGroup parent) { in createView() argument
273 R.layout.conversation_message_header, parent, false); in createView()
415 public View createView(Context context, LayoutInflater inflater, ViewGroup parent) { in createView() argument
417 R.layout.conversation_message_footer, parent, false); in createView()
489 public View createView(Context context, LayoutInflater inflater, ViewGroup parent) { in createView() argument
491 R.layout.super_collapsed_block, parent, false); in createView()
[all …]
/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/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/Launcher3/src/com/android/launcher3/logging/
DStatsLogUtils.java49 ViewParent parent; in getLaunchProviderRecursive() local
51 parent = v.getParent(); in getLaunchProviderRecursive()
58 while (parent != null && count-- > 0) { in getLaunchProviderRecursive()
59 if (parent instanceof LogContainerProvider) { in getLaunchProviderRecursive()
60 return (LogContainerProvider) parent; in getLaunchProviderRecursive()
62 parent = parent.getParent(); in getLaunchProviderRecursive()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMultipart.java49 private Entity parent = null; field in Multipart
84 return parent; in getParent()
90 public void setParent(Entity parent) { in setParent() argument
91 this.parent = parent; in setParent()
93 it.next().setParent(parent); in setParent()
132 it.next().setParent(parent); in setBodyParts()
143 bodyPart.setParent(parent); in addBodyPart()
DEntity.java38 private Entity parent = null; field in Entity
47 return parent; in getParent()
56 public void setParent(Entity parent) { in setParent() argument
57 this.parent = parent; in setParent()
107 ContentTypeField parent = getParent() != null in getMimeType() local
112 return ContentTypeField.getMimeType(child, parent); in getMimeType()
/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/screensavers/PhotoTable/src/com/android/dreams/phototable/
DBummerView.java43 final View parent = (View) BummerView.this.getParent();
44 if (parent == null)
47 final float framew = parent.getMeasuredWidth();
48 final float frameh = parent.getMeasuredHeight();
92 final View parent = (View) this.getParent(); in onAttachedToWindow() local
93 parent.addOnLayoutChangeListener(new OnLayoutChangeListener() { in onAttachedToWindow()
96 if (v == parent && right != oldRight) { in onAttachedToWindow()

12345678910>>...29