/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraCharacteristics.java | 43 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> { 62 public static final class Key<T> { class in CameraCharacteristics 63 private final CameraMetadataNative.Key<T> mKey; 70 public Key(String name, Class<T> type, long vendorId) { in Key() method in CameraCharacteristics.Key 71 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key() 79 public Key(String name, Class<T> type) { in Key() method in CameraCharacteristics.Key 80 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 88 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraCharacteristics.Key 89 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 133 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() [all …]
|
D | CaptureResult.java | 52 public class CaptureResult extends CameraMetadata<CaptureResult.Key<?>> { 73 public final static class Key<T> { class in CaptureResult 74 private final CameraMetadataNative.Key<T> mKey; 81 public Key(String name, Class<T> type, long vendorId) { in Key() method in CaptureResult.Key 82 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key() 90 public Key(String name, Class<T> type) { in Key() method in CaptureResult.Key 91 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 99 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureResult.Key 100 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 144 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() [all …]
|
D | CaptureRequest.java | 75 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>> 96 public final static class Key<T> { class in CaptureRequest 97 private final CameraMetadataNative.Key<T> mKey; 104 public Key(String name, Class<T> type, long vendorId) { in Key() method in CaptureRequest.Key 105 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key() 113 public Key(String name, Class<T> type) { in Key() method in CaptureRequest.Key 114 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 122 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureRequest.Key 123 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 167 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() [all …]
|
D | CameraMetadata.java | 194 if (k instanceof CaptureRequest.Key<?>) { in getKeys() 195 keyName = ((CaptureRequest.Key<?>) k).getName(); in getKeys() 196 vendorId = ((CaptureRequest.Key<?>) k).getVendorId(); in getKeys() 197 } else if (k instanceof CaptureResult.Key<?>) { in getKeys() 198 keyName = ((CaptureResult.Key<?>) k).getName(); in getKeys() 199 vendorId = ((CaptureResult.Key<?>) k).getVendorId(); in getKeys() 200 } else if (k instanceof CameraCharacteristics.Key<?>) { in getKeys() 201 keyName = ((CameraCharacteristics.Key<?>) k).getName(); in getKeys() 202 vendorId = ((CameraCharacteristics.Key<?>) k).getVendorId(); in getKeys() 223 CameraMetadataNative.Key nativeKey; in shouldKeyBeAdded() [all …]
|
/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/base/packages/SystemUI/src/com/android/systemui/ |
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.DND_NONE_SELECTED, [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | RenderParamsFlags.java | 21 import com.android.ide.common.rendering.api.SessionParams.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<Boolean>("recyclerViewSupport", Boolean.class); 48 public static final Key<String> FLAG_KEY_APPLICATION_PACKAGE = [all …]
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
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) { in SparseWeightVector() argument 49 void operator=(const SparseWeightVector<Key, Hash> &other) { 52 void CopyFrom(const SparseWeightVector<Key, Hash> &other) { in CopyFrom() argument 87 bool GetElementMinBound(const Key &fname, double *val) const { in GetElementMinBound() 90 bool GetElementMaxBound(const Key &fname, double *val) const { in GetElementMaxBound() 93 void SetElementMinBound(const Key &fname, const double bound) { in SetElementMinBound() 96 void SetElementMaxBound(const Key &fname, const double bound) { in SetElementMaxBound() 100 double GetElement(const Key &fname) const { in GetElement() 105 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 | 41 template<class Key = std::string, class Hash = std::unordered_map<std::string, double> > 169 void LoadWeights(const SparseWeightVector<Key, Hash> &model) { in LoadWeights() argument 173 void SaveWeights(SparseWeightVector<Key, Hash> *model) { in SaveWeights() argument 177 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) { in ScoreSample() argument 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, Hash> &negative,
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
D | Engine.cpp | 116 template <typename Key> 117 Element<Key> *Engine::getFromCollection(const Key &key) const in getFromCollection() 119 const Collection<Key> collection = getCollection<Key>(); in getFromCollection() 123 template <typename Key> 124 status_t Engine::add(const std::string &name, const Key &key) in add() 126 Collection<Key> &collection = getCollection<Key>(); in add() 130 template <typename Property, typename Key> 131 Property Engine::getPropertyForKey(Key key) const in getPropertyForKey() 133 Element<Key> *element = getFromCollection<Key>(key); in getPropertyForKey() 190 template <typename Property, typename Key> [all …]
|
D | Collection.h | 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; 72 status_t add(const std::string &name, Key key) in add() 92 T *get(Key key) const in get()
|
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> 184 Property getPropertyForKey(Key key) const; [all …]
|
/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/accounts/ |
D | TokenCache.java | 48 private static class Key { class in TokenCache 54 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) { in Key() method in TokenCache.Key 63 if (o != null && o instanceof Key) { in equals() 64 Key cacheKey = (Key) o; in equals() 83 private static class TokenLruCache extends LruCache<Key, Value> { 86 private final List<Key> mKeys; 92 public void add(Key k) { in add() 97 for (Key k : mKeys) { in evict() 116 protected int sizeOf(Key k, Value v) { in sizeOf() 121 protected void entryRemoved(boolean evicted, Key k, Value oldVal, Value newVal) { in entryRemoved() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 85 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); 151 final Key key = mStats.keyAt(i); in getRelevantUids() 205 final Key key = mStats.keyAt(i); in getHistory() 240 final Key key = mStats.keyAt(i); in getSummary() 281 private void recordHistory(Key key, NetworkStatsHistory history) { in recordHistory() 299 final Key key = another.mStats.keyAt(i); in recordCollection() 307 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory() 352 final Key key = new Key(ident, uid, set, tag); in read() 367 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap(); in write() 368 for (Key key : mStats.keySet()) { in write() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | AutoTileManager.java | 26 import com.android.systemui.Prefs.Key; 47 if (!Prefs.getBoolean(context, Key.QS_HOTSPOT_ADDED, false)) { in AutoTileManager() 50 if (!Prefs.getBoolean(context, Key.QS_DATA_SAVER_ADDED, false)) { in AutoTileManager() 53 if (!Prefs.getBoolean(context, Key.QS_INVERT_COLORS_ADDED, false)) { in AutoTileManager() 60 Prefs.putBoolean(mContext, Key.QS_INVERT_COLORS_ADDED, true); in AutoTileManager() 67 if (!Prefs.getBoolean(context, Key.QS_WORK_ADDED, false)) { in AutoTileManager() 71 if (!Prefs.getBoolean(context, Key.QS_NIGHTDISPLAY_ADDED, false) in AutoTileManager() 91 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true); 109 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true); 121 Prefs.putBoolean(mContext, Key.QS_HOTSPOT_ADDED, true); [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/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | StaticMetadata.java | 24 import android.hardware.camera2.CameraCharacteristics.Key; 390 Key<Float> key = CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE; in getMinimumFocusDistanceChecked() 423 Key<Integer> key = CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION; in getFocusDistanceCalibrationChecked() 481 Key<int[]> key = CameraCharacteristics.CONTROL_AE_AVAILABLE_ANTIBANDING_MODES; in getAeAvailableAntiBandingModesChecked() 519 Key<Boolean> key = CameraCharacteristics.FLASH_INFO_AVAILABLE; in getFlashInfoChecked() 531 Key<int[]> key = in getAvailableTestPatternModesChecked() 553 Key<Size[]> key = CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES; in getAvailableThumbnailSizesChecked() 581 Key<float[]> key = CameraCharacteristics.LENS_INFO_AVAILABLE_FOCAL_LENGTHS; in getAvailableFocalLengthsChecked() 602 Key<float[]> key = CameraCharacteristics.LENS_INFO_AVAILABLE_APERTURES; in getAvailableAperturesChecked() 623 Key<int[]> key = CameraCharacteristics.HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES; in getAvailableHotPixelModesChecked() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | BranchIsland.h | 106 class Key { 108 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) in Key() function 111 ~Key() {} in ~Key() 120 size_t operator()(const Key& KEY) const { in operator() 129 bool operator()(const Key& KEY1, const Key& KEY2) const { in operator() 157 typedef HashEntry<Key, Stub*, Key::Compare> StubEntryType; 159 typedef HashTable<StubEntryType, Key::Hash, EntryFactory<StubEntryType> >
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 79 public static class Key<T> { class in CameraMetadataNative 91 public Key(String name, Class<T> type, long vendorId) { in Key() method in CameraMetadataNative.Key 110 public Key(String name, Class<T> type) { in Key() method in CameraMetadataNative.Key 129 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraMetadataNative.Key 186 Key<?> lhs; in equals() 188 if (o instanceof CaptureResult.Key) { in equals() 189 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals() 190 } else if (o instanceof CaptureRequest.Key) { in equals() 191 lhs = ((CaptureRequest.Key)o).getNativeKey(); in equals() 192 } else if (o instanceof CameraCharacteristics.Key) { in equals() [all …]
|
/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);
|