/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 { 78 inline Key() : mKey(0) { } in Key() function 79 inline Key(const Key& rhs) : mKey(rhs.mKey) { } in Key() function 81 inline Key& set(key_t mask, key_t value) { in set() 109 friend inline int strictly_order_type(const Key& lhs, const Key& rhs) { in strictly_order_type() 125 static Key computeKey(const Description& description); 127 static Program* generateProgram(const Key& needs); 129 static String8 generateVertexShader(const Key& needs); 131 static String8 generateFragmentShader(const Key& needs); 135 DefaultKeyedVector<Key, Program*> mCache; [all …]
|
/frameworks/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/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/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, 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/support/paging/runtime/src/main/java/android/arch/paging/ |
D | LivePagedListProvider.java | 57 public abstract class LivePagedListProvider<Key, Value> { 66 protected abstract DataSource<Key, Value> createDataSource(); in createDataSource() 82 public LiveData<PagedList<Value>> create(@Nullable Key initialLoadKey, int pageSize) { in create() 103 public LiveData<PagedList<Value>> create(@Nullable final Key initialLoadKey, in create() 109 private DataSource<Key, Value> mDataSource; in create() 121 @Nullable Key initializeKey = initialLoadKey; in create() 124 initializeKey = (Key) mList.getLastKey(); in create() 135 mList = new PagedList.Builder<Key, Value>() in create()
|
/frameworks/support/paging/common/src/main/java/android/arch/paging/ |
D | KeyedDataSource.java | 101 public abstract class KeyedDataSource<Key, Value> extends ContiguousDataSource<Key, Value> { 122 @Nullable Key key, int initialLoadSize, boolean enablePlaceholders) { in loadInitialInternal() 136 Key loadBeforeKey = after.isEmpty() ? key : getKey(after.get(0)); in loadInitialInternal() 191 @Nullable Key key, int initialLoadSize, boolean enablePlaceholders) { in loadInitial() 220 public abstract Key getKey(@NonNull Value item); in getKey() 239 public int countItemsBefore(@NonNull Key key) { in countItemsBefore() 260 public int countItemsAfter(@NonNull Key key) { in countItemsAfter() 283 public abstract List<Value> loadAfter(@NonNull Key currentEndKey, int pageSize); in loadAfter() 299 public abstract List<Value> loadBefore(@NonNull Key currentBeginKey, int pageSize); in loadBefore() 303 Key getKey(int position, Value item) { in getKey()
|
D | PagedList.java | 161 public static class Builder<Key, Value> { 162 private DataSource<Key, Value> mDataSource; 166 private Key mInitialKey; 175 public Builder<Key, Value> setDataSource(@NonNull DataSource<Key, Value> dataSource) { in setDataSource() argument 187 public Builder<Key, Value> setMainThreadExecutor(@NonNull Executor mainThreadExecutor) { in setMainThreadExecutor() 202 public Builder<Key, Value> setBackgroundThreadExecutor( in setBackgroundThreadExecutor() 216 public Builder<Key, Value> setConfig(@NonNull Config config) { in setConfig() 228 public Builder<Key, Value> setInitialKey(@Nullable Key initialKey) { in setInitialKey()
|
/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/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/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/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 93 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); 216 final Key key = mStats.keyAt(i); in getRelevantUids() 281 final Key key = mStats.keyAt(i); in getHistory() 356 final Key key = mStats.keyAt(i); in getSummary() 397 private void recordHistory(Key key, NetworkStatsHistory history) { in recordHistory() 415 final Key key = another.mStats.keyAt(i); in recordCollection() 423 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory() 468 final Key key = new Key(ident, uid, set, tag); in read() 483 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap(); in write() 484 for (Key key : mStats.keySet()) { in write() [all …]
|
/frameworks/support/paging/common/src/test/java/android/arch/paging/ |
D | KeyedDataSourceTest.kt | 83 val key = Key("fz", 0) in loadInitial_keyPastEndOfList() 159 internal data class Key(val name: String, val id: Int) class in android.arch.paging.KeyedDataSourceTest 166 : KeyedDataSource<Key, Item>() { 168 override fun getKey(item: Item): Key { in getKey() 169 return Key(item.name, item.id) in getKey() 174 return loadAfter(Key("", Integer.MAX_VALUE), pageSize) in loadInitial() 177 fun findFirstIndexAfter(key: Key): Int { in findFirstIndexAfter() 183 fun findFirstIndexBefore(key: Key): Int { in findFirstIndexBefore() 189 override fun countItemsBefore(key: Key): Int { in countItemsBefore() 197 override fun countItemsAfter(key: Key): Int { in countItemsAfter() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConnectionStatistics.java | 91 for (String Key : untrustedNetworkHistory.keySet()) { in toString() 92 WifiNetworkConnectionStatistics stats = untrustedNetworkHistory.get(Key); in toString() 94 sbuf.append(Key).append(" ").append(stats.toString()).append("\n"); in toString() 123 for (String Key : untrustedNetworkHistory.keySet()) { in writeToParcel() 124 WifiNetworkConnectionStatistics num = untrustedNetworkHistory.get(Key); in writeToParcel() 125 dest.writeString(Key); in writeToParcel() 144 String Key = in.readString(); 149 stats.untrustedNetworkHistory.put(Key, st);
|
/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() 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/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);
|