/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetailTest.java | 113 private Bundle mBundle; field in AdvancedPowerUsageDetailTest 149 doReturn(APP_LABEL).when(mBundle).getString(nullable(String.class)); in setUp() 150 when(mFragment.getArguments()).thenReturn(mBundle); in setUp() 202 mBundle = captor.getValue().getBundleExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS); in setUp() 268 assertThat(mBundle.getInt(AdvancedPowerUsageDetail.EXTRA_UID)).isEqualTo(UID); in testStartBatteryDetailPage_hasBasicData() 269 assertThat(mBundle.getLong(AdvancedPowerUsageDetail.EXTRA_BACKGROUND_TIME)) in testStartBatteryDetailPage_hasBasicData() 271 assertThat(mBundle.getLong(AdvancedPowerUsageDetail.EXTRA_FOREGROUND_TIME)) in testStartBatteryDetailPage_hasBasicData() 273 assertThat(mBundle.getString(AdvancedPowerUsageDetail.EXTRA_POWER_USAGE_PERCENT)) in testStartBatteryDetailPage_hasBasicData() 285 assertThat(mBundle.getInt(AdvancedPowerUsageDetail.EXTRA_UID)).isEqualTo(UID); in testStartBatteryDetailPage_typeNotApp_hasBasicData() 286 assertThat(mBundle.getLong(AdvancedPowerUsageDetail.EXTRA_FOREGROUND_TIME)) in testStartBatteryDetailPage_typeNotApp_hasBasicData() [all …]
|
D | BatteryUtilsTest.java | 146 private Bundle mBundle; field in BatteryUtilsTest 523 mBatteryUtils.initBatteryStatsHelper(mBatteryStatsHelper, mBundle, mUserManager); in testInitBatteryStatsHelper_init() 525 verify(mBatteryStatsHelper).create(mBundle); in testInitBatteryStatsHelper_init()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | LocationPolicyDisclaimerTest.java | 52 private final PersistableBundle mBundle = new PersistableBundle(); field in LocationPolicyDisclaimerTest 62 when(mCarrierConfigManager.getConfigForSubId(anyInt())).thenReturn(mBundle); in setUp() 70 mBundle.putBoolean(CarrierConfigManager.KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, true); in sholdShow_configTrue_shouldShowLocationPolicyDisclaimer() 71 mBundle.putBoolean(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false); in sholdShow_configTrue_shouldShowLocationPolicyDisclaimer() 84 mBundle.putBoolean(CarrierConfigManager.KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false); in sholdShow_configFalse_shouldNotShowLocationPolicyDisclaimer() 95 mBundle.putBoolean(CarrierConfigManager.KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, true); in sholdShow_defaultWfcEnabled_shouldNotShowLocationPolicyDisclaimer() 96 mBundle.putBoolean(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, true); in sholdShow_defaultWfcEnabled_shouldNotShowLocationPolicyDisclaimer() 107 mBundle.putBoolean(CarrierConfigManager.KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, true); in sholdShow_alreadyAgreed_shouldNotShowLocationPolicyDisclaimer() 108 mBundle.putBoolean(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false); in sholdShow_alreadyAgreed_shouldNotShowLocationPolicyDisclaimer()
|
D | WifiCallingSettingsForSubTest.java | 85 private final PersistableBundle mBundle = new PersistableBundle(); field in WifiCallingSettingsForSubTest 143 doReturn(mBundle).when(sCarrierConfigManager).getConfigForSubId(anyInt()); in setUp() 157 mBundle.putBoolean( in setDefaultCarrierConfigValues() 159 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_WFC_MODE_BOOL, true); in setDefaultCarrierConfigValues() 160 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, true); in setDefaultCarrierConfigValues() 161 mBundle.putString( in setDefaultCarrierConfigValues() 213 mBundle.putBoolean( in onResume_useWfcHomeModeConfigTrueAndEditable_shouldHideWfcRoaming() 215 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, true); in onResume_useWfcHomeModeConfigTrueAndEditable_shouldHideWfcRoaming() 227 mBundle.putBoolean( in onResume_useWfcHomeModeConfigFalseAndNotEditable_shouldHideWfcRoaming() 229 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false); in onResume_useWfcHomeModeConfigFalseAndNotEditable_shouldHideWfcRoaming() [all …]
|
D | EmergencyCallLimitationDisclaimerTest.java | 50 private final PersistableBundle mBundle = new PersistableBundle(); field in EmergencyCallLimitationDisclaimerTest 60 when(mCarrierConfigManager.getConfigForSubId(anyInt())).thenReturn(mBundle); in setUp() 69 mBundle.putInt(CarrierConfigManager.KEY_EMERGENCY_NOTIFICATION_DELAY_INT, 1000); in sholdShow_delay1000msec_shouldShowEmergencyCallLimitationDisclaimer() 82 mBundle.putInt(CarrierConfigManager.KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1); in sholdShow_delayDefault_shouldNotShowEmergencyCallLimitationDisclaimer() 93 mBundle.putInt(CarrierConfigManager.KEY_EMERGENCY_NOTIFICATION_DELAY_INT, 10); in sholdShow_alreadyAgreed_shouldNotShowEmergencyCallLimitationDisclaimer()
|
/packages/apps/Settings/tests/perftests/src/com/android/settings/tests/perf/ |
D | LaunchSettingsTest.java | 78 private Bundle mBundle; field in LaunchSettingsTest 87 mBundle = new Bundle(); in setUp() 107 mInstrumentation.sendStatus(0, mBundle); in tearDown() 147 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "max"), in putResultToBundle() 149 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "min"), in putResultToBundle() 151 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "avg"), in putResultToBundle() 153 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "25 Percentile"), in putResultToBundle() 155 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "50 Percentile"), in putResultToBundle() 157 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "75 Percentile"), in putResultToBundle() 159 mBundle.putString(String.format("LaunchSettingsTest_%s_%s", string, "all_results"), in putResultToBundle() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyDetectionJobServiceTest.java | 104 private Bundle mBundle; field in AnomalyDetectionJobServiceTest 115 mBundle = new Bundle(); in setUp() 116 mBundle.putParcelable(StatsManager.EXTRA_STATS_DIMENSIONS_VALUE, mStatsDimensionsValue); in setUp() 149 mFeatureFactory.metricsFeatureProvider, mBundle); in saveAnomalyToDatabase_systemWhitelisted_doNotSave() 159 mBundle.putStringArrayList(StatsManager.EXTRA_STATS_BROADCAST_SUBSCRIBER_COOKIES, cookies); in saveAnomalyToDatabase_systemApp_doNotSaveButLog() 170 mFeatureFactory.metricsFeatureProvider, mBundle); in saveAnomalyToDatabase_systemApp_doNotSaveButLog() 190 mBundle); in saveAnomalyToDatabase_systemUid_doNotSave() 205 mBundle); in saveAnomalyToDatabase_uidNull_doNotSave() 215 mBundle.putStringArrayList(StatsManager.EXTRA_STATS_BROADCAST_SUBSCRIBER_COOKIES, cookies); in saveAnomalyToDatabase_normalAppWithAutoRestriction_save() 225 mBundle); in saveAnomalyToDatabase_normalAppWithAutoRestriction_save() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | BiometricFragment.java | 55 private Bundle mBundle; field in BiometricFragment 84 mBundle.getString(BiometricPrompt.KEY_NEGATIVE_TEXT)); 139 mBundle = getArguments(); in onCreate() 141 .setTitle(mBundle.getString(BiometricPrompt.KEY_TITLE)) in onCreate() 144 .setSubtitle(mBundle.getString(BiometricPrompt.KEY_SUBTITLE)) in onCreate() 145 .setDescription(mBundle.getString(BiometricPrompt.KEY_DESCRIPTION)) in onCreate() 147 mBundle.getBoolean(BiometricPrompt.KEY_REQUIRE_CONFIRMATION, true)) in onCreate()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | BiometricFragment.java | 58 private Bundle mBundle; field in BiometricFragment 90 mBundle.getString(BiometricPrompt.KEY_NEGATIVE_TEXT)); 149 mBundle = getArguments(); in onCreate() 151 .setTitle(mBundle.getString(BiometricPrompt.KEY_TITLE)) in onCreate() 154 .setSubtitle(mBundle.getString(BiometricPrompt.KEY_SUBTITLE)) in onCreate() 155 .setDescription(mBundle.getString(BiometricPrompt.KEY_DESCRIPTION)) in onCreate() 157 mBundle.getBoolean(BiometricPrompt.KEY_REQUIRE_CONFIRMATION, true)); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | SettingsPanelActivity.java | 45 final Bundle mBundle = new Bundle(); field in SettingsPanelActivity 87 mBundle.putString(KEY_PANEL_TYPE_ARGUMENT, callingIntent.getAction()); in createOrUpdatePanel() 88 mBundle.putString(KEY_CALLING_PACKAGE_NAME, getCallingPackage()); in createOrUpdatePanel() 89 mBundle.putString(KEY_MEDIA_PACKAGE_NAME, mediaPackageName); in createOrUpdatePanel() 97 panelFragment.setArguments(mBundle); in createOrUpdatePanel() 108 panelFragment.setArguments(mBundle); in createOrUpdatePanel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/panel/ |
D | SettingsPanelActivity.java | 48 final Bundle mBundle = new Bundle(); field in SettingsPanelActivity 87 mBundle.putString(KEY_PANEL_TYPE_ARGUMENT, callingIntent.getAction()); in onCreate() 88 mBundle.putString(KEY_CALLING_PACKAGE_NAME, getCallingPackage()); in onCreate() 89 mBundle.putString(KEY_MEDIA_PACKAGE_NAME, mediaPackageName); in onCreate() 92 panelFragment.setArguments(mBundle); in onCreate()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CredentialHelper.java | 79 private HashMap<String, byte[]> mBundle = new HashMap<String, byte[]>(); field in CredentialHelper 118 mBundle.put(key, bytes); in CredentialHelper() 125 outStates.putSerializable(DATA_KEY, mBundle); in onSaveStates() 148 mBundle = (HashMap) savedStates.getSerializable(DATA_KEY); in onRestoreStates() 209 return mBundle.containsKey(KeyChain.EXTRA_PKCS12); in hasPkcs12KeyStore() 213 return mBundle.containsKey(Credentials.EXTRA_PRIVATE_KEY); in hasPrivateKey() 248 return !mBundle.isEmpty(); in containsAnyRawData() 252 return mBundle.get(key); in getData() 256 mBundle.put(KeyChain.EXTRA_PKCS12, data); in putPkcs12Data()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ExtraSettingsPreferenceControllerTest.java | 64 private Bundle mBundle; field in ExtraSettingsPreferenceControllerTest 80 mBundle = new Bundle(); in setUp() 82 mPreferenceBundleMap.put(preference, mBundle); in setUp() 188 mBundle.putBoolean( in onUxRestrictionsChanged_unrestrictedAndDO_intentsIntoNonDOActivity_disabled() 203 mBundle.putBoolean( in onUxRestrictionsChanged_unrestrictedAndDO_intentsIntoDOActivity_enabled()
|
/packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/ |
D | PartialSuggestionProvider.java | 63 Bundle mBundle; field in PartialSuggestionProvider.MutableMatrixCursor 71 if (mBundle == null) mBundle = new Bundle(); in getExtras() 72 return mBundle; in getExtras()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsageFragment.java | 56 private Bundle mBundle; field in AppDataUsageFragment 100 mBundle = getBundleForNetworkStats(); in onCreate() 103 mAppsNetworkStatsManager.startLoading(loaderManager, mBundle); in onCreate() 144 return mBundle; in getBundle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | SettingsPanelActivityTest.java | 81 assertThat(activity.mBundle.getString(KEY_MEDIA_PACKAGE_NAME)) in startMediaOutputSlice_withPackageName_bundleShouldHaveValue() 83 assertThat(activity.mBundle.getString(KEY_PANEL_TYPE_ARGUMENT)) in startMediaOutputSlice_withPackageName_bundleShouldHaveValue() 95 assertThat(activity.mBundle.containsKey(KEY_MEDIA_PACKAGE_NAME)).isTrue(); in startMediaOutputSlice_withoutPackageName_bundleShouldHaveValue() 96 assertThat(activity.mBundle.getString(KEY_PANEL_TYPE_ARGUMENT)) in startMediaOutputSlice_withoutPackageName_bundleShouldHaveValue()
|