/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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | PermissionPreference.java | 57 private final LightAppPermGroup mGroup; field in PermissionPreference 123 mGroup = group; in PermissionPreference() 151 mGroup.getPermGroupName()); in updateUi() 152 EnforcedAdmin admin = mViewModel.getAdmin(getContext(), mGroup); in updateUi() 163 if (mViewModel.isFixedOrForegroundDisabled(mGroup)) { in updateUi() 179 Bundle args = AllAppPermissionsFragment.createArgs(mGroup.getPackageName(), in updateUi() 180 mGroup.getPermGroupName(), UserHandle.getUserHandleForUid( in updateUi() 181 mGroup.getPackageInfo().getUid())); in updateUi() 196 if (mGroup.getHasPermWithBackgroundMode()) { in updateUi() 197 if (!mGroup.getHasBackgroundGroup()) { in updateUi() [all …]
|
D | ReviewPermissionsFragment.java | 459 private final LightAppPermGroup mGroup; field in ReviewPermissionsFragment.PermissionReviewPreference 467 mGroup = group; in PermissionReviewPreference() 473 return mGroup; in getGroup() 487 if (mGroup == null) { in updateUi() 494 if (mGroup.isReviewRequired() && !mWasChanged) { in updateUi() 496 mGroup.getPermGroupName())); in updateUi() 502 mGroup.getPermGroupName())); in updateUi()
|
/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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | ReviewPermissionsViewModel.kt | 276 private fun isForegroundDisabledByPolicy(mGroup: LightAppPermGroup): Boolean { in <lambda>() 277 return mGroup.foreground.isPolicyFixed && !mGroup.isGranted in <lambda>() 281 fun isFixedOrForegroundDisabled(mGroup: LightAppPermGroup): Boolean { in <lambda>() 282 return mGroup.isSystemFixed || in <lambda>() 283 mGroup.isPolicyFullyFixed || in <lambda>() 284 isForegroundDisabledByPolicy(mGroup) in <lambda>() 292 fun getAdmin(context: Context, mGroup: LightAppPermGroup): EnforcedAdmin? { in <lambda>() 293 return RestrictedLockUtils.getProfileOrDeviceOwner(context, mGroup.userHandle) in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/development/snooplogger/ |
D | SnoopLoggerFiltersPreferenceController.java | 58 PreferenceGroup mGroup = screen.findPreference(getPreferenceKey()); in displayPreference() local 59 mGroup.removeAll(); in displayPreference() 60 final Context prefContext = mGroup.getContext(); in displayPreference() 62 mGroup.addPreference( in displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverAppPreferenceControllerTest.java | 80 private PreferenceGroup mGroup; field in GraphicsDriverAppPreferenceControllerTest 136 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 137 assertThat(mGroup.getPreference(0).getKey()).isEqualTo(APP_1); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 138 assertThat(mGroup.getPreference(1).getKey()).isEqualTo(APP_3); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 166 assertThat(mGroup.isVisible()).isTrue(); in updateState_available_visible() 175 assertThat(mGroup.isVisible()).isFalse(); in updateState_graphicsDriverOff_notVisible() 345 mGroup = spy(new PreferenceCategory(mContext)); in loadConfig() 347 when(mGroup.getContext()).thenReturn(mContext); in loadConfig() 348 when(mGroup.getPreferenceManager()).thenReturn(preferenceManager); in loadConfig() 349 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mGroup); in loadConfig()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 1449 private WifiP2pGroup mGroup; field in WifiP2pServiceImpl.P2pStateMachine 2251 maybeEraseOwnDeviceAddress(mGroup, message.sendingUid)); in processMessageImpl() 2395 mGroup = (WifiP2pGroup) message.obj; in processMessageImpl() 2396 loge("Unexpected group creation, remove " + mGroup); in processMessageImpl() 2397 mWifiNative.p2pGroupRemove(mGroup.getInterface()); in processMessageImpl() 2398 mGroup = null; in processMessageImpl() 2841 mGroup = null; in enterImpl() 3868 mGroup = (WifiP2pGroup) message.obj; in processMessageImpl() 3870 if (mGroup.isGroupOwner() in processMessageImpl() 3871 && EMPTY_DEVICE_ADDRESS.equals(mGroup.getOwner().deviceAddress)) { in processMessageImpl() [all …]
|
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v31/ |
D | AppPermissionUsage.java | 137 private final @NonNull AppPermissionGroup mGroup; field in AppPermissionUsage.GroupUsage 143 mGroup = group; in GroupUsage() 176 Set<String> allOps = getAllOps(mGroup); in hasDiscreteData() 193 Set<String> allOps = getAllOps(mGroup); in getAllDiscreteAccessTime() 218 Set<String> allOps = getAllOps(mGroup); in isRunning() 234 Set<String> allOps = getAllOps(mGroup); in extractAggregate() 248 Set<String> allOps = getAllOps(mGroup); in lastAccessAggregate() 290 return mGroup; in getGroup() 331 Set<String> allOps = getAllOps(mGroup); in getAttributionLabelledGroupUsages()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | NonCurrentUserControllerTest.java | 69 private PreferenceGroup mGroup; field in NonCurrentUserControllerTest 88 when(mScreen.findPreference(anyString())).thenReturn(mGroup); in setUp() 89 when(mGroup.getKey()).thenReturn(TARGET_PREFERENCE_GROUP_KEY); in setUp() 104 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerAddsSecondaryUser() 116 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesSummaryOfNewPreference() 209 verify(mGroup).addPreference(argumentCaptor.capture()); in handleResult_noStatsResult_shouldShowCachedData() 245 verify(mGroup).addPreference(argumentCaptor.capture()); in iconCallbackChangesPreferenceIcon()
|
/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());
|