/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | RenderParamsFlags.java | 21 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 D | CameraCharacteristics.java | 43 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 D | CaptureResult.java | 52 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 D | CaptureRequest.java | 75 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 D | CameraMetadata.java | 115 * 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/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Prefs.java | 33 Key.OVERVIEW_LAST_STACK_TASK_ACTIVE_TIME, 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 52 public @interface Key { interface in class:Prefs [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | ProgramCache.h | 43 * 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 D | ProgramCache.cpp | 91 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 D | GetCommand.java | 28 * @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/av/services/audiopolicy/engineconfigurable/src/ |
H A D | Engine.cpp | 116 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 D | Element.h | 30 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 D | Collection.h | 39 * @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...] |
H A D | Engine.h | 171 template <typename Key> 172 status_t add(const std::string &name, const Key &key); 174 template <typename Key> 175 Element<Key> *getFromCollection(const Key &key) const; 177 template <typename Key> 178 const Collection<Key> &getCollection() const; 180 template <typename Key> 181 Collection<Key> &getCollection(); 183 template <typename Property, typename Key> [all...] |
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
H A D | sparse_weight_vector.h | 36 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 D | sparse_weight_vector.cpp | 34 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 D | stochastic_linear_ranker.cpp | 24 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 D | stochastic_linear_ranker.h | 41 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/native/libs/input/tests/ |
H A D | StructLayout_test.cpp | 37 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 D | Camera2RequestSettingsSet.java | 23 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 D | TestRules.h | 49 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 D | TestRules.cpp | 27 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | AutoTileManager.java | 21 import com.android.systemui.Prefs.Key; 42 if (!Prefs.getBoolean(context, Key.QS_HOTSPOT_ADDED, false)) { 45 if (!Prefs.getBoolean(context, Key.QS_DATA_SAVER_ADDED, false)) { 48 if (!Prefs.getBoolean(context, Key.QS_INVERT_COLORS_ADDED, false)) { 55 Prefs.putBoolean(mContext, Key.QS_INVERT_COLORS_ADDED, true); 67 if (!Prefs.getBoolean(context, Key.QS_WORK_ADDED, false)) { 70 if (!Prefs.getBoolean(context, Key.QS_NIGHT_ADDED, false)) { 85 Prefs.putBoolean(mContext, Key.QS_NIGHT_ADDED, true); 105 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true); 128 Prefs.putBoolean(mContext, Key [all...] |
/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | TokenCache.java | 48 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 D | BranchIsland.h | 102 /** \class Key 103 * \brief Key to recognize a stub in the island. 106 class Key { class in class:mcld::BranchIsland 108 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) function in class:mcld::BranchIsland::Key 111 ~Key() {} 120 size_t operator()(const Key& KEY) const { 129 bool operator()(const Key& KEY1, const Key& KEY2) const { 157 typedef HashEntry<Key, Stub*, Key [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 79 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); 145 final Key key = mStats.keyAt(i); 199 final Key key = mStats.keyAt(i); 234 final Key key = mStats.keyAt(i); 274 private void recordHistory(Key key, NetworkStatsHistory history) { 292 final Key key = another.mStats.keyAt(i); 300 final Key key = new Key(ident, uid, set, tag); 345 final Key key = new Key(iden 612 private static class Key implements Comparable<Key> { class in class:NetworkStatsCollection 620 public Key(NetworkIdentitySet ident, int uid, int set, int tag) { method in class:NetworkStatsCollection.Key [all...] |