/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceControllerTest.java | 92 assertEquals("zeroCategories", mGroupList.getPreference(0).getKey()); in testUpdateFullList_incrementalUpdates() 103 assertEquals("group1", group1.getKey()); in testUpdateFullList_incrementalUpdates() 105 assertNull(group1.getPreference(0).getKey()); in testUpdateFullList_incrementalUpdates() 107 assertEquals("ch1a", group1.getPreference(1).getKey()); in testUpdateFullList_incrementalUpdates() 117 assertEquals("group1", group1.getKey()); in testUpdateFullList_incrementalUpdates() 119 assertNull(group1.getPreference(0).getKey()); in testUpdateFullList_incrementalUpdates() 121 assertEquals("ch1a", group1.getPreference(1).getKey()); in testUpdateFullList_incrementalUpdates() 123 assertEquals("ch1b", group1.getPreference(2).getKey()); in testUpdateFullList_incrementalUpdates() 133 assertEquals("group1", group1.getKey()); in testUpdateFullList_incrementalUpdates() 135 assertNull(group1.getPreference(0).getKey()); in testUpdateFullList_incrementalUpdates() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationDataManager.java | 112 .putIfAbsent(alertEntry.getKey(), /* muteState= */ false); in addNewMessageNotification() 114 if (mUnseenNotificationMap.containsKey(alertEntry.getKey())) { in addNewMessageNotification() 115 mUnseenNotificationMap.put(alertEntry.getKey(), true); in addNewMessageNotification() 124 if (mUnseenNotificationMap.containsKey(alertEntry.getKey())) { in untrackUnseenNotification() 125 mUnseenNotificationMap.remove(alertEntry.getKey()); in untrackUnseenNotification() 151 mUnseenNotificationMap.putIfAbsent(alertEntry.getKey(), true); in updateUnseenAlertEntries() 154 currentNotificationKeys.remove(alertEntry.getKey()); in updateUnseenAlertEntries() 166 return !mUnseenNotificationMap.getOrDefault(alertEntry.getKey(), false); in isNotificationSeen() 174 if (!mMessageNotificationToMuteStateMap.containsKey(alertEntry.getKey())) { in isMessageNotificationMuted() 177 return mMessageNotificationToMuteStateMap.getOrDefault(alertEntry.getKey(), false); in isMessageNotificationMuted() [all …]
|
D | CarHeadsUpNotificationManager.java | 154 alertEntry.getKey()); in maybeShowHeadsUp() 168 boolean containsKeyFlag = !activeNotifications.containsKey(alertEntry.getKey()); in maybeShowHeadsUp() 189 alertEntry.getKey()); in maybeRemoveHeadsUp() 251 alertEntry.getKey()); in isUpdate() 264 alertEntry.getKey()); in canUpdate() 275 alertEntry.getKey()); in addNewHeadsUpEntry() 280 mActiveHeadsUpNotifications.put(alertEntry.getKey(), in addNewHeadsUpEntry() 442 if (rankingMap.getRanking(alertEntry.getKey(), ranking)) { in playSound() 489 alertEntry.getKey()); in dismissHun() 512 mActiveHeadsUpNotifications.remove(alertEntry.getKey()); in dismissHun() [all …]
|
D | CarNotificationListener.java | 158 AlertEntry alertEntry = mActiveNotifications.get(sbn.getKey()); in onNotificationRemoved() 161 mActiveNotifications.remove(alertEntry.getKey()); in onNotificationRemoved() 186 if (!mRankingMap.getRanking(alertEntry.getKey(), mTemporaryRanking)) { in updateOverrideGroupKey() 195 String newOverrideGroupKey = getOverrideGroupKey(alertEntry.getKey()); in updateOverrideGroupKey() 224 .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); in getNotifications() 235 Collectors.toMap(StatusBarNotification::getKey, sbn -> new AlertEntry(sbn))); in onListenerConnected() 289 mActiveNotifications.put(alertEntry.getKey(), alertEntry); in postNewNotification() 310 mRankingMap.getRanking(alertEntry.getKey(), ranking); in isNotificationHigherThanLowImportance()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | PreprocessingManagerTest.java | 199 when(mStatusBarNotification1.getKey()).thenReturn("KEY_LESS_IMPORTANT_BACKGROUND"); in setup() 200 when(mStatusBarNotification2.getKey()).thenReturn("KEY_LESS_IMPORTANT_FOREGROUND"); in setup() 201 when(mStatusBarNotification3.getKey()).thenReturn("KEY_MEDIA"); in setup() 202 when(mStatusBarNotification4.getKey()).thenReturn("KEY_NAVIGATION"); in setup() 203 when(mStatusBarNotification5.getKey()).thenReturn("KEY_IMPORTANT_BACKGROUND"); in setup() 204 when(mStatusBarNotification6.getKey()).thenReturn("KEY_IMPORTANT_FOREGROUND"); in setup() 205 when(mStatusBarNotification7.getKey()).thenReturn("KEY_IMPORTANT_FOREGROUND_2"); in setup() 206 when(mStatusBarNotification8.getKey()).thenReturn("KEY_IMPORTANT_FOREGROUND_3"); in setup() 207 when(mStatusBarNotification9.getKey()).thenReturn("KEY_IMPORTANT_FOREGROUND_4"); in setup() 208 when(mStatusBarNotification10.getKey()).thenReturn("KEY_IMPORTANT_FOREGROUND_5"); in setup() [all …]
|
D | CarHeadsUpNotificationManagerTest.java | 232 mAlertEntryNavigationHeadsUp.getKey())); in maybeShowHeadsUp_isNotImportant_returnsNull() 251 mAlertEntryNavigationHeadsUp.getKey())); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull() 315 mAlertEntryCarInformationHeadsUp.getKey())); in maybeShowHeadsUp_categoryCarInformation_returnsNull() 332 mAlertEntryMessageHeadsUp.getKey())); in maybeShowHeadsUp_categoryMessage_returnsNotNull() 347 mManager.getActiveHeadsUpNotifications().get(mAlertEntryCallHeadsUp.getKey())); in maybeShowHeadsUp_categoryCall_returnsNotNull() 363 mAlertEntryNavigationHeadsUp.getKey())); in maybeShowHeadsUp_categoryNavigation_returnsNotNull() 378 mManager.getActiveHeadsUpNotifications().get(mAlertEntryInboxHeadsUp.getKey())); in maybeShowHeadsUp_inboxHeadsUp_returnsNotNull() 394 mAlertEntryCarInformationHeadsUp.getKey())); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull() 410 mAlertEntryCarInformationHeadsUp.getKey())); in maybeShowHeadsUp_isSystemApp_returnsNotNull() 426 mManager.getActiveHeadsUpNotifications().get(mAlertEntryInboxHeadsUp.getKey())); in maybeShowHeadsUp_nonMutedNotification_headsUpShown() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | DataProcessorTest.java | 545 entryMap.put(entry.getKey(), entry); in getBatteryUsageMap_returnsExpectedResult() 546 entryMap.put(fakeEntry.getKey(), fakeEntry); in getBatteryUsageMap_returnsExpectedResult() 550 entryMap.put(fakeEntry.getKey(), fakeEntry); in getBatteryUsageMap_returnsExpectedResult() 558 entryMap.put(entry.getKey(), entry); in getBatteryUsageMap_returnsExpectedResult() 559 entryMap.put(fakeEntry.getKey(), fakeEntry); in getBatteryUsageMap_returnsExpectedResult() 567 entryMap.put(entry.getKey(), entry); in getBatteryUsageMap_returnsExpectedResult() 572 entryMap.put(entry.getKey(), entry); in getBatteryUsageMap_returnsExpectedResult() 577 entryMap.put(entry.getKey(), entry); in getBatteryUsageMap_returnsExpectedResult() 578 entryMap.put(fakeEntry.getKey(), fakeEntry); in getBatteryUsageMap_returnsExpectedResult() 586 entryMap.put(entry.getKey(), entry); in getBatteryUsageMap_returnsExpectedResult() [all …]
|
D | ConvertUtilsTest.java | 257 entryMap.put(entry.getKey(), entry); in getIndexedUsageMap_returnsExpectedResult() 258 entryMap.put(fakeEntry.getKey(), fakeEntry); in getIndexedUsageMap_returnsExpectedResult() 262 entryMap.put(fakeEntry.getKey(), fakeEntry); in getIndexedUsageMap_returnsExpectedResult() 268 entryMap.put(entry.getKey(), entry); in getIndexedUsageMap_returnsExpectedResult() 269 entryMap.put(fakeEntry.getKey(), fakeEntry); in getIndexedUsageMap_returnsExpectedResult() 275 entryMap.put(entry.getKey(), entry); in getIndexedUsageMap_returnsExpectedResult() 278 entryMap.put(entry.getKey(), entry); in getIndexedUsageMap_returnsExpectedResult() 279 entryMap.put(fakeEntry.getKey(), fakeEntry); in getIndexedUsageMap_returnsExpectedResult() 285 entryMap.put(entry.getKey(), entry); in getIndexedUsageMap_returnsExpectedResult() 288 entryMap.put(entry.getKey(), entry); in getIndexedUsageMap_returnsExpectedResult() [all …]
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VisualVoicemailPreferences.java | 59 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/Dialer/java/com/android/dialer/common/ |
D | PerAccountSharedPreferences.java | 65 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/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecManagerTest.java | 112 private static final byte[] AEAD_KEY = getKey(288); 666 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testIkeOverUdpEncapSocket() 742 "Fail to support " + entry.getKey(), in testGetSupportedAlgorithms() 743 supportedAlgos.contains(entry.getKey())); in testGetSupportedAlgorithms() 751 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testInterfaceCountersUdp4() 758 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testInterfaceCountersUdp6() 765 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testInterfaceCountersUdp4UdpEncap() 772 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Tcp4() 780 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Tcp6() 788 IpSecAlgorithm auth = new IpSecAlgorithm(IpSecAlgorithm.AUTH_HMAC_MD5, getKey(128), 96); in testAesCbcHmacMd5Udp4() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkListStoreDataTest.java | 623 openNetwork.getKey().replaceAll("\"", """), in getTestNetworksXmlBytes() 628 eapNetwork.getKey().replaceAll("\"", """), in getTestNetworksXmlBytes() 635 saeNetwork.getKey().replaceAll("\"", """), in getTestNetworksXmlBytes() 771 openNetwork.getKey().replaceAll("\"", """), in parseNetworkWithUnknownTag() 780 assertEquals(openNetwork.getKey(), deserializedConfig.getKey()); in parseNetworkWithUnknownTag() 839 openNetwork.getKey().replaceAll("\"", """), in parseNetworkWithInvalidCreatorUidResetsToSystem() 846 assertEquals(openNetwork.getKey(), deserializedNetworks.get(0).getKey()); in parseNetworkWithInvalidCreatorUidResetsToSystem() 867 openNetwork.getKey().replaceAll("\"", """), in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid() 874 assertEquals(openNetwork.getKey(), deserializedNetworks.get(0).getKey()); in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid() 894 openNetwork.getKey().replaceAll("\"", """), in parseNetworkWithNullCreatorNameResetsToPackageNameForCreatorUid() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/compat/ |
D | RenderUtil.java | 128 return Arrays.equals(preference.getKeys(), preferenceCompat.getKey()); in keyMatch() 160 String[] keys = preferenceCompat.getKey(); in updatePreference() 212 return new TsRestrictedSwitchPreference(preferenceCompat.getKey(), context); in createPreference() 214 return new TsRestrictedPreference(preferenceCompat.getKey(), context); in createPreference() 218 context, preferenceCompat.getKey(), preferenceCompat.getSliceUri()); in createPreference() 222 return new TsAccessPointPreference(context, preferenceCompat.getKey()); in createPreference() 224 return new TsPreferenceCategory(context, preferenceCompat.getKey()); in createPreference() 226 return new TsCollapsibleCategory(context, preferenceCompat.getKey()); in createPreference() 228 return new TsListPreference(context, preferenceCompat.getKey()); in createPreference() 230 return new TsRadioPreference(context, preferenceCompat.getKey()); in createPreference() [all …]
|
D | TsPreference.java | 32 mKeys = new String[]{getKey()}; in TsPreference() 37 mKeys = new String[]{getKey()}; in TsPreference() 42 mKeys = new String[]{getKey()}; in TsPreference() 47 mKeys = new String[]{getKey()}; in TsPreference()
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | ApnPreference.java | 71 boolean isChecked = getKey().equals(mSelectedKey); in getView() 74 mSelectedKey = getKey(); in getView() 95 return getKey().equals(mSelectedKey); in isChecked() 99 mSelectedKey = getKey(); in setChecked() 107 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged() 117 mSelectedKey = getKey(); in onCheckedChanged() 131 UIIntents.get().getApnEditorIntent(context, getKey(), mSubId)); in onClick()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | RegisteredAidCache.java | 196 boolean isPrefix = isPrefix(entry.getKey()); in resolveAid() 197 boolean isSubset = isSubset(entry.getKey()); in resolveAid() 198 String entryAid = (isPrefix || isSubset) ? entry.getKey().substring(0, in resolveAid() 199 entry.getKey().length() - 1):entry.getKey(); // Cut off '*' if prefix in resolveAid() 202 if (DBG) Log.d(TAG, "resolveAid: AID " + entry.getKey() + " matches."); in resolveAid() 461 if (currentUser != getProfileParentId(entry.getKey())) { in generateServiceMapLocked() 609 if (!entry.getKey().equalsIgnoreCase(prefixAid)) { in findConflictsForPrefixLocked() 611 Log.d(TAG, "AID " + entry.getKey() + " conflicts with prefix; " + in findConflictsForPrefixLocked() 614 prefixConflicts.aids.add(entry.getKey()); in findConflictsForPrefixLocked() 632 String aid = entry.getKey(); in findConflictsForSubsetAidLocked() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/apn/ |
D | ApnPreference.java | 87 final boolean isChecked = getKey().equals(sSelectedKey); in onBindViewHolder() 90 sSelectedKey = getKey(); in onBindViewHolder() 107 return getKey().equals(sSelectedKey); in isChecked() 114 sSelectedKey = getKey(); in setChecked() 121 Log.i(TAG, "ID: " + getKey() + " :" + isChecked); in onCheckedChanged() 131 sSelectedKey = getKey(); in onCheckedChanged() 143 final int pos = Integer.parseInt(getKey()); in onClick()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/display/ |
D | ColorModePreferenceFragmentTest.java | 83 assertThat(candidates.get(0).getKey()) in getCandidates_all() 85 assertThat(candidates.get(1).getKey()) in getCandidates_all() 87 assertThat(candidates.get(2).getKey()) in getCandidates_all() 89 assertThat(candidates.get(3).getKey()) in getCandidates_all() 123 assertThat(candidates.get(0).getKey()) in getCandidates_withAutomatic() 125 assertThat(candidates.get(1).getKey()) in getCandidates_withAutomatic() 145 assertThat(candidates.get(0).getKey()) in getCandidates_withoutAutomatic() 147 assertThat(candidates.get(1).getKey()) in getCandidates_withoutAutomatic() 149 assertThat(candidates.get(2).getKey()) in getCandidates_withoutAutomatic()
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | Assistant.java | 102 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey() + " on " + channel.getId()); in onNotificationEnqueued() 113 sbn.getKey(), in onNotificationEnqueued() 144 entry.getSbn().getKey(), in createEnqueuedNotificationAdjustment() 152 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); in onNotificationPosted() 158 rankingMap.getRanking(sbn.getKey(), ranking); in onNotificationPosted() 162 mLiveNotifications.put(sbn.getKey(), entry); in onNotificationPosted() 177 mLiveNotifications.remove(sbn.getKey()); in onNotificationRemoved() 180 Log.e(TAG, "Error occurred processing removal of " + sbn.getKey(), e); in onNotificationRemoved()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
D | SensorFragmentCompat.java | 61 if (prefCompat.getKey().length == 1 in updatePref() 62 && prefCompat.getKey()[0].equals(KEY_RECENT_REQUESTS) in updatePref() 65 ((PreferenceGroup) findPreference(prefCompat.getKey()[0])), in updatePref() 85 if (preference.getKey() != null && preference.getKey().equals(KEY_COLLAPSE)) { in onPreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/wifi/savedaccesspoints2/ |
D | SavedAccessPointsPreferenceController2.java | 82 mHost.showWifiPage(preference.getKey(), preference.getTitle()); in onPreferenceClick() 96 final String key = mPreferenceGroup.getPreference(i).getKey(); in updatePreference() 98 TextUtils.equals(key, wifiEntry.getKey())).count() == 0) { in updatePreference() 109 if (mPreferenceGroup.findPreference(wifiEntry.getKey()) == null) { in updatePreference() 111 preference.setKey(wifiEntry.getKey()); in updatePreference()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | UserDeniedManager.java | 124 .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/Camera2/src/com/android/camera/settings/ |
D | CameraSettingsActivity.java | 231 intent.putExtra(PREF_SCREEN_EXTRA, preferenceScreen.getKey()); in setPreferenceScreenIntent() 259 if (key.equals(parent.getKey())) { in findByKey() 374 if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_BACK)) { in setEntries() 376 } else if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_FRONT)) { in setEntries() 378 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_BACK)) { in setEntries() 380 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_FRONT)) { in setEntries() 395 if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_BACK)) { in setSummary() 398 } else if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_FRONT)) { in setSummary() 401 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_BACK)) { in setSummary() 403 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_FRONT)) { in setSummary()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryDiffEntry.java | 203 final Boolean validForRestriction = sValidForRestriction.get(getKey()); in loadLabelAndIcon() 215 sValidForRestriction.put(getKey(), Boolean.valueOf(mValidForRestriction)); in loadLabelAndIcon() 227 getKey(), in loadLabelAndIcon() 242 getKey(), in loadLabelAndIcon() 256 getKey(), in loadLabelAndIcon() 264 String getKey() { in getKey() method in BatteryDiffEntry 265 return mBatteryHistEntry.getKey(); in getKey() 305 return sResourceCache.get(getKey()); in getCache()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | AccessPoint.java | 374 mPasspointUniqueId = config.getKey(); in AccessPoint() 409 mKey = getKey(mConfig); in updateKey() 411 mKey = getKey(mPasspointUniqueId); in updateKey() 413 mKey = getKey(mOsuProvider); in updateKey() 415 mKey = getKey(getSsidStr(), getBssid(), getSecurity()); in updateKey() 670 public static String getKey(Context context, ScanResult result) { in getKey() method in AccessPoint 671 return getKey(result.SSID, result.BSSID, getSecurity(context, result)); in getKey() 678 public static String getKey(WifiConfiguration config) { in getKey() method in AccessPoint 680 return getKey(config.getKey()); in getKey() 682 return getKey(removeDoubleQuotes(config.SSID), config.BSSID, getSecurity(config)); in getKey() [all …]
|