Searched refs:Key (Results 1 - 25 of 112) sorted by relevance

12345

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DRenderParamsFlags.java21 import com.android.ide.common.rendering.api.SessionParams.Key;
24 * This contains all known keys for the {@link RenderParams#getFlag(Key)}.
32 public static final Key<String> FLAG_KEY_ROOT_TAG =
33 new Key<String>("rootTag", String.class);
34 public static final Key<Boolean> FLAG_KEY_DISABLE_BITMAP_CACHING =
35 new Key<Boolean>("disableBitmapCaching", Boolean.class);
36 public static final Key<Boolean> FLAG_KEY_RENDER_ALL_DRAWABLE_STATES =
37 new Key<Boolean>("renderAllDrawableStates", Boolean.class);
43 public static final Key<Boolean> FLAG_KEY_RECYCLER_VIEW_SUPPORT =
44 new Key<Boolea
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCaptureResult.java52 public class CaptureResult extends CameraMetadata<CaptureResult.Key<?>> {
58 * A {@code Key} is used to do capture result field lookups with
73 public final static class Key<T> { class in class:CaptureResult
74 private final CameraMetadataNative.Key<T> mKey;
81 public Key(String name, Class<T> type, long vendorId) { method in class:CaptureResult.Key
82 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId);
90 public Key(String name, String fallbackName, Class<T> type) { method in class:CaptureResult.Key
91 mKey = new CameraMetadataNative.Key<T>(name, fallbackName, type);
99 public Key(String name, Class<T> type) { method in class:CaptureResult.Key
100 mKey = new CameraMetadataNative.Key<
108 public Key(String name, TypeReference<T> typeReference) { method in class:CaptureResult.Key
182 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { method in class:CaptureResult.Key
[all...]
H A DCameraCharacteristics.java48 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> {
51 * A {@code Key} is used to do camera characteristics field lookups with
67 public static final class Key<T> { class in class:CameraCharacteristics
68 private final CameraMetadataNative.Key<T> mKey;
75 public Key(String name, Class<T> type, long vendorId) { method in class:CameraCharacteristics.Key
76 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId);
84 public Key(String name, String fallbackName, Class<T> type) { method in class:CameraCharacteristics.Key
85 mKey = new CameraMetadataNative.Key<T>(name, fallbackName, type);
93 public Key(String name, Class<T> type) { method in class:CameraCharacteristics.Key
94 mKey = new CameraMetadataNative.Key<
102 public Key(String name, TypeReference<T> typeReference) { method in class:CameraCharacteristics.Key
178 private Key(CameraMetadataNative.Key<?> nativeKey) { method in class:CameraCharacteristics.Key
[all...]
H A DCaptureRequest.java81 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>>
85 * A {@code Key} is used to do capture request field lookups with
87 * {@link CaptureRequest.Builder#set(Key, Object)}.
102 public final static class Key<T> { class in class:CaptureRequest
103 private final CameraMetadataNative.Key<T> mKey;
110 public Key(String name, Class<T> type, long vendorId) { method in class:CaptureRequest.Key
111 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId);
119 public Key(String name, Class<T> type) { method in class:CaptureRequest.Key
120 mKey = new CameraMetadataNative.Key<T>(name, type);
128 public Key(Strin method in class:CaptureRequest.Key
202 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { method in class:CaptureRequest.Key
[all...]
/frameworks/support/paging/runtime/src/main/java/androidx/paging/
H A DLivePagedListProvider.java31 public abstract class LivePagedListProvider<Key, Value> extends DataSource.Factory<Key, Value> {
34 public DataSource<Key, Value> create() {
39 protected abstract DataSource<Key, Value> createDataSource();
H A DLivePagedListBuilder.java35 * @param <Key> Type of input valued used to load data from the DataSource. Must be integer if
39 public final class LivePagedListBuilder<Key, Value> {
40 private Key mInitialLoadKey;
42 private DataSource.Factory<Key, Value> mDataSourceFactory;
52 public LivePagedListBuilder(@NonNull DataSource.Factory<Key, Value> dataSourceFactory,
79 public LivePagedListBuilder(@NonNull DataSource.Factory<Key, Value> dataSourceFactory,
94 public LivePagedListBuilder<Key, Value> setInitialLoadKey(@Nullable Key key) {
121 public LivePagedListBuilder<Key, Value> setBoundaryCallback(
137 public LivePagedListBuilder<Key, Valu
[all...]
/frameworks/support/room/compiler/src/test/data/common/input/
H A DDataSource.java20 public interface Factory<Key, Value> {
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.cpp87 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK | Key::ALPHA_MASK | Key::TEXTURE_MASK;
93 Key shaderKey;
96 if (tex != Key::TEXTURE_OFF && tex != Key::TEXTURE_EXT && tex != Key::TEXTURE_2D) {
109 Key shaderKey;
110 shaderKey.set(Key
[all...]
H A DProgramCache.h44 * Key is used to retrieve a Program in the cache.
45 * A Key is generated from a Description.
47 class Key { class in class:android::ProgramCache
105 inline Key() : mKey(0) {} function in class:android::ProgramCache::Key
106 inline Key(const Key& rhs) : mKey(rhs.mKey) {} function in class:android::ProgramCache::Key
108 inline Key& set(key_t mask, key_t value) {
141 if (inputTF == Key::INPUT_TF_SRGB && outputTF == Key::OUTPUT_TF_LINEAR) {
144 if (inputTF == Key
[all...]
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DPageKeyedDataSource.java41 * @param <Key> Type of data used to query Value types out of the DataSource.
44 public abstract class PageKeyedDataSource<Key, Value> extends ContiguousDataSource<Key, Value> {
49 private Key mNextKey = null;
53 private Key mPreviousKey = null;
55 private void initKeys(@Nullable Key previousKey, @Nullable Key nextKey) {
62 private void setPreviousKey(@Nullable Key previousKey) {
68 private void setNextKey(@Nullable Key nextKey) {
74 private @Nullable Key getPreviousKe
[all...]
H A DContiguousDataSource.java24 abstract class ContiguousDataSource<Key, Value> extends DataSource<Key, Value> {
31 @Nullable Key key,
58 abstract Key getKey(int position, Value item);
H A DItemKeyedDataSource.java40 * @param <Key> Type of data used to query Value types out of the DataSource.
43 public abstract class ItemKeyedDataSource<Key, Value> extends ContiguousDataSource<Key, Value> {
48 * @param <Key> Type of data used to query Value types out of the DataSource.
51 public static class LoadInitialParams<Key> {
60 public final Key requestedInitialKey;
76 public LoadInitialParams(@Nullable Key requestedInitialKey, int requestedLoadSize,
88 * @param <Key> Type of data used to query Value types out of the DataSource.
91 public static class LoadParams<Key> {
97 public final Key ke
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DPrefs.java34 Key.OVERVIEW_LAST_STACK_TASK_ACTIVE_TIME,
35 Key.DEBUG_MODE_ENABLED,
36 Key.HOTSPOT_TILE_LAST_USED,
37 Key.COLOR_INVERSION_TILE_LAST_USED,
38 Key.DND_TILE_VISIBLE,
39 Key.DND_TILE_COMBINED_ICON,
40 Key.DND_CONFIRMED_PRIORITY_INTRODUCTION,
41 Key.DND_CONFIRMED_SILENCE_INTRODUCTION,
42 Key.DND_FAVORITE_BUCKET_INDEX,
43 Key
62 public @interface Key { interface in class:Prefs
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DGetCommand.java28 * @param key the {@link CameraMetadataNative.Key} to look up.
30 * @return the value for a given {@link CameraMetadataNative.Key}.
32 public <T> T getValue(CameraMetadataNative metadata, CameraMetadataNative.Key<T> key);
/frameworks/native/libs/input/tests/
H A DStructLayout_test.cpp37 CHECK_OFFSET(InputMessage::Body::Key, seq, 0);
38 CHECK_OFFSET(InputMessage::Body::Key, eventTime, 8);
39 CHECK_OFFSET(InputMessage::Body::Key, deviceId, 16);
40 CHECK_OFFSET(InputMessage::Body::Key, source, 20);
41 CHECK_OFFSET(InputMessage::Body::Key, displayId, 24);
42 CHECK_OFFSET(InputMessage::Body::Key, action, 28);
43 CHECK_OFFSET(InputMessage::Body::Key, flags, 32);
44 CHECK_OFFSET(InputMessage::Body::Key, keyCode, 36);
45 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 40);
46 CHECK_OFFSET(InputMessage::Body::Key, metaStat
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DEngine.cpp116 template <typename Key>
117 Element<Key> *Engine::getFromCollection(const Key &key) const
119 const Collection<Key> collection = getCollection<Key>();
123 template <typename Key>
124 status_t Engine::add(const std::string &name, const Key &key)
126 Collection<Key> &collection = getCollection<Key>();
130 template <typename Property, typename Key>
[all...]
H A DElement.h30 template <typename Key>
49 * @tparam Key type of the unique identifier.
54 status_t setIdentifier(Key identifier)
63 const Key &getIdentifier() const { return mIdentifier; }
96 Key mIdentifier; /**< Unique numerical Identifier of a policy base element*/
H A DCollection.h39 * @tparam Key type of the policy element indexing the collection.
46 template <typename Key>
47 class Collection : public std::map<Key, Element<Key> *>
50 typedef std::map<Key, Element<Key> *> Base;
51 typedef Element<Key> T;
52 typedef typename std::map<Key, T *>::iterator CollectionIterator;
53 typedef typename std::map<Key, T *>::const_iterator CollectionConstIterator;
66 * @tparam Key indexin
[all...]
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2RequestSettingsSet.java23 import android.hardware.camera2.CaptureRequest.Key;
34 private final Map<Key<?>, Object> mDictionary;
83 public <T> boolean set(Key<T> key, T value) {
111 public boolean unset(Key<?> key) {
134 public <T> T get(Key<T> key) {
155 public boolean contains(Key<?> key) {
172 public <T> boolean matches(Key<T> key, T value) {
235 for (Key<?> key : mDictionary.keySet()) {
247 private <T> void setRequestFieldIfNonNull(Builder requestBuilder, Key<T> key) {
/frameworks/base/tools/split-select/
H A DTestRules.h49 const Rule EqRule(Rule::Key key, long value);
50 const Rule LtRule(Rule::Key key, long value);
51 const Rule GtRule(Rule::Key key, long value);
52 const Rule ContainsAnyRule(Rule::Key key, const char* str1);
53 const Rule ContainsAnyRule(Rule::Key key, const char* str1, const char* str2);
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DKeyStoreProxy.java19 import java.security.Key;
37 Key getKey(String alias, char[] password)
/frameworks/support/paging/rxjava2/src/main/java/androidx/paging/
H A DRxPagedListBuilder.java46 * @param <Key> Type of input valued used to load data from the DataSource. Must be integer if
50 public final class RxPagedListBuilder<Key, Value> {
51 private Key mInitialLoadKey;
53 private DataSource.Factory<Key, Value> mDataSourceFactory;
66 public RxPagedListBuilder(@NonNull DataSource.Factory<Key, Value> dataSourceFactory,
93 public RxPagedListBuilder(@NonNull DataSource.Factory<Key, Value> dataSourceFactory,
109 public RxPagedListBuilder<Key, Value> setInitialLoadKey(@Nullable Key key) {
136 public RxPagedListBuilder<Key, Value> setBoundaryCallback(
153 public RxPagedListBuilder<Key, Valu
[all...]
/frameworks/base/core/proto/android/service/
H A Dbatterystats.proto43 message Key {
51 repeated Key keys = 5;
/frameworks/base/services/core/java/com/android/server/accounts/
H A DTokenCache.java48 private static class Key { class in class:TokenCache
54 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) { method in class:TokenCache.Key
63 if (o != null && o instanceof Key) {
64 Key cacheKey = (Key) o;
83 private static class TokenLruCache extends LruCache<Key, Value> {
86 private final List<Key> mKeys;
92 public void add(Key k) {
97 for (Key k : mKeys) {
116 protected int sizeOf(Key
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DAutoAddTrackerTest.java30 import com.android.systemui.Prefs.Key;
51 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true);
52 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true);
60 assertTrue(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true ));
61 assertFalse(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, false));
62 assertTrue(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, true));
63 assertFalse(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, false));

Completed in 491 milliseconds

12345