HomeSort by relevance Sort by last modified time
    Searched refs:Supplier (Results 1 - 25 of 587) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/util/stream/
TerminalSink.java 27 import java.util.function.Supplier;
38 interface TerminalSink<T, R> extends Sink<T>, Supplier<R> { }
  /external/mockito/src/main/java/org/mockito/internal/util/
Supplier.java 14 public interface Supplier<T> {
  /libcore/ojluni/src/main/java/java/util/function/
Supplier.java 28 * Represents a supplier of results.
31 * time the supplier is invoked.
36 * @param <T> the type of results supplied by this supplier
41 public interface Supplier<T> {
  /packages/apps/Dialer/java/com/android/dialer/function/
Supplier.java 19 public interface Supplier<T> {
  /packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
AEMeteringRegion.java 22 import com.google.common.base.Supplier;
28 class AEMeteringRegion implements Supplier<MeteringRectangle[]> {
29 private final Supplier<MeteringParameters> mMeteringParameters;
30 private final Supplier<Rect> mCropRegion;
32 public AEMeteringRegion(Supplier<MeteringParameters> meteringParameters,
33 Supplier<Rect> cropRegion) {
AFMeteringRegion.java 22 import com.google.common.base.Supplier;
28 class AFMeteringRegion implements Supplier<MeteringRectangle[]> {
29 private final Supplier<MeteringParameters> mMeteringParameters;
30 private final Supplier<Rect> mCropRegion;
32 public AFMeteringRegion(Supplier<MeteringParameters> meteringParameters,
33 Supplier<Rect> cropRegion) {
  /prebuilts/jdk/jdk8/darwin-x86/sample/annotations/Validator/src/
PositiveIntegerSupplier.java 39 import java.util.function.Supplier;
48 public class PositiveIntegerSupplier implements Supplier<String> {
Validator.java 40 import java.util.function.Supplier;
54 * @param string - a string supplier
58 void validate(Supplier<?> string) throws ValidationException {
74 * @param string - an string supplier
78 void validate(Supplier<?> string) throws ValidationException {
92 * Checks that the supplier is valid.
94 * @param string - a string supplier
97 abstract void validate(Supplier<?> string) throws ValidationException;
SupplierValidator.java 40 import java.util.function.Supplier;
43 * Validates the supplier.
48 * Validates the supplier.
50 * @param supplier - Supplier that needs to be validated.
51 * @return true if supplier has passed validation check. False otherwise.
53 public static boolean validate(Supplier<?> supplier) {
55 : supplier.getClass().getAnnotationsByType(Validate.class)) {
57 annotation.value().validate(supplier);
    [all...]
  /prebuilts/jdk/jdk8/linux-x86/sample/annotations/Validator/src/
PositiveIntegerSupplier.java 39 import java.util.function.Supplier;
48 public class PositiveIntegerSupplier implements Supplier<String> {
Validator.java 40 import java.util.function.Supplier;
54 * @param string - a string supplier
58 void validate(Supplier<?> string) throws ValidationException {
74 * @param string - an string supplier
78 void validate(Supplier<?> string) throws ValidationException {
92 * Checks that the supplier is valid.
94 * @param string - a string supplier
97 abstract void validate(Supplier<?> string) throws ValidationException;
SupplierValidator.java 40 import java.util.function.Supplier;
43 * Validates the supplier.
48 * Validates the supplier.
50 * @param supplier - Supplier that needs to be validated.
51 * @return true if supplier has passed validation check. False otherwise.
53 public static boolean validate(Supplier<?> supplier) {
55 : supplier.getClass().getAnnotationsByType(Validate.class)) {
57 annotation.value().validate(supplier);
    [all...]
  /developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DialogsItem.java 20 import java.util.function.Supplier;
24 private final Supplier<Dialog> mSupplier;
26 public DialogsItem(int itemId, Supplier<Dialog> supplier) {
28 mSupplier = supplier;
35 public Supplier<Dialog> getSupplier() {
  /developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DialogsItem.java 20 import java.util.function.Supplier;
24 private final Supplier<Dialog> mSupplier;
26 public DialogsItem(int itemId, Supplier<Dialog> supplier) {
28 mSupplier = supplier;
35 public Supplier<Dialog> getSupplier() {
  /packages/apps/Camera2/src/com/android/camera/one/v2/common/
ControlModeSelector.java 23 import com.google.common.base.Supplier;
28 public class ControlModeSelector implements Supplier<Integer> {
29 private final Supplier<Boolean> mHdrSetting;
30 private final Supplier<FaceDetectMode> mFaceDetectMode;
34 Supplier<Boolean> hdrSetting,
35 Supplier<FaceDetectMode> faceDetectMode,
FlashBasedAEMode.java 22 import com.google.common.base.Supplier;
27 public class FlashBasedAEMode implements Supplier<Integer> {
28 private final Supplier<OneCamera.PhotoCaptureParameters.Flash> mFlash;
29 private final Supplier<Boolean> mHdrSceneMode;
32 Supplier<OneCamera.PhotoCaptureParameters.Flash> flash,
33 Supplier<Boolean> hdrSceneMode) {
StatisticsFaceDetectMode.java 22 import com.google.common.base.Supplier;
28 public class StatisticsFaceDetectMode implements Supplier<Integer> {
29 private final Supplier<FaceDetectMode> mFaceDetectMode;
31 public StatisticsFaceDetectMode(Supplier<FaceDetectMode> faceDetectMode) {
ZoomedCropRegion.java 22 import com.google.common.base.Supplier;
27 public class ZoomedCropRegion implements Supplier<Rect> {
29 private final Supplier<Float> mZoom;
31 public ZoomedCropRegion(Rect sensorArrayArea, Supplier<Float> zoom) {
  /external/guava/guava/src/com/google/common/base/
Supplier.java 30 public interface Supplier<T> {
Suppliers.java 43 * Returns a new supplier which is the composition of the provided function
44 * and supplier. In other words, the new supplier's value will be computed by
45 * retrieving the value from {@code supplier}, and then applying
46 * {@code function} to that value. Note that the resulting supplier will not
47 * call {@code supplier} or invoke {@code function} until it is called.
49 public static <F, T> Supplier<T> compose(
50 Function<? super F, T> function, Supplier<F> supplier) {
52 Preconditions.checkNotNull(supplier);
59 final Supplier<F> supplier; field in class:Suppliers.SupplierComposition
    [all...]
  /frameworks/base/core/tests/coretests/src/android/content/pm/
PackageSharedLibraryUpdaterTest.java 18 import java.util.function.Supplier;
26 Supplier<PackageSharedLibraryUpdater> updaterSupplier) {
  /packages/apps/Camera2/src/com/android/camera/one/v2/photo/
ImageRotationCalculator.java 21 import com.google.common.base.Supplier;
38 * Returns a supplier of the correct JPEG orientation based on the
41 * @return Supplier of the JPEG rotation that needs to be applied to the
44 public Supplier<Integer> getSupplier();
  /external/guava/guava/src/com/google/common/cache/
LongAddables.java 20 import com.google.common.base.Supplier;
32 private static final Supplier<LongAddable> SUPPLIER;
35 Supplier<LongAddable> supplier; external variable declarations
38 supplier = new Supplier<LongAddable>() {
45 supplier = new Supplier<LongAddable>() {
52 SUPPLIER = supplier
    [all...]
  /tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/
CachedSupplier.java 19 import java.util.function.Supplier;
23 * Supplier that will cache a computed value and always supply the same value. It can be used to
60 * Actual supplier of data, if computation is needed.
63 private final Supplier<T> supplier; field in class:CachedSupplier
66 * Creates a new supplier.
68 public CachedSupplier(@Nonnull Supplier<T> supplier) {
70 this.supplier = supplier;
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
SuppliersTest.java 38 Supplier<Integer> fiveSupplier = new Supplier<Integer>() {
53 Supplier<Integer> squareSupplier = Suppliers.compose(intValueFunction,
60 Supplier<ArrayList<Integer>> listSupplier
61 = new Supplier<ArrayList<Integer>>() {
78 Supplier<List<Integer>> addSupplier = Suppliers.compose(addElementFunction,
86 static class CountingSupplier implements Supplier<Integer>, Serializable {
98 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier);
104 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier);
109 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier)
159 Supplier<Integer> supplier = Suppliers.ofInstance(14); local
    [all...]

Completed in 1195 milliseconds

1 2 3 4 5 6 7 8 91011>>