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

123

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DRenderParamsFlags.java20 import com.android.ide.common.rendering.api.SessionParams.Key;
23 * This contains all known keys for the {@link RenderParams#getFlag(Key)}.
31 public static final Key<String> FLAG_KEY_ROOT_TAG =
32 new Key<String>("rootTag", String.class);
33 public static final Key<Boolean> FLAG_KEY_DISABLE_BITMAP_CACHING =
34 new Key<Boolean>("disableBitmapCaching", Boolean.class);
35 public static final Key<Boolean> FLAG_KEY_RENDER_ALL_DRAWABLE_STATES =
36 new Key<Boolean>("renderAllDrawableStates", Boolean.class);
42 public static final Key<Boolean> FLAG_KEY_RECYCLER_VIEW_SUPPORT =
43 new Key<Boolea
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCharacteristics.java43 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> {
46 * A {@code Key} is used to do camera characteristics field lookups with
62 public static final class Key<T> { class in class:CameraCharacteristics
63 private final CameraMetadataNative.Key<T> mKey;
70 public Key(String name, Class<T> type) { method in class:CameraCharacteristics.Key
71 mKey = new CameraMetadataNative.Key<T>(name, type);
79 public Key(String name, TypeReference<T> typeReference) { method in class:CameraCharacteristics.Key
80 mKey = new CameraMetadataNative.Key<T>(name, typeReference);
115 return o instanceof Key && ((Key<
146 private Key(CameraMetadataNative.Key<?> nativeKey) { method in class:CameraCharacteristics.Key
[all...]
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) { method in class:CaptureResult.Key
82 mKey = new CameraMetadataNative.Key<T>(name, type);
90 public Key(String name, TypeReference<T> typeReference) { method in class:CaptureResult.Key
91 mKey = new CameraMetadataNative.Key<T>(name, typeReference);
126 return o instanceof Key && ((Key<
155 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { method in class:CaptureResult.Key
[all...]
H A DCaptureRequest.java75 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>>
79 * A {@code Key} is used to do capture request field lookups with
81 * {@link CaptureRequest.Builder#set(Key, Object)}.
96 public final static class Key<T> { class in class:CaptureRequest
97 private final CameraMetadataNative.Key<T> mKey;
104 public Key(String name, Class<T> type) { method in class:CaptureRequest.Key
105 mKey = new CameraMetadataNative.Key<T>(name, type);
113 public Key(String name, TypeReference<T> typeReference) { method in class:CaptureRequest.Key
114 mKey = new CameraMetadataNative.Key<T>(name, typeReference);
149 return o instanceof Key
178 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { method in class:CaptureRequest.Key
[all...]
H A DCameraMetadata.java115 * Return a list of all the Key<?> that are declared as a field inside of the class
181 if (k instanceof CaptureRequest.Key<?>) {
182 keyName = ((CaptureRequest.Key<?>) k).getName();
183 } else if (k instanceof CaptureResult.Key<?>) {
184 keyName = ((CaptureResult.Key<?>) k).getName();
185 } else if (k instanceof CameraCharacteristics.Key<?>) {
186 keyName = ((CameraCharacteristics.Key<?>) k).getName();
207 CameraMetadataNative.Key nativeKey;
212 if (key instanceof CameraCharacteristics.Key) {
213 nativeKey = ((CameraCharacteristics.Key)ke
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.h43 * Key is used to retrieve a Program in the cache.
44 * A Key is generated from a Description.
46 class Key { class in class:android::ProgramCache
74 inline Key() : mKey(0) { } function in class:android::ProgramCache::Key
75 inline Key(const Key& rhs) : mKey(rhs.mKey) { } function in class:android::ProgramCache::Key
77 inline Key& set(key_t mask, key_t value) {
102 friend inline int strictly_order_type(const Key& lhs, const Key& rhs) {
117 // compute a cache Key fro
[all...]
H A DProgramCache.cpp91 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK |
92 Key::PLANE_ALPHA_MASK | Key::TEXTURE_MASK;
98 Key shaderKey;
101 if (tex != Key::TEXTURE_OFF &&
102 tex != Key::TEXTURE_EXT &&
103 tex != Key::TEXTURE_2D) {
118 ProgramCache::Key ProgramCache::computeKey(const Description& description) {
119 Key need
[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/base/packages/SystemUI/src/com/android/systemui/
H A DPrefs.java33 Key.SEARCH_APP_WIDGET_ID,
34 Key.DEBUG_MODE_ENABLED,
35 Key.HOTSPOT_TILE_LAST_USED,
36 Key.COLOR_INVERSION_TILE_LAST_USED,
37 Key.DND_TILE_VISIBLE,
38 Key.DND_TILE_COMBINED_ICON,
39 Key.DND_CONFIRMED_PRIORITY_INTRODUCTION,
40 Key.DND_CONFIRMED_SILENCE_INTRODUCTION,
41 Key.DND_FAVORITE_BUCKET_INDEX,
42 Key
45 public @interface Key { interface in class:Prefs
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dsparse_weight_vector.h36 template<class Key = std::string, class Hash = std::unordered_map<Key, double> >
46 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) {
49 void operator=(const SparseWeightVector<Key, Hash> &other) {
52 void CopyFrom(const SparseWeightVector<Key, Hash> &other) {
87 bool GetElementMinBound(const Key &fname, double *val) const {
90 bool GetElementMaxBound(const Key &fname, double *val) const {
93 void SetElementMinBound(const Key &fname, const double bound) {
96 void SetElementMaxBound(const Key &fname, const double bound) {
100 double GetElement(const Key
[all...]
H A Dsparse_weight_vector.cpp34 template<class Key, class Hash>
35 bool SparseWeightVector<Key, Hash>::IsValid() const {
47 template<class Key, class Hash>
48 void SparseWeightVector<Key, Hash>::AdditiveWeightUpdate(
50 const SparseWeightVector<Key, Hash> &w1,
61 template<class Key, class Hash>
62 void SparseWeightVector<Key, Hash>::AdditiveSquaredWeightUpdate(
64 const SparseWeightVector<Key, Hash> &w1,
76 template<class Key, class Hash>
77 void SparseWeightVector<Key, Has
[all...]
H A Dstochastic_linear_ranker.cpp24 template<class Key, class Hash>
25 void StochasticLinearRanker<Key, Hash>::UpdateSubGradient(
26 const SparseWeightVector<Key, Hash> &positive,
27 const SparseWeightVector<Key, Hash> &negative,
32 SparseWeightVector<Key, Hash> gradient;
61 template<class Key, class Hash>
62 int StochasticLinearRanker<Key, Hash>::UpdateClassifier(
63 const SparseWeightVector<Key, Hash> &positive,
64 const SparseWeightVector<Key, Hash> &negative) {
67 SparseWeightVector<Key, Has
[all...]
H A Dstochastic_linear_ranker.h41 template<class Key = std::string, class Hash = std::unordered_map<std::string, double> >
169 void LoadWeights(const SparseWeightVector<Key, Hash> &model) {
173 void SaveWeights(SparseWeightVector<Key, Hash> *model) {
177 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) {
201 int UpdateClassifier(const SparseWeightVector<Key, Hash> &positive,
202 const SparseWeightVector<Key, Hash> &negative);
205 SparseWeightVector<Key, Hash> weight_;
221 SparseWeightVector<Key, Hash> current_negative_;
235 void UpdateSubGradient(const SparseWeightVector<Key, Hash> &positive,
236 const SparseWeightVector<Key, Has
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
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 Element<Key> T;
51 typedef typename std::map<Key, T *>::iterator CollectionIterator;
52 typedef typename std::map<Key, T *>::const_iterator CollectionConstIterator;
65 * @tparam Key indexing the collection of policy element.
71 status_t add(const std::string &name, Key key)
86 * @tparam Key indexin
[all...]
H A DEngine.cpp130 template <typename Key>
131 Element<Key> *Engine::getFromCollection(const Key &key) const
133 const Collection<Key> collection = getCollection<Key>();
137 template <typename Key>
138 status_t Engine::add(const std::string &name, const Key &key)
140 Collection<Key> &collection = getCollection<Key>();
144 template <typename Property, typename Key>
[all...]
H A DEngine.h196 template <typename Key>
197 status_t add(const std::string &name, const Key &key);
199 template <typename Key>
200 Element<Key> *getFromCollection(const Key &key) const;
202 template <typename Key>
203 const Collection<Key> &getCollection() const;
205 template <typename Key>
206 Collection<Key> &getCollection();
208 template <typename Property, typename Key>
[all...]
/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, action, 24);
42 CHECK_OFFSET(InputMessage::Body::Key, flags, 28);
43 CHECK_OFFSET(InputMessage::Body::Key, keyCode, 32);
44 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 36);
45 CHECK_OFFSET(InputMessage::Body::Key, metaState, 40);
46 CHECK_OFFSET(InputMessage::Body::Key, repeatCoun
[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);
H A DTestRules.cpp27 const Rule EqRule(Rule::Key key, long value) {
35 const Rule GtRule(Rule::Key key, long value) {
43 const Rule LtRule(Rule::Key key, long value) {
51 const Rule ContainsAnyRule(Rule::Key key, const char* str1) {
59 const Rule ContainsAnyRule(Rule::Key key, const char* str1, const char* str2) {
/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/compile/mclinker/include/mcld/LD/
H A DBranchIsland.h98 /** \class Key
99 * \brief Key to recognize a stub in the island.
102 class Key { class in class:mcld::BranchIsland
104 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) function in class:mcld::BranchIsland::Key
107 ~Key() {}
116 size_t operator()(const Key& KEY) const {
125 bool operator()(const Key& KEY1, const Key& KEY2) const {
153 typedef HashEntry<Key, Stub*, Key
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsCollection.java81 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>();
143 final Key key = mStats.keyAt(i);
184 final Key key = mStats.keyAt(i);
210 final Key key = mStats.keyAt(i);
248 private void recordHistory(Key key, NetworkStatsHistory history) {
266 final Key key = another.mStats.keyAt(i);
274 final Key key = new Key(ident, uid, set, tag);
319 final Key key = new Key(iden
592 private static class Key implements Comparable<Key> { class in class:NetworkStatsCollection
600 public Key(NetworkIdentitySet ident, int uid, int set, int tag) { method in class:NetworkStatsCollection.Key
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConnectionStatistics.java39 * Key = SSID
90 for (String Key : untrustedNetworkHistory.keySet()) {
91 WifiNetworkConnectionStatistics stats = untrustedNetworkHistory.get(Key);
93 sbuf.append(Key).append(" ").append(stats.toString()).append("\n");
122 for (String Key : untrustedNetworkHistory.keySet()) {
123 WifiNetworkConnectionStatistics num = untrustedNetworkHistory.get(Key);
124 dest.writeString(Key);
143 String Key = in.readString();
148 stats.untrustedNetworkHistory.put(Key, st);

Completed in 793 milliseconds

123