@Test public void testProcess() { sFlag = false; Slice.bindSlice(mContext, BASE_URI.buildUpon().appendPath("set_flag").build(), Collections.<SliceSpec>emptySet()); assertFalse(sFlag); }
@RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") @Nullable public static Slice bindSlice(Context context, @NonNull Uri uri, Set<SliceSpec> supportedSpecs) { if (BuildCompat.isAtLeastP()) { return callBindSlice(context, uri, supportedSpecs); } else { return SliceProviderCompat.bindSlice(context, uri, supportedSpecs); } }
Slice { @RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") @Nullable public static Slice bindSlice(Context context, @NonNull Uri uri, Set<SliceSpec> supportedSpecs) { if (BuildCompat.isAtLeastP()) { return callBindSlice(context, uri, supportedSpecs); } else { return SliceProviderCompat.bindSlice(context, uri, supportedSpecs); } } }
Slice { @RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") @Nullable public static Slice bindSlice(Context context, @NonNull Uri uri, Set<SliceSpec> supportedSpecs) { if (BuildCompat.isAtLeastP()) { return callBindSlice(context, uri, supportedSpecs); } else { return SliceProviderCompat.bindSlice(context, uri, supportedSpecs); } } @RestrictTo(Scope.LIBRARY)  Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri,
            SliceSpec spec); @RestrictTo(Scope.LIBRARY)  Slice(Bundle in); }
Slice { @RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") @Nullable public static Slice bindSlice(Context context, @NonNull Uri uri, Set<SliceSpec> supportedSpecs) { if (BuildCompat.isAtLeastP()) { return callBindSlice(context, uri, supportedSpecs); } else { return SliceProviderCompat.bindSlice(context, uri, supportedSpecs); } } @RestrictTo(Scope.LIBRARY)  Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri,
            SliceSpec spec); @RestrictTo(Scope.LIBRARY)  Slice(Bundle in); @RestrictTo(Scope.LIBRARY) Bundle toBundle(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @Nullable SliceSpec getSpec(); Uri getUri(); List<SliceItem> getItems(); @SliceHint List<String> getHints(); @RestrictTo(Scope.LIBRARY_GROUP) boolean hasHint(@SliceHint String hint); @Override String toString(); @RestrictTo(Scope.LIBRARY) String toString(String indent); @RestrictTo(Scope.LIBRARY) static void addHints(StringBuilder sb, String[] hints); @RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") // Lint doesn't understand BuildCompat. @Nullable static Slice bindSlice(Context context, @NonNull Uri uri,
            Set<SliceSpec> supportedSpecs); }
Slice { @RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") @Nullable public static Slice bindSlice(Context context, @NonNull Uri uri, Set<SliceSpec> supportedSpecs) { if (BuildCompat.isAtLeastP()) { return callBindSlice(context, uri, supportedSpecs); } else { return SliceProviderCompat.bindSlice(context, uri, supportedSpecs); } } @RestrictTo(Scope.LIBRARY)  Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri,
            SliceSpec spec); @RestrictTo(Scope.LIBRARY)  Slice(Bundle in); @RestrictTo(Scope.LIBRARY) Bundle toBundle(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @Nullable SliceSpec getSpec(); Uri getUri(); List<SliceItem> getItems(); @SliceHint List<String> getHints(); @RestrictTo(Scope.LIBRARY_GROUP) boolean hasHint(@SliceHint String hint); @Override String toString(); @RestrictTo(Scope.LIBRARY) String toString(String indent); @RestrictTo(Scope.LIBRARY) static void addHints(StringBuilder sb, String[] hints); @RestrictTo(Scope.LIBRARY_GROUP) @SuppressWarnings("NewApi") // Lint doesn't understand BuildCompat. @Nullable static Slice bindSlice(Context context, @NonNull Uri uri,
            Set<SliceSpec> supportedSpecs);  }