Home
last modified time | relevance | path

Searched refs:getKey (Results 1 – 25 of 757) sorted by relevance

12345678910>>...31

/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationDataManager.java81 .putIfAbsent(notification.getKey(), /* muteState= */ in addNewMessageNotification()
95 mUnseenNotificationMap.putIfAbsent(sbn.getKey(), true); in updateUnseenNotification()
98 currentNotificationKeys.remove(sbn.getKey()); in updateUnseenNotification()
117 if (!mMessageNotificationToMuteStateMap.containsKey(notification.getKey())) { in isMessageNotificationMuted()
120 return mMessageNotificationToMuteStateMap.getOrDefault(notification.getKey(), false); in isMessageNotificationMuted()
130 String sbnKey = sbn.getKey(); in toggleMute()
136 + sbn.getKey()); in toggleMute()
154 if (mUnseenNotificationMap.containsKey(sbn.getKey())) { in setNotificationAsSeen()
155 mUnseenNotificationMap.put(sbn.getKey(), false); in setNotificationAsSeen()
DCarHeadsUpNotificationManager.java168 statusBarNotification.getKey()); in maybeShowHeadsUp()
170 activeNotifications.put(statusBarNotification.getKey(), statusBarNotification); in maybeShowHeadsUp()
179 activeNotifications.put(statusBarNotification.getKey(), statusBarNotification); in maybeShowHeadsUp()
182 if (!activeNotifications.containsKey(statusBarNotification.getKey()) || canUpdate( in maybeShowHeadsUp()
187 activeNotifications.put(statusBarNotification.getKey(), statusBarNotification); in maybeShowHeadsUp()
195 statusBarNotification.getKey()); in maybeRemoveHeadsUp()
230 statusBarNotification.getKey()); in isUpdate()
244 statusBarNotification.getKey()); in canUpdate()
255 statusBarNotification.getKey()); in addNewHeadsUpEntry()
258 mActiveHeadsUpNotifications.put(statusBarNotification.getKey(), in addNewHeadsUpEntry()
[all …]
DPreprocessingManager.java123 mOldNotifications.remove(sbn.getKey()); in updateNotifications()
130 boolean isUpdate = mOldNotifications.containsKey(notification.getKey()); in updateNotifications()
133 mOldNotifications.put(notification.getKey(), notification); in updateNotifications()
138 mOldNotifications.put(notification.getKey(), notification); in updateNotifications()
189 if (rankingMap.getRanking(statusBarNotification.getKey(), ranking)) { in isLessImportantForegroundNotification()
471 mRankingMap.getRanking(left.getKey(), leftRanking); in compare()
475 mRankingMap.getRanking(right.getKey(), rightRanking); in compare()
495 mRankingMap.getRanking(left.getNotificationForSorting().getKey(), leftRanking); in compare()
499 mRankingMap.getRanking(right.getNotificationForSorting().getKey(), rightRanking); in compare()
535 group.getNotificationForSorting().getKey(), rightRanking)) { in getRanking()
[all …]
/packages/services/Car/EncryptionRunner/test/android/car/encryptionrunner/
DEncryptionRunnerTest.java62 assertThat(finalServerMessage.getKey()).isNotNull(); in verifyRunners()
68 assertThat(finalClientMessage.getKey()).isNotNull(); in verifyRunners()
71 assertThat(finalServerMessage.getKey() in verifyRunners()
72 .decryptData(finalClientMessage.getKey().encryptData(sTestData))) in verifyRunners()
74 assertThat(finalClientMessage.getKey() in verifyRunners()
75 .decryptData(finalServerMessage.getKey().encryptData(sTestData))) in verifyRunners()
85 assertThat(initialClientMessage.getKey()).isNull(); in verifyHandshake()
98 assertThat(initialServerMessage.getKey()).isNull(); in verifyHandshake()
109 assertThat(clientMessage.getKey()).isNull(); in verifyHandshake()
120 assertThat(serverMessage.getKey()).isNull(); in verifyHandshake()
/packages/apps/Dialer/java/com/android/dialer/common/
DPerAccountSharedPreferences.java65 editor.putBoolean(getKey(key), value); in putBoolean()
70 editor.putFloat(getKey(key), value); in putFloat()
75 editor.putInt(getKey(key), value); in putInt()
80 editor.putLong(getKey(key), value); in putLong()
85 editor.putString(getKey(key), value); in putString()
90 editor.putStringSet(getKey(key), value); in putStringSet()
129 return preferences.contains(getKey(key)); in contains()
136 Object object = preferences.getAll().get(getKey(key)); in getValue()
143 private String getKey(String key) { in getKey() method in PerAccountSharedPreferences
/packages/services/Telephony/src/com/android/phone/vvm/
DVisualVoicemailPreferences.java59 mEditor.putBoolean(getKey(key), value); in putBoolean()
65 mEditor.putFloat(getKey(key), value); in putFloat()
70 mEditor.putInt(getKey(key), value); in putInt()
76 mEditor.putLong(getKey(key), value); in putLong()
81 mEditor.putString(getKey(key), value); in putString()
87 mEditor.putStringSet(getKey(key), value); in putStringSet()
129 return mPreferences.contains(getKey(key)); in contains()
136 Object object = mPreferences.getAll().get(getKey(key)); in getValue()
143 private String getKey(String key) { in getKey() method in VisualVoicemailPreferences
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredAidCache.java170 boolean isPrefix = isPrefix(entry.getKey()); in resolveAid()
171 boolean isSubset = isSubset(entry.getKey()); in resolveAid()
172 String entryAid = (isPrefix || isSubset) ? entry.getKey().substring(0, in resolveAid()
173 entry.getKey().length() - 1):entry.getKey(); // Cut off '*' if prefix in resolveAid()
176 if (DBG) Log.d(TAG, "resolveAid: AID " + entry.getKey() + " matches."); in resolveAid()
535 if (!entry.getKey().equalsIgnoreCase(prefixAid)) { in findConflictsForPrefixLocked()
537 Log.d(TAG, "AID " + entry.getKey() + " conflicts with prefix; " + in findConflictsForPrefixLocked()
540 prefixConflicts.aids.add(entry.getKey()); in findConflictsForPrefixLocked()
558 String aid = entry.getKey(); in findConflictsForSubsetAidLocked()
563 subsetConflicts.conflictMap.put(entry.getKey(),entry.getValue()); in findConflictsForSubsetAidLocked()
[all …]
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java211 mManager.getActiveHeadsUpNotifications().get(mNotification2.getKey())); in maybeShowHeadsUp_isNotImportant_returnsNull()
220 verify(mStatusBarNotificationSpy, times(1)).getKey(); in maybeRemoveHeadsUp_noCurrentNotifications_shouldNotCallClearView()
234 mManager.getActiveHeadsUpNotifications().get(mNotification1.getKey())); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull()
285 mNotification_carInformationHeadsUp.getKey())); in maybeShowHeadsUp_categoryCarInformation_returnsNull()
297 ShadowCarAssistUtils.addMessageNotification(mNotification_inboxHeadsUp.getKey()); in maybeShowHeadsUp_categoryMessage_returnsNotNull()
303 mNotification_messageHeadsUp.getKey())); in maybeShowHeadsUp_categoryMessage_returnsNotNull()
320 mNotification_callHeadsUp.getKey())); in maybeShowHeadsUp_categoryCall_returnsNotNull()
337 mNotification_navigationHeadsUp.getKey())); in maybeShowHeadsUp_categoryNavigation_returnsNotNull()
349 ShadowCarAssistUtils.addMessageNotification(mNotification_inboxHeadsUp.getKey()); in maybeShowHeadsUp_InboxHeadsUp_returnsNotNull()
354 mManager.getActiveHeadsUpNotifications().get(mNotification_inboxHeadsUp.getKey())); in maybeShowHeadsUp_InboxHeadsUp_returnsNotNull()
[all …]
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DAssistantTest.java154 when(mockRanking.getKey()).thenReturn(sbn.getKey()); in generateRanking()
199 assertEquals(sbn.getKey(), captor.getValue().getKey()); in testTriggerAdjustment()
234 assertEquals(sbn.getKey(), captor.getValue().getKey()); in testGroupChildCanTriggerAdjustment()
342 String key1 = mAssistant.getKey("pkg1", 1, "channel1"); in testReadXml()
350 String key1a = mAssistant.getKey("pkg1", 1, "channel1a"); in testReadXml()
355 String key2 = mAssistant.getKey("pkg2", 2, "channel2"); in testReadXml()
389 String key1 = mAssistant.getKey("pkg1", 1, "channel1"); in testRoundTripXml()
391 String key2 = mAssistant.getKey("pkg1", 1, "channel2"); in testRoundTripXml()
398 String key3 = mAssistant.getKey("pkg3", 3, "channel2"); in testRoundTripXml()
428 String key = mAssistant.getKey("pkg1", 1, "channel1"); in testSettingsProviderUpdate()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DApnPreference.java70 boolean isChecked = getKey().equals(mSelectedKey); in onBindViewHolder()
73 mSelectedKey = getKey(); in onBindViewHolder()
87 return getKey().equals(mSelectedKey); in isChecked()
91 mSelectedKey = getKey(); in setChecked()
95 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged()
105 mSelectedKey = getKey(); in onCheckedChanged()
123 int pos = Integer.parseInt(getKey()); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnPreference.java70 boolean isChecked = getKey().equals(mSelectedKey); in onBindViewHolder()
73 mSelectedKey = getKey(); in onBindViewHolder()
87 return getKey().equals(mSelectedKey); in isChecked()
91 mSelectedKey = getKey(); in setChecked()
95 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged()
105 mSelectedKey = getKey(); in onCheckedChanged()
123 int pos = Integer.parseInt(getKey()); in onClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DColorModePreferenceFragmentTest.java95 assertThat(candidates.get(0).getKey()) in getCandidates_all()
97 assertThat(candidates.get(1).getKey()) in getCandidates_all()
99 assertThat(candidates.get(2).getKey()) in getCandidates_all()
101 assertThat(candidates.get(3).getKey()) in getCandidates_all()
126 assertThat(candidates.get(0).getKey()) in getCandidates_withAutomatic()
128 assertThat(candidates.get(1).getKey()) in getCandidates_withAutomatic()
144 assertThat(candidates.get(0).getKey()) in getCandidates_withoutAutomatic()
146 assertThat(candidates.get(1).getKey()) in getCandidates_withoutAutomatic()
148 assertThat(candidates.get(2).getKey()) in getCandidates_withoutAutomatic()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnPreference.java72 boolean isChecked = getKey().equals(mSelectedKey); in getView()
75 mSelectedKey = getKey(); in getView()
103 return getKey().equals(mSelectedKey); in isChecked()
107 mSelectedKey = getKey(); in setChecked()
115 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged()
125 mSelectedKey = getKey(); in onCheckedChanged()
139 UIIntents.get().getApnEditorIntent(context, getKey(), mSubId)); in onClick()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAssistant.java211 out.attribute(null, ATT_KEY, entry.getKey()); in writeXml()
229 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey() + " on " + channel.getId()); in onNotificationEnqueued()
240 sbn.getKey(), suggestions.actions.size(), suggestions.replies.size())); in onNotificationEnqueued()
277 entry.getSbn().getKey(), in createEnqueuedNotificationAdjustment()
285 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey());
290 Ranking ranking = getRanking(sbn.getKey(), rankingMap);
294 String key = getKey(
305 sbn.getPackageName(), sbn.getKey(), sbn.getUserId()));
307 mLiveNotifications.put(sbn.getKey(), entry);
323 String channelId = mLiveNotifications.remove(sbn.getKey()).getChannel().getId(); in onNotificationRemoved()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DCameraSettingsActivity.java238 intent.putExtra(PREF_SCREEN_EXTRA, preferenceScreen.getKey()); in setPreferenceScreenIntent()
266 if (key.equals(parent.getKey())) { in findByKey()
370 if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_BACK)) { in setEntries()
372 } else if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_FRONT)) { in setEntries()
374 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_BACK)) { in setEntries()
376 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_FRONT)) { in setEntries()
391 if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_BACK)) { in setSummary()
394 } else if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_FRONT)) { in setSummary()
397 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_BACK)) { in setSummary()
399 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_FRONT)) { in setSummary()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppsPickerBasePreferenceController.java88 mDefaultAppInfoMap.put(info.getKey(), info); in updateState()
103 String newPreferenceSummary = TextUtils.equals(preference.getKey(), in updateState()
112 String selectedKey = preference.getKey(); in onPreferenceClick()
137 preference.setKey(info.getKey()); in bindPreference()
199 keys.add(info.getKey()); in equalToCurrentCandidates()
202 if (!keys.remove(info.getKey())) { in equalToCurrentCandidates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAppRestrictionsFragment.java485 if (prefKey.equals(pref.getKey())) { in updateAllEntries()
500 final String packageName = pref.getKey().substring(PKG_PREFIX.length()); in onClick()
518 updateAllEntries(pref.getKey(), pref.isChecked()); in onClick()
525 String key = preference.getKey(); in onPreferenceChange()
535 if (entry.getKey().equals(restrictionKey)) { in onPreferenceChange()
577 if (preference.getKey().startsWith(PKG_PREFIX)) { in onAppSettingsIconClicked()
581 String packageName = preference.getKey().substring(PKG_PREFIX.length()); in onAppSettingsIconClicked()
714 p.setKey(preference.getKey().substring(PKG_PREFIX.length()) + DELIMITER in onRestrictionsReceived()
715 + entry.getKey()); in onRestrictionsReceived()
753 String packageName = pref.getKey().substring(PKG_PREFIX.length()); in onActivityResult()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java485 if (prefKey.equals(pref.getKey())) { in updateAllEntries()
500 final String packageName = pref.getKey().substring(PKG_PREFIX.length()); in onClick()
518 updateAllEntries(pref.getKey(), pref.isChecked()); in onClick()
525 String key = preference.getKey(); in onPreferenceChange()
535 if (entry.getKey().equals(restrictionKey)) { in onPreferenceChange()
577 if (preference.getKey().startsWith(PKG_PREFIX)) { in onAppSettingsIconClicked()
581 String packageName = preference.getKey().substring(PKG_PREFIX.length()); in onAppSettingsIconClicked()
714 p.setKey(preference.getKey().substring(PKG_PREFIX.length()) + DELIMITER in onRestrictionsReceived()
715 + entry.getKey()); in onRestrictionsReceived()
753 String packageName = pref.getKey().substring(PKG_PREFIX.length()); in onActivityResult()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DUserDeniedManager.java124 .remove(getKey(packageName, false)) in clearPackageDenied()
125 .remove(getKey(packageName, true)) in clearPackageDenied()
130 private static String getKey(@NonNull String packageName, boolean always) { in getKey() method in UserDeniedManager
137 String key = getKey(packageName, always); in isDenied()
143 String key = getKey(packageName, always); in setDenied()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsControllerTest.java116 assertThat(pref.getKey()).isEqualTo(UsbBackend.usbFunctionsToString(iter.next())); in displayRefresh_allAllowed_shouldCreatePrefs()
140 assertThat(prefs.get(0).getKey()) in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
152 assertThat(prefs.get(0).getKey()) in displayRefresh_mtpEnabled_shouldCheckSwitches()
167 assertThat(prefs.get(0).getKey()) in onClickMtp_noneEnabled_shouldEnableMtp()
185 assertThat(prefs.get(0).getKey()) in onClickMtp_ptpEnabled_shouldEnableMtp()
191 assertThat(prefs.get(3).getKey()) in onClickMtp_ptpEnabled_shouldEnableMtp()
206 assertThat(prefs.get(4).getKey()) in onClickNone_mtpEnabled_shouldDisableMtp()
/packages/apps/Launcher3/src/com/android/launcher3/config/
DFlagTogglerPrefUi.java52 if (flag.getKey().equals(key)) {
66 if (flag.getKey().equals(key)) {
88 switchPreference.setKey(flag.getKey()); in applyTo()
91 switchPreference.setTitle(flag.getKey()); in applyTo()
138 return mDataStore.getBoolean(flag.getKey(), flag.getDefaultValue()); in getFlagStateFromSharedPrefs()
DBaseFlags.java166 public String getKey() { in getKey() method in BaseFlags.TogglableFlag
217 return (this.key.equals(that.getKey())) in equals()
251 contentResolver.registerContentObserver(Settings.Global.getUriFor(getKey()), true, in initialize()
269 Settings.Global.putInt(contentResolver, getKey(), value ? 1 : 0); in updateStorage()
277 return Settings.Global.getInt(contentResolver, getKey(), defaultValue ? 1 : 0) == 1; in getFromStorage()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaResourceManager.java148 mediaRequest.getKey(), e); in requestMediaResourceSync()
194 final T mediaResource = mediaCache.fetchResourceFromCache(mediaRequest.getKey()); in loadMediaFromCache()
273 mediaRequest.getKey(), mException); in scheduleAsyncMediaRequest()
281 LogUtil.sanitizePII(mediaRequest.getKey()) /* key with phone# */); in scheduleAsyncMediaRequest()
296 mediaCache.addResourceToCache(mediaRequest.getKey(), mediaResource); in addResourceToMemoryCache()
299 LogUtil.sanitizePII(mediaRequest.getKey()) /* key can contain phone# */); in addResourceToMemoryCache()
/packages/apps/Settings/src/com/android/settings/widget/
DRadioButtonPickerFragment.java113 final String selectedKey = selected.getKey(); in onRadioButtonClicked()
163 mCandidates.put(info.getKey(), info); in updateCandidates()
195 bindPreference(pref, info.getKey(), info, defaultKey); in updateCandidates()
196 bindPreferenceExtra(pref, info.getKey(), info, defaultKey, systemDefaultKey); in updateCandidates()
229 final boolean newCheckedState = TextUtils.equals(pref.getKey(), selectedKey); in updateCheckedState()
231 radioPref.setChecked(TextUtils.equals(pref.getKey(), selectedKey)); in updateCheckedState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DRadioButtonPickerFragment.java113 final String selectedKey = selected.getKey(); in onRadioButtonClicked()
163 mCandidates.put(info.getKey(), info); in updateCandidates()
195 bindPreference(pref, info.getKey(), info, defaultKey); in updateCandidates()
196 bindPreferenceExtra(pref, info.getKey(), info, defaultKey, systemDefaultKey); in updateCandidates()
229 final boolean newCheckedState = TextUtils.equals(pref.getKey(), selectedKey); in updateCheckedState()
231 radioPref.setChecked(TextUtils.equals(pref.getKey(), selectedKey)); in updateCheckedState()

12345678910>>...31