Home
last modified time | relevance | path

Searched refs:mGroup (Results 1 – 20 of 20) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAppPermissionFragment.java92 private @NonNull AppPermissionGroup mGroup; field in AppPermissionFragment
151 if (mGroup != null) { in onCreate()
154 mGroup.getFullLabel())); in onCreate()
177 mGroup = AppPermissionGroup.create(context, in createAppPermissionGroup()
181 if (mGroup == null || !Utils.shouldShowPermission(context, mGroup)) { in createAppPermissionGroup()
182 Log.i(LOG_TAG, "Illegal group: " + (mGroup == null ? "null" : mGroup.getName())); in createAppPermissionGroup()
195 if (mGroup == null) { in onCreateView()
199 String appLabel = Utils.getFullAppLabel(mGroup.getApp().applicationInfo, context); in onCreateView()
204 context.getString(R.string.app_permission_header, mGroup.getFullLabel())); in onCreateView()
213 UserHandle user = UserHandle.getUserHandleForUid(mGroup.getApp().applicationInfo.uid); in onCreateView()
[all …]
DPermissionPreference.java63 private final AppPermissionGroup mGroup; field in PermissionPreference
128 mGroup = group; in PermissionPreference()
143 return mGroup.isSystemFixed(); in isSystemFixed()
153 return mGroup.isPolicyFixed(); in isForegroundPolicyFixed()
163 return mGroup.getBackgroundPermissions() != null in isBackgroundPolicyFixed()
164 && mGroup.getBackgroundPermissions().isPolicyFixed(); in isBackgroundPolicyFixed()
173 return isForegroundPolicyFixed() && (mGroup.getBackgroundPermissions() == null in isPolicyFullyFixed()
184 return isForegroundPolicyFixed() && !mGroup.areRuntimePermissionsGranted(); in isForegroundDisabledByPolicy()
193 return RestrictedLockUtils.getProfileOrDeviceOwner(getContext(), mGroup.getUser()); in getAdmin()
201 Utils.areGroupPermissionsIndividuallyControlled(getContext(), mGroup.getName()); in updateUi()
[all …]
DReviewPermissionsFragment.java466 private final AppPermissionGroup mGroup; field in ReviewPermissionsFragment.PermissionReviewPreference
473 mGroup = group; in PermissionReviewPreference()
478 return mGroup; in getGroup()
499 if (mGroup == null) { in updateUi()
506 if (mGroup.isReviewRequired() && !mWasChanged) { in updateUi()
507 setSummary(mGroup.getDescription()); in updateUi()
512 setSummary(mGroup.getDescription()); in updateUi()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoAppPermissionFragment.java74 private AppPermissionGroup mGroup; field in AutoAppPermissionFragment
131 mGroup = getAppPermissionGroup(); in onCreate()
132 if (mGroup == null) { in onCreate()
139 getContext().getString(R.string.app_permission_title, mGroup.getFullLabel())); in onCreate()
187 mGroup.getApp().applicationInfo)); in onViewCreated()
192 getContext().getString(R.string.app_permission_header, mGroup.getFullLabel())); in onViewCreated()
218 mGroup.getApp().applicationInfo.uid); in onStart()
223 String packageName = mGroup.getApp().packageName; in onStart()
237 mGroup.getUser()).getPackageManager().getPackageInfo(packageName, in onStart()
246 mGroup = getAppPermissionGroup(); in onStart()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
DPreferenceListCacheTest.java41 @Mock private PreferenceScreen mGroup; field in PreferenceListCacheTest
55 mCache = new PreferenceListCache(mGroup); in testEmptyPreferenceGroup()
58 verify(mGroup, never()).removePreference(any(Preference.class)); in testEmptyPreferenceGroup()
69 mCache = new PreferenceListCache(mGroup); in testCacheAndRestoreAllPreferences()
75 verify(mGroup, never()).removePreference(any(Preference.class)); in testCacheAndRestoreAllPreferences()
86 mCache = new PreferenceListCache(mGroup); in testRestoreSomePreferences()
93 verify(mGroup).removePreference(eq(third)); in testRestoreSomePreferences()
104 mCache = new PreferenceListCache(mGroup); in testRestoreZeroPreferences()
109 verify(mGroup).removePreference(eq(first)); in testRestoreZeroPreferences()
110 verify(mGroup).removePreference(eq(second)); in testRestoreZeroPreferences()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceControllerTest.java66 private PreferenceGroup mGroup; field in SuggestionsPreferenceControllerTest
75 mGroup = new PreferenceCategory(mContext); in setUp()
83 mControllerHelper.setPreference(mGroup); in setUp()
110 assertThat(mGroup.isVisible()).isFalse(); in onStart_noSuggestions_hidesGroup()
164 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in onLoadFinished_groupContainsSuggestionPreference()
165 Preference addedPref = mGroup.getPreference(0); in onLoadFinished_groupContainsSuggestionPreference()
172 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in onLoadFinished_newSuggestion_addsToGroup()
176 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in onLoadFinished_newSuggestion_addsToGroup()
182 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in onLoadFinished_removedSuggestion_removesFromGroup()
186 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in onLoadFinished_removedSuggestion_removesFromGroup()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DGrantPermissionsActivity.java357 AppPermissionGroup group = groupState.mGroup; in onCreate()
575 GroupState foregroundGroup = getForegroundGroupState(groupState.mGroup.getName()); in shouldShowRequestForGroupState()
576 if (groupState.mGroup.isBackgroundGroup() in shouldShowRequestForGroupState()
604 if (groupState.mGroup.isBackgroundGroup()) { in showNextPermissionGroupGrantRequest()
606 foregroundGroupState = getForegroundGroupState(groupState.mGroup.getName()); in showNextPermissionGroupGrantRequest()
609 backgroundGroupState = getBackgroundGroupState(groupState.mGroup.getName()); in showNextPermissionGroupGrantRequest()
616 icon = Icon.createWithResource(groupState.mGroup.getIconPkg(), in showNextPermissionGroupGrantRequest()
617 groupState.mGroup.getIconResId()); in showNextPermissionGroupGrantRequest()
619 Log.e(LOG_TAG, "Cannot load icon for group" + groupState.mGroup.getName(), e); in showNextPermissionGroupGrantRequest()
628 if (!backgroundGroupState.mGroup.areRuntimePermissionsGranted()) { in showNextPermissionGroupGrantRequest()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionPreferenceGroupTest.java49 private DownloadsDeletionPreferenceGroup mGroup; field in DownloadsDeletionPreferenceGroupTest
57 mGroup = spy(new DownloadsDeletionPreferenceGroup(RuntimeEnvironment.application)); in setUp()
59 when(mGroup.getPreferenceManager()).thenReturn(preferenceManager); in setUp()
64 mGroup.registerDeletionService(mType); in setUp()
65 mGroup.injectIconProvider(mIconProvider); in setUp()
79 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in thumbnailsArePopulated()
80 assertThat(mGroup.getPreference(0).getIcon() instanceof BitmapDrawable).isTrue(); in thumbnailsArePopulated()
81 assertThat(mGroup.getPreference(1).getIcon() instanceof BitmapDrawable).isFalse(); in thumbnailsArePopulated()
DAppDeletionPreferenceGroupTest.java45 private AppDeletionPreferenceGroup mGroup; field in AppDeletionPreferenceGroupTest
52 mGroup = new AppDeletionPreferenceGroup(RuntimeEnvironment.application); in setUp()
53 mGroup.setDeletionType(mBackend); in setUp()
54 mGroup.mScreen = mScreen; in setUp()
61 mGroup.onAppRebuild(mApps); in addsPreferenceToScreen_onNoThreshold()
71 mGroup.onAppRebuild(mApps); in addsPreferenceToScreenWithHighOrder_onNoThreshold()
DAppDeletionTypeTest.java42 @Mock private AppDeletionPreferenceGroup mGroup; field in AppDeletionTypeTest
49 mDeletion.registerView(mGroup); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/
DLocationFooterPreferenceControllerTest.java64 private PreferenceGroup mGroup; field in LocationFooterPreferenceControllerTest
71 mGroup = new LogicalPreferenceGroup(context); in setUp()
73 LocationFooterPreferenceController.class, mGroup); in setUp()
92 assertThat(mGroup.isVisible()).isTrue(); in footer_isVisibleWhenThereAreValidInjections()
101 assertThat(mGroup.isVisible()).isFalse(); in footer_isHiddenWhenThereAreNoValidInjections_notSystemApp()
110 assertThat(mGroup.isVisible()).isFalse(); in footer_isHiddenWhenThereAreNoValidInjections_noMetaData()
123 assertThat(mGroup.getPreferenceCount()).isEqualTo(numFooters); in onCreate_addsInjectedFooterToGroup()
132 assertThat(mGroup.getPreference(0).getSummary()).isEqualTo(TEST_TEXT); in onCreate_injectedFooterHasCorrectText()
141 assertThat(mGroup.getPreference(0).isSelectable()).isFalse(); in onCreate_injectedFooterIsNotSelectable()
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagsPreferenceController.java35 private PreferenceGroup mGroup; field in FeatureFlagsPreferenceController
49 mGroup = screen.findPreference(getPreferenceKey()); in displayPreference()
54 if (mGroup == null) { in onStart()
61 mGroup.removeAll(); in onStart()
62 final Context prefContext = mGroup.getContext(); in onStart()
64 mGroup.addPreference(new FeatureFlagPreference(prefContext, feature))); in onStart()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/featureflags/
DFeatureFlagsPreferenceController.java35 private PreferenceGroup mGroup; field in FeatureFlagsPreferenceController
49 mGroup = screen.findPreference(getPreferenceKey()); in displayPreference()
54 if (mGroup == null) { in onStart()
61 mGroup.removeAll(); in onStart()
62 final Context prefContext = mGroup.getContext(); in onStart()
64 mGroup.addPreference(new FeatureFlagPreference(prefContext, feature))); in onStart()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPersistentGroup.java26 public WifiP2pGroup mGroup; field in WifiP2pPersistentGroup
30 mGroup = group; in WifiP2pPersistentGroup()
31 setTitle(mGroup.getNetworkName()); in WifiP2pPersistentGroup()
35 return mGroup.getNetworkId(); in getNetworkId()
39 return mGroup.getNetworkName(); in getGroupName()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pPersistentGroup.java26 public WifiP2pGroup mGroup; field in WifiP2pPersistentGroup
30 mGroup = group; in WifiP2pPersistentGroup()
31 setTitle(mGroup.getNetworkName()); in WifiP2pPersistentGroup()
35 return mGroup.getNetworkId(); in getNetworkId()
39 return mGroup.getNetworkName(); in getGroupName()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/
DGameDriverAppPreferenceControllerTest.java76 private PreferenceGroup mGroup; field in GameDriverAppPreferenceControllerTest
128 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
129 assertThat(mGroup.getPreference(0).getKey()).isEqualTo(APP_1); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
130 assertThat(mGroup.getPreference(1).getKey()).isEqualTo(APP_3); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
158 assertThat(mGroup.isVisible()).isTrue(); in updateState_available_visible()
166 assertThat(mGroup.isVisible()).isFalse(); in updateState_gameDriverOff_notVisible()
303 mGroup = spy(new PreferenceCategory(mContext)); in loadConfig()
305 when(mGroup.getContext()).thenReturn(mContext); in loadConfig()
306 when(mGroup.getPreferenceManager()).thenReturn(preferenceManager); in loadConfig()
307 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mGroup); in loadConfig()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DSecondaryUserControllerTest.java64 private PreferenceGroup mGroup; field in SecondaryUserControllerTest
79 when(mScreen.findPreference(anyString())).thenReturn(mGroup); in setUp()
80 when(mGroup.getKey()).thenReturn(TARGET_PREFERENCE_GROUP_KEY); in setUp()
89 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerAddsSecondaryUser()
101 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesSummaryOfNewPreference()
174 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesPreferenceOnAcceptingResult()
212 verify(mGroup).addPreference(argumentCaptor.capture()); in iconCallbackChangesPreferenceIcon()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissionUsage.java94 private final @NonNull AppPermissionGroup mGroup; field in AppPermissionUsage.GroupUsage
100 mGroup = group; in GroupUsage()
169 final ArrayList<Permission> permissions = mGroup.getPermissions(); in isRunning()
188 final ArrayList<Permission> permissions = mGroup.getPermissions(); in extractAggregate()
203 final ArrayList<Permission> permissions = mGroup.getPermissions(); in lastAccessAggregate()
221 return mGroup; in getGroup()
/packages/apps/StorageManager/src/com/android/storagemanager/utils/
DPreferenceListCache.java29 private PreferenceGroup mGroup; field in PreferenceListCache
37 mGroup = group; in PreferenceListCache()
65 mGroup.removePreference(p); in removeCachedPrefs()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/
DSetupWizardActivity.java496 private final ArrayList<SetupStep> mGroup = new ArrayList<>();
503 mGroup.add(step);
507 for (final SetupStep step : mGroup) {
510 mIndicatorView.setIndicatorPosition(enableStepNo - STEP_1, mGroup.size());