/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/ |
D | P2pCategoryPreferenceController.java | 31 protected PreferenceGroup mCategory; field in P2pCategoryPreferenceController 45 mCategory = screen.findPreference(getPreferenceKey()); in displayPreference() 49 if (mCategory != null) { in removeAllChildren() 50 mCategory.removeAll(); in removeAllChildren() 51 mCategory.setVisible(false); in removeAllChildren() 56 if (mCategory != null) { in addChild() 57 mCategory.addPreference(child); in addChild() 58 mCategory.setVisible(true); in addChild() 63 if (mCategory != null) { in setEnabled() 64 mCategory.setEnabled(enabled); in setEnabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | P2pCategoryPreferenceController.java | 31 protected PreferenceGroup mCategory; field in P2pCategoryPreferenceController 45 mCategory = screen.findPreference(getPreferenceKey()); in displayPreference() 49 if (mCategory != null) { in removeAllChildren() 50 mCategory.removeAll(); in removeAllChildren() 51 mCategory.setVisible(false); in removeAllChildren() 56 if (mCategory != null) { in addChild() 57 mCategory.addPreference(child); in addChild() 58 mCategory.setVisible(true); in addChild() 63 if (mCategory != null) { in setEnabled() 64 mCategory.setEnabled(enabled); in setEnabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | P2pCategoryPreferenceControllerTest.java | 45 private PreferenceCategory mCategory; field in P2pCategoryPreferenceControllerTest 51 when(mPreferenceScreen.findPreference(anyString())).thenReturn(mCategory); in setUp() 71 verify(mCategory).removeAll(); in removeAllChildren_shouldRemove() 72 verify(mCategory).setVisible(false); in removeAllChildren_shouldRemove() 80 verify(mCategory).addPreference(pref); in addChild_shouldAdd() 81 verify(mCategory, atLeastOnce()).setVisible(true); in addChild_shouldAdd() 82 verify(mCategory, never()).setVisible(false); in addChild_shouldAdd() 89 verify(mCategory).setEnabled(false); in shouldToggleEnable() 93 verify(mCategory).setEnabled(true); in shouldToggleEnable()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceController.java | 73 private PreferenceCategory mCategory; field in RecentAppsPreferenceController 113 mCategory = (PreferenceCategory) screen.findPreference(getPreferenceKey()); in displayPreference() 114 refreshUi(mCategory.getContext()); in displayPreference() 129 mCategory.setVisible(false); in displayOnlyAllApps() 130 int prefCount = mCategory.getPreferenceCount(); in displayOnlyAllApps() 132 final Preference pref = mCategory.getPreference(i); in displayOnlyAllApps() 134 mCategory.removePreference(pref); in displayOnlyAllApps() 140 mCategory.setVisible(true); in displayRecentApps() 145 int prefCount = mCategory.getPreferenceCount(); in displayRecentApps() 147 final Preference pref = mCategory.getPreference(i); in displayRecentApps() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RecentNotifyingAppsPreferenceController.java | 88 private PreferenceCategory mCategory; field in RecentNotifyingAppsPreferenceController 139 mCategory = screen.findPreference(getPreferenceKey()); in displayPreference() 143 refreshUi(mCategory.getContext()); in displayPreference() 149 refreshUi(mCategory.getContext()); in updateState() 211 mCategory.setTitle(null); in displayOnlyAllAppsLink() 215 int prefCount = mCategory.getPreferenceCount(); in displayOnlyAllAppsLink() 217 final Preference pref = mCategory.getPreference(i); in displayOnlyAllAppsLink() 219 mCategory.removePreference(pref); in displayOnlyAllAppsLink() 225 mCategory.setTitle(R.string.recent_notifications); in displayRecentApps() 233 int prefCount = mCategory.getPreferenceCount(); in displayRecentApps() [all …]
|
D | ZenRuleCustomSwitchPreferenceController.java | 34 private @ZenPolicy.PriorityCategory int mCategory; field in ZenRuleCustomSwitchPreferenceController 40 mCategory = category; in ZenRuleCustomSwitchPreferenceController() 52 pref.setChecked(mRule.getZenPolicy().isCategoryAllowed(mCategory, false)); in updateState() 59 Log.d(TAG, KEY + " onPrefChange mRule=" + mRule + " mCategory=" + mCategory in onPreferenceChange() 66 .allowCategory(mCategory, allow) in onPreferenceChange()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/ |
D | SuggestionCategory.java | 26 private final String mCategory; field in SuggestionCategory 31 this.mCategory = builder.mCategory; in SuggestionCategory() 37 return mCategory; in getCategory() 49 private String mCategory; field in SuggestionCategory.Builder 54 mCategory = category; in setCategory()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | DisabledSubscriptionControllerTest.java | 52 private PreferenceCategory mCategory; field in DisabledSubscriptionControllerTest 64 mCategory = new PreferenceCategory(mContext); in setUp() 65 doReturn(mCategory).when(mScreen).findPreference(KEY); in setUp() 74 assertThat(mCategory.isVisible()).isTrue(); in displayPreference_subscriptionEnabled_categoryIsVisible() 81 assertThat(mCategory.isVisible()).isFalse(); in displayPreference_subscriptionDisabled_categoryIsNotVisible() 90 assertThat(mCategory.isVisible()).isFalse(); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible() 99 assertThat(mCategory.isVisible()).isTrue(); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentListPreferenceControllerTest.java | 70 private PreferenceCategory mCategory; field in TrustAgentListPreferenceControllerTest 92 when(mCategory.getKey()).thenReturn(PREF_KEY_SECURITY_CATEGORY); in setUp() 93 when(mCategory.getContext()).thenReturn(mActivity); in setUp() 94 when(mScreen.findPreference(PREF_KEY_SECURITY_CATEGORY)).thenReturn(mCategory); in setUp() 115 when(mCategory.findPreference(PREF_KEY_TRUST_AGENT)) in onResume_shouldClearOldAgents() 122 verify(mCategory).removePreference(oldAgent); in onResume_shouldClearOldAgents() 141 verify(mCategory, atLeastOnce()).addPreference(any(Preference.class)); in onResume_shouldAddNewAgents() 161 verify(mCategory, never()).addPreference(any(Preference.class)); in onResume_ifNotAvailable_shouldNotAddNewAgents()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | CategoryAdapter.java | 38 int mCategory; field in CategoryAdapter 76 mCategory = category; in initializeSelection() 180 if (!(mCategory == MainPanel.VERSIONS in remove() 181 || mCategory == MainPanel.LOOKS)) { in remove() 186 if (mCategory == MainPanel.LOOKS) { in remove() 188 } else if (mCategory == MainPanel.VERSIONS) { in remove() 203 if (mCategory == MainPanel.LOOKS) { in reflectImagePreset() 208 } else if (mCategory == MainPanel.BORDERS) { in reflectImagePreset()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceControllerTest.java | 78 private PreferenceCategory mCategory; field in RecentAppsPreferenceControllerTest 106 when(mScreen.findPreference(anyString())).thenReturn(mCategory); in setUp() 110 when(mCategory.getContext()).thenReturn(mContext); in setUp() 125 mController.updateState(mCategory); in onDisplayAndUpdateState_shouldRefreshUi() 135 verify(mCategory, never()).addPreference(any(Preference.class)); in display_shouldNotShowRecents_showAllAppsPreference() 173 verify(mCategory, times(1)).addPreference(any(Preference.class)); in display_showRecents() 213 verify(mCategory, times(2)).addPreference(prefCaptor.capture()); in display_showRecentsWithInstantApp() 271 verify(mCategory, never()).addPreference(any(Preference.class)); in display_hasRecentButNoneDisplayable_showAllApps() 292 verify(mCategory).addPreference(argThat(summaryMatches("0 minutes ago"))); in display_showRecents_formatSummary()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/ |
D | LocationServicesPreferenceControllerTest.java | 63 private PreferenceGroup mCategory; field in LocationServicesPreferenceControllerTest 69 mCategory = new PreferenceCategory(mContext); in setUp() 71 LocationServicesPreferenceController.class, mCategory); in setUp() 83 assertThat(mCategory.getPreferenceCount()).isEqualTo(samplePrefs.get(PROFILE_ID).size()); in onCreate_addsInjectedSettingsToPreferenceCategory() 112 assertThat(mCategory.isVisible()).isTrue(); in preferenceCategory_isVisibleIfThereAreInjectedSettings() 120 assertThat(mCategory.isVisible()).isFalse(); in preferenceCategory_isHiddenIfThereAreNoInjectedSettings()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCard.java | 58 private final int mCategory; field in ContextualCard 98 return mCategory; in getCategory() 179 mCategory = builder.mCategory; in ContextualCard() 208 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 209 mBuilder.setCategory(mCategory); in ContextualCard() 280 private int mCategory; field in ContextualCard.Builder 320 mCategory = category; in setCategory()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | ContextualCard.java | 58 private final int mCategory; field in ContextualCard 97 return mCategory; in getCategory() 174 mCategory = builder.mCategory; in ContextualCard() 202 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 203 mBuilder.setCategory(mCategory); in ContextualCard() 272 private int mCategory; field in ContextualCard.Builder 311 mCategory = category; in setCategory()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RecentNotifyingAppsPreferenceControllerTest.java | 82 private PreferenceCategory mCategory; field in RecentNotifyingAppsPreferenceControllerTest 119 when(mScreen.findPreference(anyString())).thenReturn(mCategory); in setUp() 125 when(mCategory.getContext()).thenReturn(mContext); in setUp() 152 mController.updateState(mCategory); in onDisplayAndUpdateState_shouldRefreshUi() 162 verify(mCategory, never()).addPreference(any(Preference.class)); in display_shouldNotShowRecents_showAppInfoPreference() 163 verify(mCategory).setTitle(null); in display_shouldNotShowRecents_showAppInfoPreference() 208 verify(mCategory).setTitle(R.string.recent_notifications); in display_showRecents() 210 verify(mCategory, times(2)).addPreference(any(Preference.class)); in display_showRecents() 262 verify(mCategory, times(2)).addPreference(prefCaptor.capture()); in display_showRecentsWithInstantApp() 293 verify(mCategory).addPreference(argThat(summaryMatches("Just now"))); in display_showRecents_formatSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenRuleCustomSwitchPreferenceController.java | 34 private @ZenPolicy.PriorityCategory int mCategory; field in ZenRuleCustomSwitchPreferenceController 40 mCategory = category; in ZenRuleCustomSwitchPreferenceController() 52 pref.setChecked(mRule.getZenPolicy().isCategoryAllowed(mCategory, false)); in updateState() 59 Log.d(TAG, KEY + " onPrefChange mRule=" + mRule + " mCategory=" + mCategory in onPreferenceChange() 66 .allowCategory(mCategory, allow) in onPreferenceChange()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/featureflags/ |
D | FeatureFlagPreferenceControllerTest.java | 51 private PreferenceCategory mCategory; field in FeatureFlagPreferenceControllerTest 60 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mCategory); in setUp() 61 when(mCategory.getContext()).thenReturn(mContext); in setUp() 82 verify(mCategory).removeAll(); in onStart_shouldRefreshFeatureFlags() 83 verify(mCategory, atLeastOnce()).addPreference(any(FeatureFlagPreference.class)); in onStart_shouldRefreshFeatureFlags()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/ |
D | IndividualPickerActivity.java | 73 private Category mCategory; field in IndividualPickerActivity 96 mCategory = injector.getCategoryProvider(this).getCategory(mCategoryCollectionId); in onCreate() 97 if (mCategory == null) { in onCreate() 106 setTitle(mCategory.getTitle()); in onCreate() 107 getSupportActionBar().setTitle(mCategory.getTitle()); in onCreate() 179 … && mCategory.getWallpaperRotationInitializer().startRotation(getApplicationContext())) { in onActivityResult()
|
D | IndividualPickerFragment.java | 119 WallpaperCategory mCategory; field in IndividualPickerFragment 261 mCategory = (WallpaperCategory) injector.getCategoryProvider(appContext).getCategory( in onCreate() 263 if (mCategory == null) { in onCreate() 273 mWallpaperRotationInitializer = mCategory.getWallpaperRotationInitializer(); in onCreate() 283 if (mCategory.supportsThirdParty()) { in onCreate() 286 mCategory.containsThirdParty(packageName)) { in onCreate() 297 mCategory.fetchWallpapers(getActivity().getApplicationContext(), new WallpaperReceiver() { in fetchWallpapers() 538 Log.e(TAG, "Rotation is not enabled for this category " + mCategory.getTitle()); in startRotation() 811 if (mCategory.supportsCustomPhotos() in getItemViewType() 841 return (isRotationEnabled() || mCategory.supportsCustomPhotos()) in getItemCount() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DisabledSubscriptionController.java | 36 private PreferenceCategory mCategory; field in DisabledSubscriptionController 67 mCategory = screen.findPreference(getPreferenceKey()); in displayPreference() 72 if (mCategory == null || mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in update() 76 mCategory.setVisible(mSubscriptionManager.isActiveSubId(mSubId)); in update()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/ |
D | TimeLogger.java | 43 private final int mCategory; field in TimeLogger 77 mCategory = checkNotNull(category); in TimeLogger() 100 mMetricsLoggerWrapper.logAction(mContext, mCategory, time); in stop() 102 AnalyticsUtils.getDevicePolicyEventForCategory(mCategory); in stop()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceController.java | 60 private final String mCategory; field in OverlayCategoryPreferenceController 71 mCategory = category; in OverlayCategoryPreferenceController() 87 return mCategory; in getPreferenceKey() 187 if (mCategory.equals(overlayInfo.category)) { in getOverlayInfos()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | OverlayCategoryPreferenceController.java | 60 private final String mCategory; field in OverlayCategoryPreferenceController 71 mCategory = category; in OverlayCategoryPreferenceController() 87 return mCategory; in getPreferenceKey() 187 if (mCategory.equals(overlayInfo.category)) { in getOverlayInfos()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | AppChooserActivity.java | 65 private String mCategory; field in AppChooserActivity 94 mCategory = category; in onCreate() 95 boolean isPayment = CardEmulation.CATEGORY_PAYMENT.equals(mCategory); in onCreate() 171 dialogIntent.putExtra(TapAgainDialog.EXTRA_CATEGORY, mCategory); in onItemClick() 202 mIsPayment = CardEmulation.CATEGORY_PAYMENT.equals(mCategory); in ListAdapter()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/ |
D | SetupActionHelper.java | 67 private final String mCategory; field in SetupActionHelper.OnActionClickListenerForAction 74 mCategory = category; in OnActionClickListenerForAction() 81 SetupActionHelper.onActionClick(mFragment, mCategory, mActionId, mParams); in onClick()
|