Searched refs:mContext (Results 51 - 75 of 1622) sorted by relevance

1234567891011>>

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
H A DNotificationControllerTest.java47 private Context mContext; field in class:NotificationControllerTest
59 mContext = application.getApplicationContext();
64 mController.onReceive(mContext,
68 mController.onReceive(mContext,
77 mController.onReceive(mContext,
80 mController.onReceive(mContext,
87 mController.onReceive(mContext,
96 mController.onReceive(mContext,
99 mController.onReceive(mContext,
106 mController.onReceive(mContext,
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DAirplaneModeEnabler.java40 private final Context mContext; field in class:AirplaneModeEnabler
67 mContext = context;
73 mPhoneStateReceiver = new PhoneStateIntentReceiver(mContext, mHandler);
79 mSwitchPref.setChecked(WirelessUtils.isAirplaneModeOn(mContext));
83 mContext.getContentResolver().registerContentObserver(
91 mContext.getContentResolver().unregisterContentObserver(mAirplaneModeObserver);
96 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
104 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
116 mSwitchPref.setChecked(WirelessUtils.isAirplaneModeOn(mContext));
128 mMetricsFeatureProvider.action(mContext, MetricsEven
[all...]
H A DRestrictedCheckBox.java35 private Context mContext; field in class:RestrictedCheckBox
45 mContext = context;
51 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin);
62 RestrictedLockUtils.setTextViewAsDisabledByAdmin(mContext, this, mDisabledByAdmin);
64 getButtonDrawable().setColorFilter(mContext.getColor(R.color.disabled_text_color),
H A DRestrictedRadioButton.java32 private Context mContext; field in class:RestrictedRadioButton
51 mContext = context;
57 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin);
68 RestrictedLockUtils.setTextViewAsDisabledByAdmin(mContext,
71 getButtonDrawable().setColorFilter(mContext.getColor(R.color.disabled_text_color),
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
H A DConfigureWifiSettingsTest.java29 private Context mContext; field in class:ConfigureWifiSettingsTest
33 mContext = spy(RuntimeEnvironment.application);
39 .getNonIndexableKeys(mContext);
42 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(mContext, xmlId);
51 doReturn(manager).when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE);
54 .getNonIndexableKeys(mContext);
64 doReturn(manager).when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE);
67 .getNonIndexableKeys(mContext);
77 doReturn(manager).when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE);
80 .getNonIndexableKeys(mContext);
[all...]
H A DNotifyOpenNetworkPreferenceControllerTest.java46 private Context mContext; field in class:NotifyOpenNetworkPreferenceControllerTest
52 mContext = RuntimeEnvironment.application;
53 mController = new NotifyOpenNetworksPreferenceController(mContext, mock(Lifecycle.class));
63 final SwitchPreference pref = new SwitchPreference(mContext);
70 final Preference pref = new Preference(mContext);
78 final SwitchPreference pref = new SwitchPreference(mContext);
83 assertThat(Settings.Global.getInt(mContext.getContentResolver(),
91 Settings.System.putInt(mContext.getContentResolver(),
102 Settings.System.putInt(mContext.getContentResolver(),
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
H A DTimeFormatPreferenceControllerTest.java53 private Context mContext; field in class:TimeFormatPreferenceControllerTest
61 mContext = mApplication.getApplicationContext();
66 mController = new TimeFormatPreferenceController(mContext, mCallback, true);
73 mController = new TimeFormatPreferenceController(mContext, mCallback, false);
80 mController = new TimeFormatPreferenceController(mContext, mCallback, false);
81 mPreference = new SwitchPreference(mContext);
83 Settings.System.putString(mContext.getContentResolver(), Settings.System.TIME_12_24,
93 mController = new TimeFormatPreferenceController(mContext, mCallback, false);
94 mPreference = new SwitchPreference(mContext);
96 Settings.System.putString(mContext
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
H A DInlinePayloadTest.java24 private Context mContext; field in class:InlinePayloadTest
30 mContext = RuntimeEnvironment.application;
37 Settings.Secure.putInt(mContext.getContentResolver(), KEY, currentValue);
39 int newValue = payload.getValue(mContext);
48 Settings.Global.putInt(mContext.getContentResolver(), KEY, currentValue);
50 int newValue = payload.getValue(mContext);
59 Settings.System.putInt(mContext.getContentResolver(), KEY, currentValue);
61 int newValue = payload.getValue(mContext);
70 ContentResolver resolver = mContext.getContentResolver();
73 payload.setValue(mContext, newValu
[all...]
H A DXmlParserUtilTest.java49 private Context mContext; field in class:XmlParserUtilTest
53 mContext = ShadowApplication.getInstance().getApplicationContext();
61 String title = XmlParserUtils.getDataTitle(mContext, attrs);
62 String expTitle = mContext.getString(R.string.screen_timeout);
70 String keywords = XmlParserUtils.getDataKeywords(mContext, attrs);
71 String expKeywords = mContext.getString(R.string.keywords_display);
80 String key = XmlParserUtils.getDataKey(mContext, attrs);
90 String summary = XmlParserUtils.getDataSummary(mContext, attrs);
91 String expSummary = mContext.getString(R.string.summary_placeholder);
100 String summary = XmlParserUtils.getDataSummaryOn(mContext, attr
[all...]
/packages/services/Telecomm/src/com/android/server/telecom/components/
H A DUserCallIntentProcessor.java63 private final Context mContext; field in class:UserCallIntentProcessor
67 mContext = context;
106 if (!UserUtil.isManagedProfile(mContext, mUserHandle)) {
109 if (!TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) {
110 final UserManager userManager = (UserManager) mContext.getSystemService(
114 showErrorDialogForRestrictedOutgoingCall(mContext,
121 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext,
128 if (!canCallNonEmergency && !TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) {
129 showErrorDialogForRestrictedOutgoingCall(mContext,
155 final String defaultDialer = DefaultDialerManager.getDefaultDialerApplication(mContext,
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppFileProvider.java36 private Context mContext = null; field in class:BluetoothOppFileProvider
48 attachInfo(mContext, mProviderInfo);
64 mContext = context;
69 mContext.registerReceiverAsUser(
73 UserManager userManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
77 super.attachInfo(mContext, mProviderInfo);
81 mContext.unregisterReceiver(mBroadcastReceiver);
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/display/
H A DAutoBrightnessLineItemTest.java40 private Context mContext; field in class:AutoBrightnessLineItemTest
46 mContext = RuntimeEnvironment.application;
47 mAutoBrightnessLineItem = new AutoBrightnessLineItem(mContext);
52 Settings.System.putInt(mContext.getContentResolver(), SCREEN_BRIGHTNESS_MODE,
55 Settings.System.putInt(mContext.getContentResolver(), SCREEN_BRIGHTNESS_MODE,
63 assertThat(Settings.System.getInt(mContext.getContentResolver(),
67 assertThat(Settings.System.getInt(mContext.getContentResolver(),
H A DBrightnessLineItemTest.java38 private Context mContext; field in class:BrightnessLineItemTest
44 mContext = RuntimeEnvironment.application;
45 mBrightnessLineItem = new BrightnessLineItem(mContext);
52 Settings.System.putInt(mContext.getContentResolver(), SCREEN_BRIGHTNESS, brightness);
61 assertThat(Settings.System.getInt(mContext.getContentResolver(),
/packages/apps/TV/src/com/android/tv/
H A DTvOptionsManager.java47 private final Context mContext; field in class:TvOptionsManager
55 mContext = context;
66 return mContext.getString(R.string.closed_caption_option_item_off);
70 return ((MainActivity) mContext).getTvViewUiManager()
72 ? DisplayMode.getLabel(mDisplayMode, mContext)
73 : DisplayMode.getLabel(DisplayMode.MODE_NORMAL, mContext);
86 : mContext.getString(R.string.closed_caption_unknown_language, trackIndex + 1);
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
H A DMasterSwitchPreferenceTest.java46 private Context mContext; field in class:MasterSwitchPreferenceTest
50 mContext = RuntimeEnvironment.application;
55 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext);
63 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext);
65 LayoutInflater.from(mContext).inflate(
79 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext);
81 LayoutInflater.from(mContext).inflate(
95 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext);
97 LayoutInflater.from(mContext).inflate(
108 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext);
[all...]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DSystemStateProviderTest.java45 @Mock Context mContext; field in class:SystemStateProviderTest
64 SystemStateProvider systemStateProvider = new SystemStateProvider(mContext);
74 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager);
76 assertTrue(new SystemStateProvider(mContext).isCarMode());
81 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager);
83 assertFalse(new SystemStateProvider(mContext).isCarMode());
89 new SystemStateProvider(mContext);
90 verify(mContext).registerReceiver(any(BroadcastReceiver.class), intentFilter.capture());
101 new SystemStateProvider(mContext).addListener(mSystemStateListener);
103 verify(mContext)
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DPeopleOptionsItemData.java61 private final Context mContext; field in class:PeopleOptionsItemData
64 mContext = context;
84 mTitle = mContext.getString(R.string.notifications_enabled_conversation_pref_title);
89 mTitle = mContext.getString(R.string.notification_sound_pref_title);
93 mSubtitle = mContext.getString(R.string.silent_ringtone);
95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri);
97 mSubtitle = ringtone.getTitle(mContext);
106 mTitle = mContext.getString(R.string.notification_vibrate_pref_title);
115 mTitle = mContext.getString(resourceId, otherParticipant.getDisplayDestination());
/packages/apps/Settings/src/com/android/settings/password/
H A DChooseLockGenericController.java36 private final Context mContext; field in class:ChooseLockGenericController
55 mContext = context;
76 return !mContext.getResources().getBoolean(R.bool.config_hide_none_security_option);
78 return !mContext.getResources().getBoolean(R.bool.config_hide_swipe_security_option)
119 return mContext.getText(R.string.unlock_set_unlock_off_title);
121 return mContext.getText(R.string.unlock_set_unlock_none_title);
123 return mContext.getText(R.string.unlock_set_unlock_pattern_title);
125 return mContext.getText(R.string.unlock_set_unlock_pin_title);
127 return mContext.getText(R.string.unlock_set_unlock_password_title);
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
H A DMetricsFeatureProviderTest.java52 private Context mContext; field in class:MetricsFeatureProviderTest
58 mContext = RuntimeEnvironment.application;
68 FeatureFactory.getFactory(mContext).getMetricsFeatureProvider();
70 FeatureFactory.getFactory(mContext).getMetricsFeatureProvider();
77 mProvider.logDashboardStartIntent(mContext, null /* intent */,
87 mProvider.logDashboardStartIntent(mContext, intent, MetricsEvent.SETTINGS_GESTURES);
90 eq(mContext),
100 mProvider.logDashboardStartIntent(mContext, intent, MetricsEvent.SETTINGS_GESTURES);
103 eq(mContext),
/packages/apps/Dialer/java/com/android/dialer/voicemailstatus/
H A DVisualVoicemailEnabledChecker.java48 private Context mContext; field in class:VisualVoicemailEnabledChecker
52 mContext = context;
54 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext);
71 mCallLogQueryHandler = new CallLogQueryHandler(mContext, mContext.getContentResolver(), this);
/packages/apps/Settings/src/com/android/settings/datetime/
H A DTimeChangeListenerMixin.java31 private final Context mContext; field in class:TimeChangeListenerMixin
35 mContext = context;
47 mContext.registerReceiver(this, filter, null, null);
52 mContext.unregisterReceiver(this);
58 mCallback.updateTimeAndDateDisplay(mContext);
/packages/apps/Settings/src/com/android/settings/development/
H A DDevelopmentSettingsEnabler.java29 private final Context mContext; field in class:DevelopmentSettingsEnabler
34 mContext = context;
57 mLastEnabledState = Settings.Global.getInt(mContext.getContentResolver(),
66 mLastEnabledState = enableDevelopmentSettings(mContext, mDevelopmentPreferences);
73 Settings.Global.putInt(mContext.getContentResolver(),
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DBuildNumberPreferenceController.java106 mContext, UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId());
108 mContext, UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId());
109 mDevHitCountdown = mContext.getSharedPreferences(DevelopmentSettings.PREF_FILE,
126 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF);
131 if (!Utils.isDeviceProvisioned(mContext)) {
133 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF);
140 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext,
144 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF);
157 mContext.getString(R.string.unlock_set_unlock_launch_picker_title));
162 mContext, MetricsEven
[all...]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryBroadcastReceiver.java45 private Context mContext; field in class:BatteryBroadcastReceiver
48 mContext = context;
61 final Intent intent = mContext.registerReceiver(this,
67 mContext.unregisterReceiver(this);
75 mContext.getResources(), intent);
/packages/apps/Settings/src/com/android/settings/search/
H A DInlineSwitchViewHolder.java35 private final Context mContext; field in class:InlineSwitchViewHolder
39 mContext = context;
51 if (mContext == null) {
55 switchView.setChecked(payload.getValue(mContext) == InlineSwitchPayload.TRUE);
62 payload.setValue(mContext, newValue);

Completed in 1351 milliseconds

1234567891011>>