/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoAppPermissionFragment.java | 80 private AppPermissionGroup mGroup; field in AutoAppPermissionFragment 137 mGroup = getAppPermissionGroup(); in onCreate() 138 if (mGroup == null) { in onCreate() 145 requireContext().getString(R.string.app_permission_title, mGroup.getFullLabel())); in onCreate() 205 mGroup.getApp().applicationInfo)); in onViewCreated() 210 getString(R.string.app_permission_header, mGroup.getFullLabel())); in onViewCreated() 236 mGroup.getApp().applicationInfo.uid); in onStart() 241 String packageName = mGroup.getApp().packageName; in onStart() 255 mGroup.getUser()).getPackageManager().getPackageInfo(packageName, in onStart() 264 mGroup = getAppPermissionGroup(); in onStart() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/ |
D | AudioGroupTest.java | 45 private AudioGroup mGroup; field in AudioGroupTest 69 mGroup = Build.VERSION.SDK_INT > Build.VERSION_CODES.Q || BuildCompat.isAtLeastR() in setUp() 76 mGroup.clear(); in tearDown() 106 mStreamA.join(mGroup); in testTraffic() 109 mStreamB.join(mGroup); in testTraffic() 118 mStreamA.join(mGroup); in testTraffic() 123 mGroup.setMode(AudioGroup.MODE_NORMAL); in testSetMode() 124 assertEquals(mGroup.getMode(), AudioGroup.MODE_NORMAL); in testSetMode() 126 mGroup.setMode(AudioGroup.MODE_MUTED); in testSetMode() 127 assertEquals(mGroup.getMode(), AudioGroup.MODE_MUTED); in testSetMode() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | PermissionPreference.java | 61 private final AppPermissionGroup mGroup; field in PermissionPreference 125 mGroup = group; in PermissionPreference() 139 return mGroup.isSystemFixed(); in isSystemFixed() 149 return mGroup.isPolicyFixed(); in isForegroundPolicyFixed() 159 return mGroup.getBackgroundPermissions() != null in isBackgroundPolicyFixed() 160 && mGroup.getBackgroundPermissions().isPolicyFixed(); in isBackgroundPolicyFixed() 169 return isForegroundPolicyFixed() && (mGroup.getBackgroundPermissions() == null in isPolicyFullyFixed() 180 return isForegroundPolicyFixed() && !mGroup.areRuntimePermissionsGranted(); in isForegroundDisabledByPolicy() 189 return RestrictedLockUtils.getProfileOrDeviceOwner(getContext(), mGroup.getUser()); in getAdmin() 197 Utils.areGroupPermissionsIndividuallyControlled(getContext(), mGroup.getName()); in updateUi() [all …]
|
D | ReviewPermissionsFragment.java | 469 private final AppPermissionGroup mGroup; field in ReviewPermissionsFragment.PermissionReviewPreference 476 mGroup = group; in PermissionReviewPreference() 481 return mGroup; in getGroup() 502 if (mGroup == null) { in updateUi() 509 if (mGroup.isReviewRequired() && !mWasChanged) { in updateUi() 510 setSummary(mGroup.getDescription()); in updateUi() 515 setSummary(mGroup.getDescription()); in updateUi()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/ |
D | PreferenceListCacheTest.java | 41 @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/ |
D | SuggestionsPreferenceControllerTest.java | 66 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/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | DownloadsDeletionPreferenceGroupTest.java | 49 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()
|
D | AppDeletionPreferenceGroupTest.java | 45 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()
|
D | AppDeletionTypeTest.java | 42 @Mock private AppDeletionPreferenceGroup mGroup; field in AppDeletionTypeTest 49 mDeletion.registerView(mGroup); in setUp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 862 private WifiP2pGroup mGroup; field in WifiP2pServiceImpl.P2pStateMachine 942 if (mGroup == null) return; in P2pStateMachine() 943 if (!mGroup.isGroupOwner()) return; in P2pStateMachine() 944 if (TextUtils.isEmpty(mGroup.getInterface())) return; in P2pStateMachine() 949 if (interfaces.contains(mGroup.getInterface())) { in P2pStateMachine() 1209 maybeEraseOwnDeviceAddress(mGroup, message.sendingUid)); in processMessage() 1294 mGroup = (WifiP2pGroup) message.obj; in processMessage() 1295 loge("Unexpected group creation, remove " + mGroup); in processMessage() 1296 mWifiNative.p2pGroupRemove(mGroup.getInterface()); in processMessage() 2222 mGroup = (WifiP2pGroup) message.obj; in processMessage() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPersistentGroup.java | 26 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/src/com/android/settings/development/featureflags/ |
D | FeatureFlagsPreferenceController.java | 35 private PreferenceGroup mGroup; field in FeatureFlagsPreferenceController 49 mGroup = screen.findPreference(getPreferenceKey()); in displayPreference() 54 mGroup.removeAll(); in displayPreference() 55 final Context prefContext = mGroup.getContext(); in displayPreference() 57 mGroup.addPreference(new FeatureFlagPreference(prefContext, feature))); in displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverAppPreferenceControllerTest.java | 78 private PreferenceGroup mGroup; field in GraphicsDriverAppPreferenceControllerTest 134 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 135 assertThat(mGroup.getPreference(0).getKey()).isEqualTo(APP_1); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 136 assertThat(mGroup.getPreference(1).getKey()).isEqualTo(APP_3); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 164 assertThat(mGroup.isVisible()).isTrue(); in updateState_available_visible() 173 assertThat(mGroup.isVisible()).isFalse(); in updateState_graphicsDriverOff_notVisible() 343 mGroup = spy(new PreferenceCategory(mContext)); in loadConfig() 345 when(mGroup.getContext()).thenReturn(mContext); in loadConfig() 346 when(mGroup.getPreferenceManager()).thenReturn(preferenceManager); in loadConfig() 347 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mGroup); in loadConfig()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | AppPermissionUsage.java | 141 private final @NonNull AppPermissionGroup mGroup; field in AppPermissionUsage.GroupUsage 147 mGroup = group; in GroupUsage() 236 Set<String> allOps = getAllOps(mGroup); in hasDiscreteData() 253 Set<String> allOps = getAllOps(mGroup); in getAllDiscreteAccessTime() 278 Set<String> allOps = getAllOps(mGroup); in isRunning() 294 Set<String> allOps = getAllOps(mGroup); in extractAggregate() 308 Set<String> allOps = getAllOps(mGroup); in lastAccessAggregate() 347 return mGroup; in getGroup() 385 Set<String> allOps = getAllOps(mGroup); in getAttributionLabelledGroupUsages()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | SecondaryUserControllerTest.java | 65 private PreferenceGroup mGroup; field in SecondaryUserControllerTest 80 when(mScreen.findPreference(anyString())).thenReturn(mGroup); in setUp() 81 when(mGroup.getKey()).thenReturn(TARGET_PREFERENCE_GROUP_KEY); in setUp() 91 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerAddsSecondaryUser() 103 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesSummaryOfNewPreference() 217 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesPreferenceOnAcceptingResult() 256 verify(mGroup).addPreference(argumentCaptor.capture()); in iconCallbackChangesPreferenceIcon()
|
/packages/apps/StorageManager/src/com/android/storagemanager/utils/ |
D | PreferenceListCache.java | 29 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/ |
D | SetupWizardActivity.java | 496 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());
|