/frameworks/base/core/java/android/hardware/camera2/ |
D | CaptureResult.java | 53 public class CaptureResult extends CameraMetadata<CaptureResult.Key<?>> { 74 public final static class Key<T> { class in CaptureResult 75 private final CameraMetadataNative.Key<T> mKey; 83 public Key(String name, Class<T> type, long vendorId) { in Key() method in CaptureResult.Key 84 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key() 92 public Key(String name, String fallbackName, Class<T> type) { in Key() method in CaptureResult.Key 93 mKey = new CameraMetadataNative.Key<T>(name, fallbackName, type); in Key() 103 public Key(@NonNull String name, @NonNull Class<T> type) { in Key() method in CaptureResult.Key 104 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 113 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureResult.Key [all …]
|
D | CameraCharacteristics.java | 51 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> { 70 public static final class Key<T> { class in CameraCharacteristics 71 private final CameraMetadataNative.Key<T> mKey; 79 public Key(String name, Class<T> type, long vendorId) { in Key() method in CameraCharacteristics.Key 80 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key() 88 public Key(String name, String fallbackName, Class<T> type) { in Key() method in CameraCharacteristics.Key 89 mKey = new CameraMetadataNative.Key<T>(name, fallbackName, type); in Key() 100 public Key(@NonNull String name, @NonNull Class<T> type) { in Key() method in CameraCharacteristics.Key 101 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 110 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraCharacteristics.Key [all …]
|
D | CaptureRequest.java | 82 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>> 103 public final static class Key<T> { class in CaptureRequest 104 private final CameraMetadataNative.Key<T> mKey; 112 public Key(String name, Class<T> type, long vendorId) { in Key() method in CaptureRequest.Key 113 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key() 123 public Key(@NonNull String name, @NonNull Class<T> type) { in Key() method in CaptureRequest.Key 124 mKey = new CameraMetadataNative.Key<T>(name, type); in Key() 133 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureRequest.Key 134 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key() 178 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() [all …]
|
D | CameraMetadata.java | 196 if (k instanceof CaptureRequest.Key<?>) { in getKeys() 197 keyName = ((CaptureRequest.Key<?>) k).getName(); in getKeys() 198 vendorId = ((CaptureRequest.Key<?>) k).getVendorId(); in getKeys() 199 } else if (k instanceof CaptureResult.Key<?>) { in getKeys() 200 keyName = ((CaptureResult.Key<?>) k).getName(); in getKeys() 201 vendorId = ((CaptureResult.Key<?>) k).getVendorId(); in getKeys() 202 } else if (k instanceof CameraCharacteristics.Key<?>) { in getKeys() 203 keyName = ((CameraCharacteristics.Key<?>) k).getName(); in getKeys() 204 vendorId = ((CameraCharacteristics.Key<?>) k).getVendorId(); in getKeys() 232 CameraMetadataNative.Key nativeKey; in shouldKeyBeAdded() [all …]
|
/frameworks/native/libs/renderengine/gl/ |
D | ProgramCache.cpp | 83 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK | Key::ALPHA_MASK | Key::TEXTURE_MASK in primeCache() 84 | Key::ROUNDED_CORNERS_MASK; in primeCache() 90 Key shaderKey; in primeCache() 93 if (tex != Key::TEXTURE_OFF && tex != Key::TEXTURE_EXT && tex != Key::TEXTURE_2D) { in primeCache() 104 Key shaderKey; in primeCache() 105 shaderKey.set(Key::BLEND_MASK | Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::INPUT_TF_MASK | in primeCache() 106 Key::OUTPUT_TF_MASK, in primeCache() 107 Key::BLEND_PREMULT | Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::INPUT_TF_SRGB | in primeCache() 108 Key::OUTPUT_TF_SRGB); in primeCache() 110 shaderKey.set(Key::OPACITY_MASK, in primeCache() [all …]
|
D | ProgramCache.h | 54 class Key { 117 inline Key() : mKey(0) {} in Key() function 118 inline Key(const Key& rhs) : mKey(rhs.mKey) {} in Key() function 120 inline Key& set(key_t mask, key_t value) { in set() 156 if (inputTF == Key::INPUT_TF_SRGB && outputTF == Key::OUTPUT_TF_LINEAR) { in needsToneMapping() 159 if (inputTF == Key::INPUT_TF_LINEAR && outputTF == Key::OUTPUT_TF_SRGB) { in needsToneMapping() 163 inputTF >>= Key::INPUT_TF_SHIFT; in needsToneMapping() 164 outputTF >>= Key::OUTPUT_TF_SHIFT; in needsToneMapping() 171 bool operator==(const Key& other) const { return mKey == other.mKey; } 174 size_t operator()(const Key& key) const { return static_cast<size_t>(key.mKey); } in operator() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | RenderParamsFlags.java | 22 import com.android.ide.common.rendering.api.SessionParams.Key; 33 public static final Key<String> FLAG_KEY_ROOT_TAG = 34 new Key<String>("rootTag", String.class); 35 public static final Key<Boolean> FLAG_KEY_DISABLE_BITMAP_CACHING = 36 new Key<Boolean>("disableBitmapCaching", Boolean.class); 37 public static final Key<Boolean> FLAG_KEY_RENDER_ALL_DRAWABLE_STATES = 38 new Key<Boolean>("renderAllDrawableStates", Boolean.class); 44 public static final Key<Boolean> FLAG_KEY_RECYCLER_VIEW_SUPPORT = 45 new Key<Boolean>("recyclerViewSupport", Boolean.class); 49 public static final Key<String> FLAG_KEY_APPLICATION_PACKAGE = [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 34 Key.OVERVIEW_LAST_STACK_TASK_ACTIVE_TIME, 35 Key.DEBUG_MODE_ENABLED, 36 Key.HOTSPOT_TILE_LAST_USED, 37 Key.COLOR_INVERSION_TILE_LAST_USED, 38 Key.DND_TILE_VISIBLE, 39 Key.DND_TILE_COMBINED_ICON, 40 Key.DND_CONFIRMED_PRIORITY_INTRODUCTION, 41 Key.DND_CONFIRMED_SILENCE_INTRODUCTION, 42 Key.DND_FAVORITE_BUCKET_INDEX, 43 Key.DND_NONE_SELECTED, [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
D | Engine.h | 106 template <typename Key> 107 status_t add(const std::string &name, const Key &key); 109 template <typename Key> 110 Element<Key> *getFromCollection(const Key &key) const; 112 template <typename Key> 113 const Collection<Key> &getCollection() const; 115 template <typename Key> 116 Collection<Key> &getCollection(); 118 template <typename Property, typename Key> 119 Property getPropertyForKey(Key key) const; [all …]
|
D | Collection.h | 42 template <typename Key> 43 class Collection : public std::map<Key, Element<Key> *> 46 typedef std::map<Key, Element<Key> *> Base; 47 typedef Element<Key> T; 48 typedef typename std::map<Key, T *>::iterator CollectionIterator; 49 typedef typename std::map<Key, T *>::const_iterator CollectionConstIterator; 68 status_t add(const std::string &name, Key key) in add() 88 T *get(Key key) const in get()
|
D | Engine.cpp | 91 template <typename Key> 92 Element<Key> *Engine::getFromCollection(const Key &key) const in getFromCollection() 94 const Collection<Key> collection = getCollection<Key>(); in getFromCollection() 98 template <typename Key> 99 status_t Engine::add(const std::string &name, const Key &key) in add() 101 Collection<Key> &collection = getCollection<Key>(); in add() 105 template <typename Property, typename Key> 106 Property Engine::getPropertyForKey(Key key) const in getPropertyForKey() 108 Element<Key> *element = getFromCollection<Key>(key); in getPropertyForKey() 126 template <typename Property, typename Key> [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, displayId, 24); in TestInputMessageAlignment() 42 CHECK_OFFSET(InputMessage::Body::Key, action, 28); in TestInputMessageAlignment() 43 CHECK_OFFSET(InputMessage::Body::Key, flags, 32); in TestInputMessageAlignment() 44 CHECK_OFFSET(InputMessage::Body::Key, keyCode, 36); in TestInputMessageAlignment() 45 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 40); in TestInputMessageAlignment() 46 CHECK_OFFSET(InputMessage::Body::Key, metaState, 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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | VoiceCallRatTracker.java | 41 private final Map<Key, Value> mRatUsageMap = new HashMap<>(); 44 private Key mLastKey; 93 Key key = new Key(carrierId, rat); in add() 134 private void addToKey(Key key, long durationMillis, Set<Integer> connectionIds) { in addToKey() 144 mRatUsageMap.put(Key.fromProto(usage), Value.fromProto(usage)); in addProto() 147 private static RawVoiceCallRatUsage entryToProto(Map.Entry<Key, Value> entry) { in entryToProto() argument 148 Key key = entry.getKey(); in entryToProto() 166 private static class Key { class in VoiceCallRatTracker 170 Key(int carrierId, int rat) { in Key() method in VoiceCallRatTracker.Key 175 static Key fromProto(RawVoiceCallRatUsage usage) { in fromProto() [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/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/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 98 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); 197 final Key key = mStats.keyAt(i); in getRelevantUids() 265 final Key key = mStats.keyAt(i); in getHistory() 344 final Key key = mStats.keyAt(i); in getSummary() 387 private void recordHistory(Key key, NetworkStatsHistory history) { in recordHistory() 405 final Key key = another.mStats.keyAt(i); in recordCollection() 413 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory() 458 final Key key = new Key(ident, uid, set, tag); in read() 473 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap(); in write() 474 for (Key key : mStats.keySet()) { in write() [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/av/drm/mediadrm/plugins/clearkey/default/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() 126 Key key = { in TEST_F() 171 Key key = { in TEST_F() 217 Key key = { in TEST_F() 263 Key key = { in TEST_F() 312 Key key = { in TEST_F() 366 Key key = { in TEST_F() 421 Key key = { in TEST_F()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiCandidates.java | 54 @Nullable Key getKey(); in getKey() 124 public final Key key; // SSID/sectype/BSSID/configId 136 CandidateImpl(Key key, in CandidateImpl() 157 public Key getKey() { in getKey() 277 public final Key candidateKey; 295 public static class Key { class in WifiCandidates 300 public Key(ScanResultMatchInfo matchInfo, in Key() method in WifiCandidates.Key 310 if (!(other instanceof Key)) return false; in equals() 311 Key that = (Key) other; in equals() 323 private final Map<Key, CandidateImpl> mCandidates = new ArrayMap<>(); [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | AutoAddTrackerTest.java | 31 import com.android.systemui.Prefs.Key; 52 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true); in testMigration() 53 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true); in testMigration() 61 assertTrue(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true )); in testMigration() 62 assertFalse(Prefs.getBoolean(mContext, Key.QS_DATA_SAVER_ADDED, false)); in testMigration() 63 assertTrue(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, true)); in testMigration() 64 assertFalse(Prefs.getBoolean(mContext, Key.QS_WORK_ADDED, false)); in testMigration()
|
/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);
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 86 public static class Key<T> { class in CameraMetadataNative 99 public Key(String name, Class<T> type, long vendorId) { in Key() method in CameraMetadataNative.Key 116 public Key(String name, String fallbackName, Class<T> type) { in Key() method in CameraMetadataNative.Key 135 public Key(String name, Class<T> type) { in Key() method in CameraMetadataNative.Key 155 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraMetadataNative.Key 213 Key<?> lhs; in equals() 215 if (o instanceof CaptureResult.Key) { in equals() 216 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals() 217 } else if (o instanceof CaptureRequest.Key) { in equals() 218 lhs = ((CaptureRequest.Key)o).getNativeKey(); in equals() [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 169 struct Key { struct 170 Key(); 171 Key(const Key& other); 172 ~Key(); 222 status_t finishKey(Key* key); 229 KeyedVector<int32_t, Key*> mKeys; 238 bool getKey(int32_t keyCode, const Key** outKey) const; 240 const Key** outKey, const Behavior** outBehavior) const;
|
/frameworks/av/media/libmediametrics/include/ |
D | MediaAnalyticsItem.h | 70 typedef std::string Key; typedef 71 static const Key kKeyNone; // "" 72 static const Key kKeyAny; // "*" 90 MediaAnalyticsItem(Key); 96 static MediaAnalyticsItem* create(Key key); 121 MediaAnalyticsItem &setKey(MediaAnalyticsItem::Key); 122 MediaAnalyticsItem::Key getKey(); 240 Key mKey;
|