@Test public void testIsPermissionSlice() { Uri uri = Uri.parse("content: Slice permissionSlice = SliceProvider.createPermissionSlice(mContext, uri, mContext.getPackageName()); SliceMetadata metadata = SliceMetadata.from(mContext, permissionSlice); assertEquals(true, metadata.isPermissionSlice()); }
public boolean isPermissionSlice() { return mSlice.hasHint(HINT_PERMISSION_REQUEST); }
SliceMetadata { public boolean isPermissionSlice() { return mSlice.hasHint(HINT_PERMISSION_REQUEST); } }
SliceMetadata { public boolean isPermissionSlice() { return mSlice.hasHint(HINT_PERMISSION_REQUEST); } private  SliceMetadata(@NonNull Context context, @NonNull Slice slice); }
SliceMetadata { public boolean isPermissionSlice() { return mSlice.hasHint(HINT_PERMISSION_REQUEST); } private  SliceMetadata(@NonNull Context context, @NonNull Slice slice); static SliceMetadata from(@NonNull Context context, @NonNull Slice slice); @Nullable List<SliceItem> getSliceActions(); @Nullable SliceAction getPrimaryAction(); @EventInfo.SliceRowType int getHeaderType(); boolean hasLargeMode(); List<SliceAction> getToggles(); @Nullable PendingIntent getInputRangeAction(); @Nullable Pair<Integer, Integer> getRange(); @NonNull int getRangeValue(); @Nullable List<String> getSliceKeywords(); int getLoadingState(); long getExpiry(); long getLastUpdatedTime(); boolean isPermissionSlice(); @Nullable @RestrictTo(RestrictTo.Scope.LIBRARY) static List<SliceItem> getSliceActions(@NonNull Slice slice); }
SliceMetadata { public boolean isPermissionSlice() { return mSlice.hasHint(HINT_PERMISSION_REQUEST); } private  SliceMetadata(@NonNull Context context, @NonNull Slice slice); static SliceMetadata from(@NonNull Context context, @NonNull Slice slice); @Nullable List<SliceItem> getSliceActions(); @Nullable SliceAction getPrimaryAction(); @EventInfo.SliceRowType int getHeaderType(); boolean hasLargeMode(); List<SliceAction> getToggles(); @Nullable PendingIntent getInputRangeAction(); @Nullable Pair<Integer, Integer> getRange(); @NonNull int getRangeValue(); @Nullable List<String> getSliceKeywords(); int getLoadingState(); long getExpiry(); long getLastUpdatedTime(); boolean isPermissionSlice(); @Nullable @RestrictTo(RestrictTo.Scope.LIBRARY) static List<SliceItem> getSliceActions(@NonNull Slice slice); static final int LOADED_NONE; static final int LOADED_PARTIAL; static final int LOADED_ALL; }