Home
last modified time | relevance | path

Searched refs:parentType (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DFragmentUtils.java48 public static <T> T getParent(@NonNull Fragment fragment, @NonNull Class<T> parentType) { in getParent() argument
49 if (parentType.isInstance(sParentForTesting)) { in getParent()
56 if (parentType.isInstance(parentFragment)) { in getParent()
63 if (parentType.isInstance(activity)) { in getParent()
78 public static <T> T requireParent(@NonNull Fragment fragment, @NonNull Class<T> parentType) { in requireParent() argument
79 return Objects.requireNonNull(getParent(fragment, parentType)); in requireParent()
89 public static void checkParent(@NonNull Fragment fragment, @NonNull Class<?> parentType) in checkParent() argument
94 if (FragmentUtils.getParent(fragment, parentType) != null) { in checkParent()
106 + parentType.getName() in checkParent()
115 + parentType.getName() in checkParent()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailboxUtilities.java57 int parentType = parentCursor.getInt(Mailbox.CONTENT_TYPE_COLUMN); in setFlagsAndChildrensParentKey() local
60 if (parentType <= Mailbox.TYPE_NOT_EMAIL) { in setFlagsAndChildrensParentKey()
64 if (parentType == Mailbox.TYPE_MAIL || parentType == Mailbox.TYPE_TRASH || in setFlagsAndChildrensParentKey()
65 parentType == Mailbox.TYPE_JUNK || parentType == Mailbox.TYPE_INBOX) { in setFlagsAndChildrensParentKey()
95 parentType); in setFlagsAndChildrensParentKey()