/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
H A D | BrandedSupportFragment.java | 59 * @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 D | VerticalGridPresenter.java | 234 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 D | GuidedActionAdapter.java | 302 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 D | NavDestination.java | 101 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 D | NavigationUI.java | 176 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 D | GridBuilder.java | 72 * @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 D | WorkContinuationImpl.java | 139 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 D | AddPrinterActivity.java | 262 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 D | PreferenceFragment.java | 572 * @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 D | PreferenceFragmentCompat.java | 572 * @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 D | ListScenario.java | 350 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 D | LayoutXmlProcessor.java | 84 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 D | FieldReadWriteWriter.kt | 49 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 D | DocumentLoader.java | 66 * 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 D | ActivityStartInterceptor.java | 204 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 D | GroupingListAdapter.java | 127 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 D | CompositeCursorAdapter.java | 333 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 D | GNUArchiveReader.cpp | 371 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 D | PojoProcessorTest.kt | 77 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 D | DividerVisibilityManagerTest.java | 234 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 D | PagedListViewSavedStateTest.java | 195 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 D | PagedListView.java | 841 * 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 D | AtomicFile.java | 130 File parent = mBaseName.getParentFile(); 131 if (!parent.mkdirs()) { 135 parent.getPath(),
|
/frameworks/base/core/java/android/widget/ |
H A D | ForwardingListener.java | 38 /** 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 D | FileSystemProvider.java | 111 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...] |