Searched refs:parent (Results 276 - 300 of 864) sorted by relevance

<<11121314151617181920>>

/frameworks/support/leanback/src/main/java/androidx/leanback/app/
H A DBrandedSupportFragment.java59 * @param parent Parent of title view.
65 public View onInflateTitleView(LayoutInflater inflater, ViewGroup parent, argument
68 boolean found = parent.getContext().getTheme().resolveAttribute(
71 parent, false);
75 * Inflate title view and add to parent. This method should be called in
79 * @param parent Parent of title view.
83 public void installTitleView(LayoutInflater inflater, ViewGroup parent, argument
85 View titleLayoutRoot = onInflateTitleView(inflater, parent, savedInstanceState);
87 parent.addView(titleLayoutRoot);
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DVerticalGridPresenter.java234 public final ViewHolder onCreateViewHolder(ViewGroup parent) { argument
235 ViewHolder vh = createGridViewHolder(parent);
248 protected ViewHolder createGridViewHolder(ViewGroup parent) { argument
249 View root = LayoutInflater.from(parent.getContext()).inflate(
250 R.layout.lb_vertical_grid, parent, false);
294 public void onChildSelected(ViewGroup parent, View view, int position, long id) {
H A DGuidedActionAdapter.java302 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { argument
303 GuidedActionsStylist.ViewHolder vh = mStylist.onCreateViewHolder(parent, viewType);
406 ViewParent parent = v.getParent();
407 while (parent != getRecyclerView() && parent != null && v != null) {
408 v = (View)parent;
409 parent = parent.getParent();
411 if (parent != null && v != null) {
/frameworks/support/navigation/common/src/main/java/androidx/navigation/
H A DNavDestination.java101 void setParent(NavGraph parent) { argument
102 mParent = parent;
258 NavGraph parent = current.getParent();
259 if (parent == null || parent.getStartDestination() != current.getId()) {
262 current = parent;
274 * {@link #getParent() parent} of this destination if the action destination is not found in
283 // Search the parent for the given action if it is not found in this destination
/frameworks/support/navigation/ui/src/main/java/androidx/navigation/ui/
H A DNavigationUI.java176 ViewParent parent = navigationView.getParent();
177 if (parent instanceof DrawerLayout) {
178 ((DrawerLayout) parent).closeDrawer(navigationView);
237 * the given id is a parent/grandparent/etc of the destination.
255 NavGraph parent = (NavGraph) startDestination;
256 startDestination = parent.findNode(parent.getStartDestination());
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
H A DGridBuilder.java72 * @param parent The builder constructing the parent slice.
74 public GridBuilder(@NonNull ListBuilder parent) { argument
75 super(parent.getImpl().createGridBuilder());
204 * CellBuilder cb = new CellBuilder(parent, sliceUri);
221 * @param parent The builder constructing the parent slice.
223 public CellBuilder(@NonNull GridBuilder parent) { argument
224 super(parent.mImpl.createGridRowBuilder());
231 public CellBuilder(@NonNull GridBuilder parent, argument
[all...]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
H A DWorkContinuationImpl.java139 for (WorkContinuationImpl parent : parents) {
140 mAllIds.addAll(parent.mAllIds);
179 // and marks them enqueued using the markEnqueued() method, parent first.
196 // and marks them enqueued using the markEnqueued() method, parent first.
268 for (WorkContinuationImpl parent : parents) {
269 // if any of the parent has a cycle, then bail out
270 if (hasCycles(parent, visited)) {
276 // Un-mark the ids of the workContinuation as visited for the next parent.
279 // hasCycles(parent, new HashSet<>(visited)) instead.
294 for (WorkContinuationImpl parent
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DAddPrinterActivity.java262 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
381 public View getView(int position, View convertView, ViewGroup parent) { argument
384 return realPosition.first.getView(realPosition.second, convertView, parent);
535 public View getView(int position, View convertView, ViewGroup parent) { argument
539 parent, false);
550 parent, false);
583 public View getView(int position, View convertView, ViewGroup parent) { argument
587 parent, false);
598 R.layout.disabled_print_services_list_item, parent, false);
684 public View getView(int position, View convertView, ViewGroup parent) { argument
876 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/support/preference/src/main/java/androidx/preference/
H A DPreferenceFragment.java572 * @param parent The parent {@link android.view.View} that the RecyclerView will be attached to.
579 public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, argument
583 parent, false);
779 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { argument
783 final int childCount = parent.getChildCount();
784 final int width = parent.getWidth();
786 final View view = parent.getChildAt(childViewIndex);
787 if (shouldDrawDividerBelow(view, parent)) {
796 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, argument
803 shouldDrawDividerBelow(View view, RecyclerView parent) argument
[all...]
H A DPreferenceFragmentCompat.java572 * @param parent The parent {@link android.view.View} that the RecyclerView will be attached to.
579 public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, argument
582 .inflate(R.layout.preference_recyclerview, parent, false);
779 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { argument
783 final int childCount = parent.getChildCount();
784 final int width = parent.getWidth();
786 final View view = parent.getChildAt(childViewIndex);
787 if (shouldDrawDividerBelow(view, parent)) {
796 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, argument
803 shouldDrawDividerBelow(View view, RecyclerView parent) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java350 public void onItemSelected(AdapterView parent, View v, int position, long id) {
354 public void onNothingSelected(AdapterView parent) {
360 public void onItemClick(AdapterView parent, View v, int position, long id) {
426 public boolean onItemLongClick(AdapterView parent, View v, int position, long id) {
538 * @param parent The parent
543 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
544 return ListItemFactory.text(position, parent.getContext(), getValueAtPosition(position),
551 public View convertView(int position, View convertView, ViewGroup parent) { argument
634 public View getView(int position, View convertView, ViewGroup parent) { argument
[all...]
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
H A DLayoutXmlProcessor.java84 File parent = file.getParentFile();
85 if (inputRoot.equals(parent)) {
87 } else if (layoutFolderFilter.accept(parent, parent.getName())) {
90 callback.processOtherFile(parent, file);
99 File parent = file.getParentFile();
100 if (inputRoot.equals(parent)) {
102 } else if (layoutFolderFilter.accept(parent, parent.getName())) {
105 callback.processRemovedOtherFile(parent, fil
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
H A DFieldReadWriteWriter.kt49 var parent = field.parent
50 while (parent != null) {
51 if (allParents.add(parent)) {
52 parent = parent.parent
73 rootNode.directFields = fieldsWithIndices.filter { it.field.parent == null }
81 val grandParent = fieldParent.parent
85 node.directFields = fieldsWithIndices.filter { it.field.parent
[all...]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DDocumentLoader.java66 * Queries the child documents of given parent.
70 synchronized Cursor queryChildDocuments(String[] columnNames, Identifier parent) argument
72 assert parent.mDeviceId == mDevice.deviceId;
74 LoaderTask task = mTaskList.findTask(parent);
76 if (parent.mDocumentId == null) {
85 task = new LoaderTask(mMtpManager, mDatabase, mDevice.operationsSupported, parent);
214 LoaderTask findTask(Identifier parent) { argument
216 if (get(i).mIdentifier.equals(parent))
236 * Each task is responsible for fetching child documents for the given parent document.
289 * Returns a cursor that traverses the child document of the parent documen
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityStartInterceptor.java204 final UserInfo parent = mUserManager.getProfileParent(mUserId);
205 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid);
223 final UserInfo parent = mUserManager.getProfileParent(mUserId);
224 if (parent != null) {
225 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0,
288 final UserInfo parent = mUserManager.getProfileParent(mUserId);
289 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid);
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java127 protected abstract View newStandAloneView(Context context, ViewGroup parent); argument
130 protected abstract View newGroupView(Context context, ViewGroup parent); argument
134 protected abstract View newChildView(Context context, ViewGroup parent); argument
454 public View getView(int position, View convertView, ViewGroup parent) { argument
460 view = newStandAloneView(mContext, parent);
463 view = newGroupView(mContext, parent);
466 view = newChildView(mContext, parent);
H A DCompositeCursorAdapter.java333 public View getView(int position, View convertView, ViewGroup parent) { argument
345 view = getHeaderView(i, mPartitions.get(i).cursor, convertView, parent);
351 view = getView(i, mPartitions.get(i).cursor, offset, convertView, parent);
369 ViewGroup parent) {
372 : newHeaderView(mContext, partition, cursor, parent);
381 ViewGroup parent) {
395 ViewGroup parent) {
400 view = newView(mContext, partition, cursor, position, parent);
411 ViewGroup parent);
368 getHeaderView(int partition, Cursor cursor, View convertView, ViewGroup parent) argument
380 newHeaderView(Context context, int partition, Cursor cursor, ViewGroup parent) argument
394 getView(int partition, Cursor cursor, int position, View convertView, ViewGroup parent) argument
410 newView(Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
/frameworks/compile/mclinker/lib/LD/
H A DGNUArchiveReader.cpp371 Archive::ArchiveMember* parent = local
374 assert(parent != NULL);
375 pArchive.inputs().insert(parent->lastPos, *(parent->move), *member);
379 parent->move->move(parent->lastPos);
380 parent->move = &InputTree::Afterward;
389 pArchive.addObjectMember(pFileOffset, parent->lastPos);
399 member->name(), parent->lastPos, &InputTree::Downward);
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
H A DPojoProcessorTest.kt77 val parent = """
94 parent.toJFO("foo.bar.x.BaseClass")) { invocation ->
98 parent = null).process()
186 assertThat(pojo.fields[0].parent, nullValue())
187 assertThat(pojo.fields[1].parent, notNullValue())
188 assertThat(pojo.fields[2].parent, notNullValue())
189 val parent = pojo.fields[2].parent!!
190 assertThat(parent.prefix, `is`(""))
191 assertThat(parent
[all...]
/frameworks/support/car/src/androidTest/java/androidx/car/widget/
H A DDividerVisibilityManagerTest.java234 public TestViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { argument
235 LayoutInflater inflater = LayoutInflater.from(parent.getContext());
236 return new TestViewHolder(inflater, parent);
256 TestViewHolder(LayoutInflater inflater, ViewGroup parent) { argument
257 super(inflater.inflate(R.layout.paged_list_item_column_card, parent, false));
H A DPagedListViewSavedStateTest.java195 public TestViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { argument
196 LayoutInflater inflater = LayoutInflater.from(parent.getContext());
197 return new TestViewHolder(inflater, parent);
223 TestViewHolder(LayoutInflater inflater, ViewGroup parent) { argument
224 super(inflater.inflate(R.layout.paged_list_item_column_card, parent, false));
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DPagedListView.java841 * 1) When it enters screen, next pageUp will align its bottom with parent bottom;
842 * 2) When it leaves screen, next pageUp will align its top with parent top.
847 // Child view bottom is entering screen. Align its bottom with parent bottom.
851 // Child view top is about to enter screen - its distance to parent top
852 // is less than a full scroll. Align child top with parent top.
899 * 1) When it enters screen, next pageDown will align its top with parent top;
900 * 2) When it leaves screen, next pageDown will align its bottom with parent bottom.
905 // Child view top is entering screen. Align its top with parent top.
909 // Child view bottom is about to enter screen - its distance to parent bottom
910 // is less than a full scroll. Align child bottom with parent botto
1286 getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) argument
1360 onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) argument
1432 getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) argument
1463 getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) argument
[all...]
/frameworks/base/core/java/android/util/
H A DAtomicFile.java130 File parent = mBaseName.getParentFile();
131 if (!parent.mkdirs()) {
135 parent.getPath(),
/frameworks/base/core/java/android/widget/
H A DForwardingListener.java38 /** Timeout before disallowing intercept on the source's parent. */
191 // Don't let the parent intercept our events.
230 // Don't let the parent intercept our events.
281 final ViewParent parent = mSrc.getParent();
282 if (parent != null) {
283 parent.requestDisallowInterceptTouchEvent(true);
/frameworks/base/core/java/com/android/internal/content/
H A DFileSystemProvider.java111 final File parent = getFileForDocId(parentDocId).getCanonicalFile();
113 return FileUtils.contains(parent, doc);
158 protected final List<String> findDocumentPath(File parent, File doc) argument
165 if (!FileUtils.contains(parent, doc)) {
166 throw new FileNotFoundException(doc + " is not found under " + parent);
170 while (doc != null && FileUtils.contains(parent, doc)) {
184 final File parent = getFileForDocId(docId);
185 if (!parent.isDirectory()) {
189 final File file = FileUtils.buildUniqueFile(parent, mimeType, displayName);
374 final File parent
[all...]

Completed in 5626 milliseconds

<<11121314151617181920>>