Home
last modified time | relevance | path

Searched refs:mKey (Results 1 – 25 of 78) sorted by relevance

1234

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKeyValueListParser.java221 private final String mKey; field in KeyValueListParser.IntValue
227 mKey = key; in IntValue()
234 mValue = parser.getInt(mKey, mDefaultValue); in parse()
239 return mKey; in getKey()
260 pw.print(mKey); in dump()
269 private final String mKey; field in KeyValueListParser.LongValue
275 mKey = key; in LongValue()
282 mValue = parser.getLong(mKey, mDefaultValue); in parse()
287 return mKey; in getKey()
308 pw.print(mKey); in dump()
[all …]
/packages/apps/Settings/src/com/android/settings/slices/
DSliceData.java56 private final String mKey; field in SliceData
84 return mKey; in getKey()
136 mKey = builder.mKey; in SliceData()
153 return mKey.hashCode(); in hashCode()
162 return TextUtils.equals(mKey, newObject.mKey); in equals()
166 private String mKey; field in SliceData.Builder
193 mKey = key; in setKey()
259 if (TextUtils.isEmpty(mKey)) { in build()
283 return mKey; in getKey()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DSharedPreferencesFeature.java29 private final String mKey; field in SharedPreferencesFeature
43 mKey = key; in SharedPreferencesFeature()
57 mEnabled = mSharedPreferences.getBoolean(mKey, mDefaultValue); in isEnabled()
59 if (DEBUG) Log.d(TAG, mKey + " is " + mEnabled); in isEnabled()
65 return "SharedPreferencesFeature:key=" + mKey + ",value=" + mEnabled; in toString()
69 if (DEBUG) Log.d(TAG, mKey + " is set to " + enable); in setEnabled()
75 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); in setEnabled()
78 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); in setEnabled()
/packages/apps/TV/common/src/com/android/tv/common/dev/
DDeveloperPreference.java54 final String mKey; field in DeveloperPreference
59 mKey = key; in DeveloperPreference()
91 getPreferences(context).edit().remove(mKey).apply(); in clear()
96 return "[" + mKey + "]=" + mValue + " Default value : " + mDefaultValue; in toString()
107 getPreferences(context).edit().putBoolean(mKey, value).apply(); in storeValue()
112 return getPreferences(context).getBoolean(mKey, mDefaultValue); in getStoredValue()
124 getPreferences(context).edit().putInt(mKey, value).apply(); in storeValue()
129 return getPreferences(context).getInt(mKey, mDefaultValue); in getStoredValue()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DCredentialElement.java37 private final String mKey; field in CredentialElement
43 mKey = key; in CredentialElement()
71 dest.writeString(mKey); in writeToParcel()
79 return mKey; in getKey()
92 return mKey.equals(that.mKey) && Arrays.equals(mValue, that.mValue); in equals()
99 return Objects.hash(mKey.hashCode(), Arrays.hashCode(mValue)); in hashCode()
DDataElement.java35 private final int mKey; field in DataElement
43 mKey = key; in DataElement()
70 dest.writeInt(mKey); in writeToParcel()
79 return mKey; in getKey()
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagPreference.java28 private final String mKey; field in FeatureFlagPreference
33 mKey = key; in FeatureFlagPreference()
50 FeatureFlagPersistent.setEnabled(getContext(), mKey, isChecked); in setChecked() local
52 FeatureFlagUtils.setEnabled(getContext(), mKey, isChecked); in setChecked() local
57 if (TextUtils.equals(mKey, in setChecked()
60 mKey, String.valueOf(isChecked)); in setChecked() local
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DAbstractPreferenceController.java37 protected final String[] mKey; field in AbstractPreferenceController
46 mKey = getPreferenceKey(); in AbstractPreferenceController()
47 mPreferenceCompat = mPreferenceCompatManager.getOrCreatePrefCompat(mKey); in AbstractPreferenceController()
56 mKey = key; in AbstractPreferenceController()
57 mPreferenceCompat = mPreferenceCompatManager.getOrCreatePrefCompat(mKey); in AbstractPreferenceController()
123 return mKey; in getPreferenceKey()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTaskKeyLruCache.java56 mMap.entrySet().removeIf(e -> keyCheck.test(e.getValue().mKey)); in removeAll()
65 if (entry != null && entry.mKey.windowingMode == key.windowingMode in getAndInvalidateIfModified()
66 && entry.mKey.lastActiveTime == key.lastActiveTime) { in getAndInvalidateIfModified()
97 final TaskKey mKey; field in TaskKeyLruCache.Entry
101 mKey = key; in Entry()
107 return mKey.id; in hashCode()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp46 Update(const HashableDimensionKey& key, int state) : mKey(key), mState(state){}; in Update()
47 HashableDimensionKey mKey; member
260 EXPECT_EQ(1000, listener->updates[0].mKey.getValues()[0].mValue.int_value); in TEST()
278 EXPECT_EQ(1000, listener->updates[0].mKey.getValues()[0].mValue.int_value); in TEST()
302 EXPECT_EQ(1000, listener->updates[0].mKey.getValues()[0].mValue.int_value); in TEST()
305 mgr.getStateValue(util::BLE_SCAN_STATE_CHANGED, listener->updates[0].mKey, &stateFieldValue); in TEST()
314 EXPECT_EQ(2000, listener->updates[0].mKey.getValues()[0].mValue.int_value); in TEST()
316 mgr.getStateValue(util::BLE_SCAN_STATE_CHANGED, listener->updates[0].mKey, &stateFieldValue); in TEST()
328 mgr.getStateValue(util::BLE_SCAN_STATE_CHANGED, update.mKey, &stateFieldValue); in TEST()
349 EXPECT_EQ(DEFAULT_DIMENSION_KEY, listener1->updates[0].mKey); in TEST()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DFakeImageRequest.java24 private final String mKey; field in FakeImageRequest
28 mKey = key; in FakeImageRequest()
34 return mKey; in getKey()
40 if (TextUtils.equals(mKey, INVALID_KEY)) { in loadMediaBlocking()
43 return new FakeImageResource(mSize, mKey); in loadMediaBlocking()
/packages/apps/TV/common/src/com/android/tv/common/
DBooleanSystemProperty.java38 private final String mKey; field in BooleanSystemProperty
49 mKey = key; in BooleanSystemProperty()
94 mValue = getBoolean(mKey, mDefaultValue); in getValue()
95 if (DEBUG) Log.d(TAG, mKey + "=" + mValue); in getValue()
102 return "SystemProperty[" + mKey + "]=" + getValue(); in toString()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/
DPreferenceCompat.java48 private final String[] mKey; field in PreferenceCompat
135 if (prefKey == null || prefKey.length != this.mKey.length + 1) { in findChildPreferenceCompat()
138 if (IntStream.range(0, mKey.length).anyMatch(i -> !(mKey[i].equals(prefKey[i])))) { in findChildPreferenceCompat()
155 this.mKey = new String[]{key}; in PreferenceCompat()
161 this.mKey = key; in PreferenceCompat()
167 this.mKey = key; in PreferenceCompat()
181 return mKey; in getKey()
607 + "mKey=" + Arrays.toString(mKey) in toString()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairAccountKeyStorage.java73 private final byte[] mKey; field in FastPairAccountKeyStorage.AccountKey
76 mKey = key; in AccountKey()
80 mKey = new BigInteger(key).toByteArray(); in AccountKey()
87 return mKey; in toBytes()
94 return new SecretKeySpec(mKey, "AES"); in getKeySpec()
99 return Arrays.hashCode(mKey); in hashCode()
113 return Arrays.toString(mKey); in toString()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/
DFastPairConnection.java152 private final byte[] mKey; field in FastPairConnection.SharedSecret
155 mKey = key; in SharedSecret()
166 return mKey; in getKey()
177 + "key=" + Arrays.toString(mKey) + ", " in toString()
189 return Arrays.equals(this.mKey, that.getKey()) in equals()
197 return Objects.hash(Arrays.hashCode(mKey), mAddress); in hashCode()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionListItem.java23 private final String mKey; field in UserRestrictionListItem
27 mKey = key; in UserRestrictionListItem()
32 return mKey; in getKey()
45 return mKey + "(" + (mIsChecked ? "on" : "off") + ")"; in toString()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingObserver.java56 private final String mKey; field in SettingObserver
62 mKey = key; in SettingObserver()
98 return (T) Integer.valueOf(mSettingsManager.getInteger(mScope, mKey)); in get()
100 Object string = mSettingsManager.getString(mScope, mKey); in get()
107 return (T) Boolean.valueOf(mSettingsManager.getBoolean(mScope, mKey)); in get()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java42 private final String mKey; field in Action
64 private String mKey; field in Action.Builder
79 mKey, in build()
94 mKey = key; in key()
157 mKey = key; in Action()
214 return mKey; in getKey()
344 dest.writeString(mKey); in writeToParcel()
/packages/modules/Connectivity/framework-t/src/android/net/
DIpSecAlgorithm.java244 private final byte[] mKey; field in IpSecAlgorithm
277 mKey = key.clone(); in IpSecAlgorithm()
279 checkValidOrThrow(mName, mKey.length * 8, mTruncLenBits); in IpSecAlgorithm()
291 return mKey.clone(); in getKey()
307 out.writeByteArray(mKey); in writeToParcel()
488 && Arrays.equals(lhs.mKey, rhs.mKey) in equals()
/packages/apps/Car/Notification/src/com/android/car/notification/
DAlertEntry.java29 private String mKey; field in AlertEntry
36 mKey = statusBarNotification.getKey(); in AlertEntry()
85 return mKey; in getKey()
98 return mKey; in toString()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DMetadataResponseListener.java30 private final CaptureResult.Key<V> mKey; field in MetadataResponseListener
37 mKey = key; in MetadataResponseListener()
43 V newValue = partialResult.get(mKey); in onProgressed()
51 V newValue = totalCaptureResult.get(mKey); in onCompleted()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DNinePatchTexture.java83 private int[] mKey = new int[CACHE_SIZE]; field in NinePatchTexture.SmallCache
92 mKey[CACHE_SIZE - 1] = key; in put()
96 mKey[mCount] = key; in put()
105 if (mKey[i] == key) { in get()
110 int tmpKey = mKey[i]; in get()
111 mKey[i] = mKey[i - 1]; in get()
112 mKey[i - 1] = tmpKey; in get()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.h68 : mTrieMap(trieMap), mKey(key), mValue(value), in IterationResult()
80 return mKey; in key()
93 const int mKey; variable
100 mKey(0), mValue(0), mIsValid(false), mNextLevelBitmapEntryIndex(INVALID_INDEX) { in TrieMapIterator()
111 return IterationResult(mTrieMap, mKey, mValue, mNextLevelBitmapEntryIndex);
120 const Result result = mTrieMap->iterateNext(&mStateStack, &mKey);
134 int mKey; variable
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugMmsConfigItemView.java48 private String mKey; field in DebugMmsConfigItemView
69 mKey = key; in bind()
95 mListener.onValueChanged(mKey, mKeyType, String.valueOf(isChecked)); in onCheckedChanged()
113 .setTitle(mKey) in onClick()
132 mListener.onValueChanged(mKey, mKeyType, mEditText.getText().toString()); in onClick()
/packages/apps/LegacyCamera/src/com/android/camera/
DListPreference.java35 private final String mKey; field in ListPreference
49 mKey = Util.checkNotNull( in ListPreference()
73 return mKey; in getKey()
94 mValue = getSharedPreferences().getString(mKey, in getValue()
138 editor.putString(mKey, value); in persistStringValue()

1234