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

12

/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCharacteristics.java38 private List<Key<?>> mAvailableRequestKeys;
39 private List<Key<?>> mAvailableResultKeys;
50 public <T> T get(Key<T> key) {
68 public List<Key<?>> getAvailableCaptureRequestKeys() {
89 public List<Key<?>> getAvailableCaptureResultKeys() {
110 private <T extends CameraMetadata> List<Key<?>> getAvailableKeyList(Class<T> metadataClass) {
135 public static final Key<byte[]> CONTROL_AE_AVAILABLE_ANTIBANDING_MODES =
136 new Key<byte[]>("android.control.aeAvailableAntibandingModes", byte[].class);
144 public static final Key<int[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES =
145 new Key<in
[all...]
H A DCaptureResult.java62 public <T> T get(Key<T> key) {
143 public static final Key<Rational[]> COLOR_CORRECTION_TRANSFORM =
144 new Key<Rational[]>("android.colorCorrection.transform", Rational[].class);
169 public static final Key<float[]> COLOR_CORRECTION_GAINS =
170 new Key<float[]>("android.colorCorrection.gains", float[].class);
186 public static final Key<Integer> CONTROL_AE_PRECAPTURE_ID =
187 new Key<Integer>("android.control.aePrecaptureId", int.class);
213 public static final Key<int[]> CONTROL_AE_REGIONS =
214 new Key<int[]>("android.control.aeRegions", int[].class);
232 public static final Key<Intege
[all...]
H A DCaptureRequest.java100 public <T> T get(Key<T> key) {
263 public <T> void set(Key<T> key, T value) {
276 public <T> T get(Key<T> key) {
330 public static final Key<Integer> COLOR_CORRECTION_MODE =
331 new Key<Integer>("android.colorCorrection.mode", int.class);
349 public static final Key<Rational[]> COLOR_CORRECTION_TRANSFORM =
350 new Key<Rational[]>("android.colorCorrection.transform", Rational[].class);
375 public static final Key<float[]> COLOR_CORRECTION_GAINS =
376 new Key<float[]>("android.colorCorrection.gains", float[].class);
388 public static final Key<Intege
[all...]
H A DCameraMetadata.java77 public abstract <T> T get(Key<T> key);
91 public List<Key<?>> getKeys() {
96 * Return a list of all the Key<?> that are declared as a field inside of the class
103 /*package*/ static ArrayList<Key<?>> getKeysStatic(Class<? extends CameraMetadata> type,
105 ArrayList<Key<?>> keyList = new ArrayList<Key<?>>();
110 if (field.getType().isAssignableFrom(Key.class) &&
112 Key<?> key;
114 key = (Key<?>) field.get(instance);
129 public static class Key< class in class:CameraMetadata
139 public Key(String name, Class<T> type) { method in class:CameraMetadata.Key
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.cpp87 ProgramCache::Key ProgramCache::computeKey(const Description& description) {
88 Key needs;
89 needs.set(Key::TEXTURE_MASK,
90 !description.mTextureEnabled ? Key::TEXTURE_OFF :
91 description.mTexture.getTextureTarget() == GL_TEXTURE_EXTERNAL_OES ? Key::TEXTURE_EXT :
92 description.mTexture.getTextureTarget() == GL_TEXTURE_2D ? Key::TEXTURE_2D :
93 Key::TEXTURE_OFF)
94 .set(Key::PLANE_ALPHA_MASK,
95 (description.mPlaneAlpha < 1) ? Key::PLANE_ALPHA_LT_ONE : Key
[all...]
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) {
115 // compute a cache Key fro
[all...]
H A DProgram.h39 Program(const ProgramCache::Key& needs, const char* vertex, const char* fragment);
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dsparse_weight_vector.h35 template<class Key = std::string, class Hash = std::hash_map<Key, double> >
45 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) {
48 void operator=(const SparseWeightVector<Key, Hash> &other) {
51 void CopyFrom(const SparseWeightVector<Key, Hash> &other) {
86 bool GetElementMinBound(const Key &fname, double *val) const {
89 bool GetElementMaxBound(const Key &fname, double *val) const {
92 void SetElementMinBound(const Key &fname, const double bound) {
95 void SetElementMaxBound(const Key &fname, const double bound) {
99 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.h40 template<class Key = std::string, class Hash = std::hash_map<std::string, double> >
168 void LoadWeights(const SparseWeightVector<Key, Hash> &model) {
172 void SaveWeights(SparseWeightVector<Key, Hash> *model) {
176 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) {
200 int UpdateClassifier(const SparseWeightVector<Key, Hash> &positive,
201 const SparseWeightVector<Key, Hash> &negative);
204 SparseWeightVector<Key, Hash> weight_;
220 SparseWeightVector<Key, Hash> current_negative_;
234 void UpdateSubGradient(const SparseWeightVector<Key, Hash> &positive,
235 const SparseWeightVector<Key, Has
[all...]
/frameworks/compile/mclinker/include/mcld/Support/
H A DMemoryArea.h89 class Key { class in class:mcld::MemoryArea
91 Key(size_t pOffset, size_t pLength) function in class:mcld::MemoryArea::Key
100 bool operator()(const Key& KEY1, const Key& KEY2) const
113 typedef std::multimap<Key, Space*, Key::Compare> SpaceMapType;
/frameworks/native/include/input/
H A DKeyLayoutMap.h77 struct Key { struct in class:android::KeyLayoutMap
82 KeyedVector<int32_t, Key> mKeysByScanCode;
83 KeyedVector<int32_t, Key> mKeysByUsageCode;
88 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
H A DKeyCharacterMap.h156 struct Key { struct in class:android::KeyCharacterMap
157 Key();
158 Key(const Key& other);
159 ~Key();
209 status_t finishKey(Key* key);
216 KeyedVector<int32_t, Key*> mKeys;
225 bool getKey(int32_t keyCode, const Key** outKey) const;
227 const Key** outKey, const Behavior** outBehavior) const;
/frameworks/compile/mclinker/include/mcld/LD/
H A DBranchIsland.h103 /** \class Key
104 * \brief Key to recognize a stub in the island.
107 class Key class in class:mcld::BranchIsland
110 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) function in class:mcld::BranchIsland::Key
114 ~Key()
125 size_t operator() (const Key& KEY) const
137 bool operator() (const Key& KEY1, const Key& KEY2) const
151 typedef HashEntry<Key, Stub*, Key
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsCollection.java73 private HashMap<Key, NetworkStatsHistory> mStats = Maps.newHashMap();
148 for (Map.Entry<Key, NetworkStatsHistory> entry : mStats.entrySet()) {
149 final Key key = entry.getKey();
173 for (Map.Entry<Key, NetworkStatsHistory> mapEntry : mStats.entrySet()) {
174 final Key key = mapEntry.getKey();
211 private void recordHistory(Key key, NetworkStatsHistory history) {
228 for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) {
235 final Key key = new Key(ident, uid, set, tag);
280 final Key ke
498 private static class Key implements Comparable<Key> { class in class:NetworkStatsCollection
506 public Key(NetworkIdentitySet ident, int uid, int set, int tag) { method in class:NetworkStatsCollection.Key
[all...]
/frameworks/base/media/mca/filterfw/native/base/
H A Dutilities.h140 template <typename Collection, typename Key>
141 bool ContainsKey(const Collection& collection, const Key& key) {
149 template <class Collection, class Key, class Value>
151 const Key& key, const Value& value) {
/frameworks/base/media/mca/filterpacks/native/base/
H A Dutilities.h140 template <typename Collection, typename Key>
141 bool ContainsKey(const Collection& collection, const Key& key) {
149 template <class Collection, class Key, class Value>
151 const Key& key, const Value& value) {
/frameworks/compile/mclinker/lib/Support/
H A DMemoryArea.cpp25 m_SpaceMap.insert(std::make_pair(Key(pUniverse.start(), pUniverse.size()),
66 m_SpaceMap.insert(std::make_pair(Key(space->start(), space->size()), space));
98 m_SpaceMap.equal_range(Key(space->start(), space->size()));
145 m_SpaceMap.equal_range(Key(pOffset, pLength));
158 m_SpaceMap.equal_range(Key(pOffset, pLength));
/frameworks/base/core/java/com/android/internal/widget/
H A DPasswordEntryKeyboard.java46 private Key[] mShiftKeys = { null, null };
48 private Key mEnterKey;
49 private Key mF1Key;
50 private Key mSpaceKey;
88 protected Key createKeyFromXml(Resources res, Row parent, int x, int y,
93 // Log.w(TAG, "Key code for " + key.label + " is not latin-1");
164 for (Key shiftKey : mShiftKeys) {
219 static class LatinKey extends Keyboard.Key {
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp97 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i)));
103 Key* key = mKeys.editValueAt(i);
176 Key* key = overlay->mKeys.valueAt(i);
180 map->mKeys.editValueAt(oldIndex) = new Key(*key);
182 map->mKeys.add(keyCode, new Key(*key));
208 const Key* key;
220 const Key* key;
232 const Key* key;
249 const Key* key;
270 const Key* ke
635 KeyCharacterMap::Key::Key() : function in class:android::KeyCharacterMap::Key
639 KeyCharacterMap::Key::Key(const Key& other) : function in class:android::KeyCharacterMap::Key
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java49 * &lt;Key android:keyLabel="A" /&gt;
67 private static final String TAG_KEY = "Key";
99 /** Key instance for the shift key, if present */
100 private Key[] mShiftKeys = { null, null };
102 /** Key index for the shift key, if present */
121 private List<Key> mKeys;
124 private List<Key> mModifierKeys;
170 ArrayList<Key> mKeys = new ArrayList<Key>();
230 public static class Key { class in class:Keyboard
313 public Key(Row parent) { method in class:Keyboard.Key
330 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { method in class:Keyboard.Key
[all...]
H A DKeyboardView.java30 import android.inputmethodservice.Keyboard.Key;
159 private Map<Key,View> mMiniKeyboardCache;
160 private Key[] mKeys;
209 private Key mInvalidatedKey;
368 mMiniKeyboardCache = new HashMap<Key,View>();
465 List<Key> keys = mKeyboard.getKeys();
466 mKeys = keys.toArray(new Key[keys.size()]);
606 final Key[] keys = mKeys;
611 Key key = keys[i];
662 final Key[] key
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java230 Key<T> key = new Key<T>(keyStr, type);
243 Key<T> key = new Key<T>(keyStr, type);
410 Key<AeAntibandingMode[]> aeAntibandingModeKey =
411 new Key<AeAntibandingMode[]>("android.control.aeAvailableAntibandingModes",
441 Key<AvailableFormat[]> availableFormatsKey =
442 new Key<AvailableFormat[]>("android.scaler.availableFormats",
492 Key<String> gpsProcessingMethodKey =
493 new Key<Strin
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/
H A DAutoFocusStateMachine.java19 import android.hardware.camera2.CameraMetadata.Key;
103 Key<Integer> keyAfState = CaptureResult.CONTROL_AF_STATE;
110 Key<Integer> keyAfMode = CaptureResult.CONTROL_AF_MODE;

Completed in 440 milliseconds

12