/frameworks/base/core/java/android/hardware/camera2/ |
D | CaptureResult.java | 50 public class CaptureResult extends CameraMetadata<CaptureResult.Key<?>> { 71 public final static class Key<T> { class in CaptureResult 72 private final CameraMetadataNative.Key<T> mKey; 79 public Key(String name, Class<T> type) { in Key() method in CaptureResult.Key 80 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 88 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureResult.Key 89 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 123 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() 133 public CameraMetadataNative.Key<T> getNativeKey() { in getNativeKey() 138 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { in Key() method in CaptureResult.Key [all …]
|
D | CameraCharacteristics.java | 41 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> { 60 public static final class Key<T> { class in CameraCharacteristics 61 private final CameraMetadataNative.Key<T> mKey; 68 public Key(String name, Class<T> type) { in Key() method in CameraCharacteristics.Key 69 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 77 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraCharacteristics.Key 78 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 112 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() 122 public CameraMetadataNative.Key<T> getNativeKey() { in getNativeKey() 129 private Key(CameraMetadataNative.Key<?> nativeKey) { in Key() method in CameraCharacteristics.Key [all …]
|
D | CaptureRequest.java | 65 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>> 86 public final static class Key<T> { class in CaptureRequest 87 private final CameraMetadataNative.Key<T> mKey; 94 public Key(String name, Class<T> type) { in Key() method in CaptureRequest.Key 95 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 103 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureRequest.Key 104 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 138 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() 148 public CameraMetadataNative.Key<T> getNativeKey() { in getNativeKey() 153 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { in Key() method in CaptureRequest.Key [all …]
|
D | CameraMetadata.java | 183 CameraMetadataNative.Key nativeKey; in shouldKeyBeAdded() 188 if (key instanceof CameraCharacteristics.Key) { in shouldKeyBeAdded() 189 nativeKey = ((CameraCharacteristics.Key)key).getNativeKey(); in shouldKeyBeAdded() 190 } else if (key instanceof CaptureResult.Key) { in shouldKeyBeAdded() 191 nativeKey = ((CaptureResult.Key)key).getNativeKey(); in shouldKeyBeAdded() 192 } else if (key instanceof CaptureRequest.Key) { in shouldKeyBeAdded() 193 nativeKey = ((CaptureRequest.Key)key).getNativeKey(); in shouldKeyBeAdded()
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
D | ProgramCache.cpp | 91 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK | in primeCache() 92 Key::PLANE_ALPHA_MASK | Key::TEXTURE_MASK; in primeCache() 98 Key shaderKey; in primeCache() 101 if (tex != Key::TEXTURE_OFF && in primeCache() 102 tex != Key::TEXTURE_EXT && in primeCache() 103 tex != Key::TEXTURE_2D) { in primeCache() 118 ProgramCache::Key ProgramCache::computeKey(const Description& description) { in computeKey() 119 Key needs; in computeKey() 120 needs.set(Key::TEXTURE_MASK, in computeKey() 121 !description.mTextureEnabled ? Key::TEXTURE_OFF : in computeKey() [all …]
|
D | ProgramCache.h | 46 class Key { 74 inline Key() : mKey(0) { } in Key() function 75 inline Key(const Key& rhs) : mKey(rhs.mKey) { } in Key() function 77 inline Key& set(key_t mask, key_t value) { in set() 102 friend inline int strictly_order_type(const Key& lhs, const Key& rhs) { in strictly_order_type() 118 static Key computeKey(const Description& description); 120 static Program* generateProgram(const Key& needs); 122 static String8 generateVertexShader(const Key& needs); 124 static String8 generateFragmentShader(const Key& needs); 128 DefaultKeyedVector<Key, Program*> mCache; [all …]
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
D | sparse_weight_vector.h | 35 template<class Key = std::string, class Hash = std::hash_map<Key, double> > 45 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) { in SparseWeightVector() argument 48 void operator=(const SparseWeightVector<Key, Hash> &other) { 51 void CopyFrom(const SparseWeightVector<Key, Hash> &other) { in CopyFrom() argument 86 bool GetElementMinBound(const Key &fname, double *val) const { in GetElementMinBound() 89 bool GetElementMaxBound(const Key &fname, double *val) const { in GetElementMaxBound() 92 void SetElementMinBound(const Key &fname, const double bound) { in SetElementMinBound() 95 void SetElementMaxBound(const Key &fname, const double bound) { in SetElementMaxBound() 99 double GetElement(const Key &fname) const { in GetElement() 104 void SetElement(const Key &fname, const double val) { in SetElement() [all …]
|
D | sparse_weight_vector.cpp | 34 template<class Key, class Hash> 35 bool SparseWeightVector<Key, Hash>::IsValid() const { in IsValid() 47 template<class Key, class Hash> 48 void SparseWeightVector<Key, Hash>::AdditiveWeightUpdate( in AdditiveWeightUpdate() 50 const SparseWeightVector<Key, Hash> &w1, in AdditiveWeightUpdate() argument 61 template<class Key, class Hash> 62 void SparseWeightVector<Key, Hash>::AdditiveSquaredWeightUpdate( in AdditiveSquaredWeightUpdate() 64 const SparseWeightVector<Key, Hash> &w1, in AdditiveSquaredWeightUpdate() argument 76 template<class Key, class Hash> 77 void SparseWeightVector<Key, Hash>::AdditiveInvSqrtWeightUpdate( in AdditiveInvSqrtWeightUpdate() [all …]
|
D | stochastic_linear_ranker.cpp | 24 template<class Key, class Hash> 25 void StochasticLinearRanker<Key, Hash>::UpdateSubGradient( in UpdateSubGradient() 26 const SparseWeightVector<Key, Hash> &positive, in UpdateSubGradient() argument 27 const SparseWeightVector<Key, Hash> &negative, in UpdateSubGradient() 32 SparseWeightVector<Key, Hash> gradient; in UpdateSubGradient() 61 template<class Key, class Hash> 62 int StochasticLinearRanker<Key, Hash>::UpdateClassifier( in UpdateClassifier() 63 const SparseWeightVector<Key, Hash> &positive, in UpdateClassifier() argument 64 const SparseWeightVector<Key, Hash> &negative) { in UpdateClassifier() 67 SparseWeightVector<Key, Hash> weight_backup; in UpdateClassifier()
|
D | stochastic_linear_ranker.h | 40 template<class Key = std::string, class Hash = std::hash_map<std::string, double> > 168 void LoadWeights(const SparseWeightVector<Key, Hash> &model) { in LoadWeights() argument 172 void SaveWeights(SparseWeightVector<Key, Hash> *model) { in SaveWeights() argument 176 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) { in ScoreSample() argument 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, Hash> &negative,
|
/frameworks/native/libs/input/tests/ |
D | StructLayout_test.cpp | 37 CHECK_OFFSET(InputMessage::Body::Key, seq, 0); in TestInputMessageAlignment() 38 CHECK_OFFSET(InputMessage::Body::Key, eventTime, 8); in TestInputMessageAlignment() 39 CHECK_OFFSET(InputMessage::Body::Key, deviceId, 16); in TestInputMessageAlignment() 40 CHECK_OFFSET(InputMessage::Body::Key, source, 20); in TestInputMessageAlignment() 41 CHECK_OFFSET(InputMessage::Body::Key, action, 24); in TestInputMessageAlignment() 42 CHECK_OFFSET(InputMessage::Body::Key, flags, 28); in TestInputMessageAlignment() 43 CHECK_OFFSET(InputMessage::Body::Key, keyCode, 32); in TestInputMessageAlignment() 44 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 36); in TestInputMessageAlignment() 45 CHECK_OFFSET(InputMessage::Body::Key, metaState, 40); in TestInputMessageAlignment() 46 CHECK_OFFSET(InputMessage::Body::Key, repeatCount, 44); in TestInputMessageAlignment() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 76 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); 152 final Key key = mStats.keyAt(i); in getHistory() 178 final Key key = mStats.keyAt(i); in getSummary() 215 private void recordHistory(Key key, NetworkStatsHistory history) { in recordHistory() 233 final Key key = another.mStats.keyAt(i); in recordCollection() 241 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory() 286 final Key key = new Key(ident, uid, set, tag); in read() 301 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap(); in write() 302 for (Key key : mStats.keySet()) { in write() 303 ArrayList<Key> keys = keysByIdent.get(key.ident); in write() [all …]
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
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) { in set() 111 public boolean unset(Key<?> key) { in unset() 134 public <T> T get(Key<T> key) { in get() 155 public boolean contains(Key<?> key) { in contains() 172 public <T> boolean matches(Key<T> key, T value) { in matches() 235 for (Key<?> key : mDictionary.keySet()) { in createRequest() 247 private <T> void setRequestFieldIfNonNull(Builder requestBuilder, Key<T> key) { in setRequestFieldIfNonNull()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | BranchIsland.h | 105 class Key 108 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) in Key() function 112 ~Key() in ~Key() 123 size_t operator() (const Key& KEY) const in operator() 135 bool operator() (const Key& KEY1, const Key& KEY2) const in operator() 165 typedef HashEntry<Key, Stub*, Key::Compare> StubEntryType; 168 Key::Hash,
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 77 public static class Key<T> { class in CameraMetadataNative 90 public Key(String name, Class<T> type) { in Key() method in CameraMetadataNative.Key 109 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraMetadataNative.Key 166 Key<?> lhs; in equals() 168 if (o instanceof CaptureResult.Key) { in equals() 169 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals() 170 } else if (o instanceof CaptureRequest.Key) { in equals() 171 lhs = ((CaptureRequest.Key)o).getNativeKey(); in equals() 172 } else if (o instanceof CameraCharacteristics.Key) { in equals() 173 lhs = ((CameraCharacteristics.Key)o).getNativeKey(); in equals() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/ |
D | AesCtrDecryptorUnittest.cpp | 31 typedef uint8_t Key[kBlockSize]; typedef in clearkeydrm::AesCtrDecryptorTest 33 status_t attemptDecrypt(const Key& key, const Iv& iv, const uint8_t* source, in attemptDecrypt() 45 void attemptDecryptExpectingSuccess(const Key& key, const Iv& iv, in attemptDecryptExpectingSuccess() 65 Key key = { in TEST_F() 110 Key key = { in TEST_F() 156 Key key = { in TEST_F() 202 Key key = { in TEST_F() 251 Key key = { in TEST_F() 305 Key key = { in TEST_F() 360 Key key = { in TEST_F()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConnectionStatistics.java | 90 for (String Key : untrustedNetworkHistory.keySet()) { in toString() 91 WifiNetworkConnectionStatistics stats = untrustedNetworkHistory.get(Key); in toString() 93 sbuf.append(Key).append(" ").append(stats.toString()).append("\n"); in toString() 122 for (String Key : untrustedNetworkHistory.keySet()) { in writeToParcel() 123 WifiNetworkConnectionStatistics num = untrustedNetworkHistory.get(Key); in writeToParcel() 124 dest.writeString(Key); in writeToParcel() 143 String Key = in.readString(); 148 stats.untrustedNetworkHistory.put(Key, st);
|
/frameworks/base/tools/split-select/ |
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);
|
D | TestRules.cpp | 27 const Rule EqRule(Rule::Key key, long value) { in EqRule() 35 const Rule GtRule(Rule::Key key, long value) { in GtRule() 43 const Rule LtRule(Rule::Key key, long value) { in LtRule() 51 const Rule ContainsAnyRule(Rule::Key key, const char* str1) { in ContainsAnyRule() 59 const Rule ContainsAnyRule(Rule::Key key, const char* str1, const char* str2) { in ContainsAnyRule()
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 156 struct Key { struct 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;
|
D | KeyLayoutMap.h | 79 struct Key { struct 89 KeyedVector<int32_t, Key> mKeysByScanCode; argument 90 KeyedVector<int32_t, Key> mKeysByUsageCode; 97 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 100 private Key[] mShiftKeys = { null, null }; 121 private List<Key> mKeys; 124 private List<Key> mModifierKeys; 170 ArrayList<Key> mKeys = new ArrayList<Key>(); 230 public static class Key { class in Keyboard 313 public Key(Row parent) { in Key() method in Keyboard.Key 330 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() method in Keyboard.Key 530 mKeys = new ArrayList<Key>(); in Keyboard() 531 mModifierKeys = new ArrayList<Key>(); in Keyboard() 553 mKeys = new ArrayList<Key>(); in Keyboard() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PasswordEntryKeyboard.java | 45 private Key[] mShiftKeys = { null, null }; 47 private Key mEnterKey; 48 private Key mF1Key; 49 private Key mSpaceKey; 87 protected Key createKeyFromXml(Resources res, Row parent, int x, int y, in createKeyFromXml() 163 for (Key shiftKey : mShiftKeys) { in setShiftLocked() 218 static class LatinKey extends Keyboard.Key {
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 98 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i))); in KeyCharacterMap() 104 Key* key = mKeys.editValueAt(i); in ~KeyCharacterMap() 177 Key* key = overlay->mKeys.valueAt(i); in combine() 181 map->mKeys.editValueAt(oldIndex) = new Key(*key); in combine() 183 map->mKeys.add(keyCode, new Key(*key)); in combine() 209 const Key* key; in getDisplayLabel() 221 const Key* key; in getNumber() 233 const Key* key; in getCharacter() 250 const Key* key; in getFallbackAction() 271 const Key* key; in getMatch() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | CameraMetadataTest.java | 336 Key<T> key = new Key<T>(keyStr, typeToken); in checkKeyGetAndSet() 373 private <T> Key<T> checkKeyMarshal(String keyName, TypeReference<T> typeReference, in checkKeyMarshal() 375 Key<T> key = new Key<T>(keyName, typeReference); in checkKeyMarshal() 417 private <T> Key<T> checkKeyMarshal(String keyName, T expected, byte[] expectedNative) { in checkKeyMarshal() 613 Key<AvailableFormat[]> availableFormatsKey = in testReadWriteEnumWithCustomValues() 614 new Key<AvailableFormat[]>("android.scaler.availableFormats", in testReadWriteEnumWithCustomValues() 900 Key<ReprocessFormatsMap> key = new Key<ReprocessFormatsMap>( in testReadWriteReprocessFormatsMap() 937 Key<String> gpsProcessingMethodKey = in testReadWriteString() 938 new Key<String>("android.jpeg.gpsProcessingMethod", String.class); in testReadWriteString() 955 Key<String[]> gpsProcessingMethodKeyArray = in testReadWriteString() [all …]
|