Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/packages/apps/TV/tuner/res/raw/
Dut_euro_dvbt_all1 # Euro DVB-T frequencies
4 T 474000000 QAM16
5 T 474000000 QAM64
6 T 474167000 QAM16
7 T 474167000 QAM64
8 T 481833000 QAM16
9 T 481833000 QAM64
10 T 481833330 QAM64
11 T 482000000 QAM16
12 T 482167000 QAM16
[all …]
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/
DLiveDataFunctions.java60 public static <T> LiveData<T> nullLiveData() { in nullLiveData()
66 return (LiveData<T>) sNullLiveData; in nullLiveData()
86 public static <T> MutableLiveData<T> dataOf(@Nullable T value) { in dataOf()
87 MutableLiveData<T> data = new MutableLiveData<>(); in dataOf()
112 public static <T> LiveData<T> distinct(@NonNull LiveData<T> source) { in distinct()
120 public static <T> LiveData<T> distinct(@NonNull LiveData<T> source, in distinct()
121 @NonNull BiPredicate<T, T> areEqual) { in distinct() argument
122 return new MediatorLiveData<T>() { in distinct()
145 public static <T> LiveData<T> freezable(@NonNull LiveData<Boolean> isFrozen, in freezable()
146 @NonNull LiveData<T> source) { in freezable()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dpointer.h230 template <typename T>
231 …RAPIDJSON_DISABLEIF_RETURN((internal::NotExpr<internal::IsSame<typename internal::RemoveConst<T>::…
232 Append(T* name, Allocator* allocator = 0) const {
530 template <typename T>
531 …RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr<internal::IsPointer<T>, internal::IsGenericValue<T> >…
532 …GetWithDefault(ValueType& root, T defaultValue, typename ValueType::AllocatorType& allocator) cons… in GetWithDefault()
560 template <typename T, typename stackAllocator>
561 …RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr<internal::IsPointer<T>, internal::IsGenericValue<T> >…
562 …EncodingType, typename ValueType::AllocatorType, stackAllocator>& document, T defaultValue) const { in GetWithDefault()
606 template <typename T>
[all …]
/packages/apps/Gallery2/jni/filters/
Dkmeans.h25 template <typename T, typename N>
26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum()
39 template <typename T, typename N>
40 inline void set(T val1[], N val2[], int dimension) { in set()
47 template <typename T, typename N>
48 inline void add(T val[], N dst[], int dimension) { in add()
55 template <typename T, typename N>
56 inline void divide(T dst[], N divisor, int dimension) { in divide()
70 template <typename T, typename N>
71 inline N euclideanDist(T val1[], T val2[], int dimension) { in euclideanDist()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaResourceManager.java93 public interface MediaResourceLoadListener<T extends RefCountedMediaResource> {
94 void onMediaResourceLoaded(MediaRequest<T> request, T resource, boolean cached); in onMediaResourceLoaded()
95 void onMediaResourceLoadError(MediaRequest<T> request, Exception exception); in onMediaResourceLoadError()
126 public <T extends RefCountedMediaResource> void requestMediaResourceAsync( in requestMediaResourceAsync()
127 final MediaRequest<T> mediaRequest) { in requestMediaResourceAsync()
136 public <T extends RefCountedMediaResource> T requestMediaResourceSync( in requestMediaResourceSync()
137 final MediaRequest<T> mediaRequest) { in requestMediaResourceSync()
140 MediaLoadingResult<T> loadResult = null; in requestMediaResourceSync()
159 private <T extends RefCountedMediaResource> MediaLoadingResult<T> processMediaRequestInternal( in processMediaRequestInternal()
160 final MediaRequest<T> mediaRequest) in processMediaRequestInternal()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dmeta.h38 template <typename T> struct Void { typedef void Type; };
73 template <typename T> struct AddConst { typedef const T Type; };
74 template <bool Constify, typename T> struct MaybeAddConst : SelectIfCond<Constify, const T, T> {};
75 template <typename T> struct RemoveConst { typedef T Type; };
76 template <typename T> struct RemoveConst<const T> { typedef T Type; };
82 template <typename T, typename U> struct IsSame : FalseType {};
83 template <typename T> struct IsSame<T, T> : TrueType {};
85 template <typename T> struct IsConst : FalseType {};
86 template <typename T> struct IsConst<const T> : TrueType {};
88 template <typename CT, typename T>
[all …]
Dstack.h110 template<typename T>
111 RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) {
113 if (stackTop_ + sizeof(T) * count >= stackEnd_)
114 Expand<T>(count);
116 T* ret = reinterpret_cast<T*>(stackTop_);
117 stackTop_ += sizeof(T) * count;
121 template<typename T>
122 T* Pop(size_t count) { in Pop()
123 RAPIDJSON_ASSERT(GetSize() >= count * sizeof(T)); in Pop()
124 stackTop_ -= count * sizeof(T); in Pop()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java47 public final class CarPropertyConfig<T> implements Parcelable {
56 private final SparseArray<AreaConfig<T>> mSupportedAreas;
57 private final Class<T> mType;
62 SparseArray<AreaConfig<T>> supportedAreas, Class<T> type) { in CarPropertyConfig()
211 public Class<T> getPropertyType() { in getPropertyType()
289 public T getMinValue(int areaId) { in getMinValue()
290 AreaConfig<T> area = mSupportedAreas.get(areaId); in getMinValue()
300 public T getMaxValue(int areaId) { in getMaxValue()
301 AreaConfig<T> area = mSupportedAreas.get(areaId); in getMaxValue()
310 public T getMinValue() { in getMinValue()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/util/
DCollectionUtils.java35 public static <T> T[] concatAll(T[] first, T[]... rest) { in concatAll()
37 for (T[] array : rest) { in concatAll()
40 T[] result = Arrays.copyOf(first, totalLength); in concatAll()
42 for (T[] array : rest) { in concatAll()
55 public static <T> List<T> union( in union()
56 Collection<T> originals, Collection<T> toAdds, Comparator<T> comparator) { in union()
57 List<T> result = new ArrayList<>(originals); in union()
59 List<T> resultToAdd = new ArrayList<>(); in union()
60 for (T toAdd : toAdds) { in union()
70 public static <T> List<T> subtract( in subtract()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DFragmentUtils.java42 public static <T> T getParent(@NonNull Fragment fragment, @NonNull Class<T> callbackInterface) { in getParent()
45 T parent = (T) parentForTesting; in getParent()
52 T parent = (T) parentFragment; in getParent()
56 T parent = (T) fragment.getActivity(); in getParent()
60 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent()
77 public static <T> T getParent( in getParent()
78 @NonNull android.app.Fragment fragment, @NonNull Class<T> callbackInterface) { in getParent()
81 T parent = (T) parentForTesting; in getParent()
88 T parent = (T) parentFragment; in getParent()
92 T parent = (T) fragment.getActivity(); in getParent()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDialerFutures.java44 public static <T> ListenableFuture<T> firstMatching( in firstMatching()
45 Iterable<? extends ListenableFuture<? extends T>> futures, in firstMatching()
46 Predicate<T> predicate, in firstMatching()
47 T defaultValue) { in firstMatching()
51 private static <T> ListenableFuture<T> firstMatchingImpl( in firstMatchingImpl()
52 Iterable<? extends ListenableFuture<? extends T>> futures, in firstMatchingImpl()
53 Predicate<T> predicate, in firstMatchingImpl()
54 T defaultValue) { in firstMatchingImpl()
55 AggregateFuture<T> output = new AnyOfFuture<>(futures); in firstMatchingImpl()
56 final AtomicReference<AggregateFuture<T>> ref = Atomics.newReference(output); in firstMatchingImpl()
[all …]
/packages/apps/Camera2/src/com/android/camera/async/
DConcurrentBufferQueue.java40 public class ConcurrentBufferQueue<T> implements BufferQueue<T>, BufferQueueController<T>,
46 public static interface UnusedElementProcessor<T> {
51 public void process(T element); in process()
58 private static class Entry<T> {
59 private final T mValue;
62 private Entry(T value, boolean closing) { in Entry()
71 public T getValue() { in getValue()
82 private final BlockingQueue<Entry<T>> mQueue;
91 private final UnusedElementProcessor<T> mUnusedElementProcessor;
93 public ConcurrentBufferQueue(UnusedElementProcessor<T> unusedElementProcessor) { in ConcurrentBufferQueue()
[all …]
DCountableBufferQueue.java28 public class CountableBufferQueue<T> implements BufferQueueController<T>, BufferQueue<T> {
29 private class DecrementingProcessor<T> implements
30 ConcurrentBufferQueue.UnusedElementProcessor<T> {
33 private DecrementingProcessor(ConcurrentBufferQueue.UnusedElementProcessor<T> processor) { in DecrementingProcessor()
38 public void process(T element) { in process()
44 private final ConcurrentBufferQueue<T> mBufferQueue;
56 .UnusedElementProcessor<T> processor) { in CountableBufferQueue()
57 mBufferQueue = new ConcurrentBufferQueue<T>(new DecrementingProcessor<T>(processor)); in CountableBufferQueue()
64 this(sizeCallback, new ConcurrentBufferQueue.UnusedElementProcessor<T>() { in CountableBufferQueue()
66 public void process(T element) { in CountableBufferQueue()
[all …]
DObservables.java51 public static <F, T> Observable<T> transform(final Observable<F> input, in transform()
52 final Function<F, T> function) { in transform()
53 return new Observable<T>() { in transform()
56 public T get() { in transform()
72 public static <T> Observable<T> transform(final List<? extends Observable<?>> inputs,
73 final Supplier<T> output) {
82 public static <F, T> Observable<T> transform(final List<? extends Observable<F>> input,
83 Function<List<F>, T> function) {
91 public static <T> Observable<T> of(final @Nonnull T constant) {
92 return new Observable<T>() {
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java36 public abstract class SortedArrayAdapter<T> extends ArrayObjectAdapter {
37 private final Comparator<T> mComparator;
42 public SortedArrayAdapter(PresenterSelector presenterSelector, Comparator<T> comparator) { in SortedArrayAdapter()
47 PresenterSelector presenterSelector, Comparator<T> comparator, int maxItemCount) { in SortedArrayAdapter()
60 final void setInitialItems(List<T> items) { in setInitialItems()
61 List<T> itemsCopy = new ArrayList<>(items); in setInitialItems()
63 for (T item : itemsCopy) { in setInitialItems()
78 add((T) item, false); in add()
92 public final void add(T item, boolean insertToEnd) { in add()
114 public int addExtraItem(T item) { in addExtraItem()
[all …]
/packages/services/Car/service/src/com/android/car/
DBinderInterfaceContainer.java30 public class BinderInterfaceContainer<T extends IInterface> {
32 public static class BinderInterface<T extends IInterface>
34 public final T binderInterface;
35 private final BinderInterfaceContainer<T> mContainer;
37 public BinderInterface(BinderInterfaceContainer<T> container, T binderInterface) { in BinderInterface()
49 public interface BinderEventHandler<T extends IInterface> {
50 void onBinderDeath(BinderInterface<T> bInterface); in onBinderDeath()
53 private final BinderEventHandler<T> mEventHandler;
54 private final HashMap<IBinder, BinderInterface<T>> mBinders = new HashMap<>();
56 public BinderInterfaceContainer(@Nullable BinderEventHandler<T> eventHandler) { in BinderInterfaceContainer()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ditoatest.cpp25 template <typename T>
57 template <typename T>
58 static void VerifyValue(T value, void(*f)(T, char*), char* (*g)(T, char*)) { in VerifyValue() argument
59 char buffer1[Traits<T>::kBufferSize]; in VerifyValue()
60 char buffer2[Traits<T>::kBufferSize]; in VerifyValue()
69 template <typename T>
70 static void Verify(void(*f)(T, char*), char* (*g)(T, char*)) { in Verify() argument
72 VerifyValue<T>(0, f, g); in Verify()
73 VerifyValue<T>(std::numeric_limits<T>::min(), f, g); in Verify()
74 VerifyValue<T>(std::numeric_limits<T>::max(), f, g); in Verify()
[all …]
Dwritertest.cpp181 #define T(x)\ in TEST() macro
187 T(writer.Bool(false)); in TEST()
188 T(writer.Bool(true)); in TEST()
189 T(writer.Null()); in TEST()
190 T(writer.Int(0)); in TEST()
191 T(writer.Uint(0)); in TEST()
192 T(writer.Int64(0)); in TEST()
193 T(writer.Uint64(0)); in TEST()
194 T(writer.Double(0)); in TEST()
195 T(writer.String("foo")); in TEST()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparableTester.java43 public class ComparableTester<T extends Comparable<T>> {
45 private final List<List<T>> listOfGroups = new ArrayList<>();
48 public final ComparableTester<T> addEquivalentGroup(T... items) { in addEquivalentGroup()
55 List<T> currentGroup = listOfGroups.get(i); in test()
57 List<T> lhs = listOfGroups.get(j); in test()
62 List<T> rhs = listOfGroups.get(j); in test()
68 private void assertOrder(int less, int more, List<T> lessGroup, List<T> moreGroup) { in assertOrder()
74 int left, int right, Collection<T> leftGroup, Collection<T> rightGroup) { in assertLess()
76 for (T leftItem : leftGroup) { in assertLess()
79 for (T rightItem : rightGroup) { in assertLess()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java41 private static class JobWrapper<T> implements Future<T>, Job<T> {
43 private Job<T> mJob;
44 private Future<T> mDelegate;
45 private FutureListener<T> mListener;
46 private T mResult;
48 public JobWrapper(Job<T> job, FutureListener<T> listener) { in JobWrapper()
53 public synchronized void setFuture(Future<T> future) { in setFuture()
60 FutureListener<T> listener = null; in cancel()
90 public synchronized T get() { in get()
104 public T run(JobContext jc) { in run()
[all …]
DLinkedNode.java43 public static class List<T extends LinkedNode> {
46 public void insertLast(T node) { in insertLast()
50 public T getFirst() { in getFirst()
51 return (T) (mHead.mNext == mHead ? null : mHead.mNext); in getFirst()
54 public T getLast() { in getLast()
55 return (T) (mHead.mPrev == mHead ? null : mHead.mPrev); in getLast()
58 public T nextOf(T node) { in nextOf()
59 return (T) (node.mNext == mHead ? null : node.mNext); in nextOf()
62 public T previousOf(T node) { in previousOf()
63 return (T) (node.mPrev == mHead ? null : node.mPrev); in previousOf()
[all …]
/packages/apps/Dialer/java/com/android/dialer/protos/
DProtoParsers.java34 public static <T extends MessageLite> T get( in get()
35 @NonNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) in get()
43 return (T) mergeFrom(bytes, defaultInstance.getDefaultInstanceForType()); in get()
51 public static <T extends MessageLite> T get( in get()
52 @NonNull ContentValues contentValues, @NonNull String key, @NonNull T defaultInstance) in get()
60 return (T) mergeFrom(bytes, defaultInstance.getDefaultInstanceForType()); in get()
68 public static <T extends MessageLite> T getTrusted( in getTrusted()
69 @NonNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) { in getTrusted()
83 public static <T extends MessageLite> T getTrusted( in getTrusted()
84 @NonNull ContentValues contentValues, @NonNull String key, @NonNull T defaultInstance) { in getTrusted()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java44 public interface Job<T> {
45 public T run(JobContext jc); in run()
97 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit()
98 Worker<T> w = new Worker<T>(job, listener); in submit()
103 public <T> Future<T> submit(Job<T> job) { in submit()
107 private class Worker<T> implements Runnable, Future<T>, JobContext {
110 private Job<T> mJob;
111 private FutureListener<T> mListener;
116 private T mResult;
119 public Worker(Job<T> job, FutureListener<T> listener) { in Worker()
[all …]
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefs.java60 public interface PrefValueChangedListener<T> {
61 void onValueChanged(T oldValue, T newValue); in onValueChanged()
76 public abstract class PrefEntry<T> {
84 public abstract T getValue(); in getValue()
85 public abstract void setValue(T value); in setValue()
87 public void registerChangeListener(PrefValueChangedListener<T> listener) { in registerChangeListener()
90 T currentValue = getValue(); in registerChangeListener()
95 private T mOldValue = currentValue; in registerChangeListener()
101 T newValue = getValue(); in registerChangeListener()
143 private class EnumPrefEntry<T extends Enum & TmaEnumPrefs.EnumPrefValue>
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/binding/
DBindingBase.java31 public abstract class BindingBase<T extends BindableData> {
35 public static <T extends BindableData> Binding<T> createBinding(final Object owner) { in createBinding()
36 return new Binding<T>(owner); in createBinding()
44 public static <T extends BindableData> ImmutableBindingRef<T> createBindingReference( in createBindingReference()
45 final BindingBase<T> srcBinding) { in createBindingReference()
46 return new ImmutableBindingRef<T>(srcBinding); in createBindingReference()
53 public static <T extends BindableData> DetachableBinding<T> createDetachableBinding( in createDetachableBinding()
55 return new DetachableBinding<T>(owner); in createDetachableBinding()
58 public abstract T getData(); in getData()
68 public abstract boolean isBound(final T data); in isBound()
[all …]

12345678910>>...17