Searched refs:mContext (Results 26 - 50 of 1622) sorted by relevance

1234567891011>>

/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DConfigMonitor.java32 private final Context mContext; field in class:ConfigMonitor
37 mContext = context;
49 mContext.unregisterReceiver(this);
55 mContext.registerReceiver(this, new IntentFilter(Intent.ACTION_CONFIGURATION_CHANGED));
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
H A DDeviceAdminIconParser.java33 private final Context mContext; field in class:DeviceAdminIconParser
37 mContext = context;
38 mFileIcon = new File(new File(mContext.getFilesDir(), DIR_PROVISIONING_PARAMS_FILE_CACHE),
52 boolean success = StoreUtils.copyUriIntoFile(mContext.getContentResolver(), uri, mFileIcon);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
H A DSwiperThemeMatcher.java26 private final Context mContext; field in class:SwiperThemeMatcher
30 mContext = context;
44 return mContext.getResources().getIdentifier(styleName, STYLE_TAG,
45 mContext.getPackageName());
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DCachingIconLoaderTest.java30 return new CachingIconLoader(new MockIconLoader(mContext));
/packages/apps/Settings/src/com/android/settings/network/
H A DNetworkResetRestrictionChecker.java28 private final Context mContext; field in class:NetworkResetRestrictionChecker
32 mContext = context;
38 return RestrictedLockUtils.hasBaseUserRestriction(mContext,
45 mContext, UserManager.DISALLOW_NETWORK_RESET, UserHandle.myUserId()) != null;
H A DWifiCallingPreferenceController.java41 mContext, ImsManager.getWfcMode(mContext, mTm.isNetworkRoaming())));
46 return ImsManager.isWfcEnabledByPlatform(mContext)
47 && ImsManager.isWfcProvisionedOnDevice(mContext);
/packages/apps/Settings/src/com/android/settings/notification/
H A DAudioHelper.java31 private Context mContext; field in class:AudioHelper
34 mContext = context;
38 return AudioSystem.isSingleVolume(mContext);
50 return Utils.createPackageContextAsUser(mContext, profileId);
/packages/services/Telephony/src/com/android/services/telephony/
H A DTelephonyGlobals.java40 private final Context mContext; field in class:TelephonyGlobals
51 mContext = context.getApplicationContext();
65 mTtyManagers.add(new TtyManager(mContext, phone));
68 TelecomAccountRegistry.getInstance(mContext).setupOnBoot();
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
H A DProfileOwnerProvisioningController.java75 new CreateManagedProfileTask(mContext, mParams, this),
76 new InstallExistingPackageTask(mParams.inferDeviceAdminPackageName(), mContext,
78 new SetDevicePolicyTask(mContext, mParams, this),
79 new ManagedProfileSettingsTask(mContext, mParams, this),
80 new DisableInstallShortcutListenersTask(mContext, mParams, this),
81 new StartManagedProfileTask(mContext, mParams, this),
82 new CopyAccountToUserTask(mParentUserId, mContext, mParams, this));
87 new DeleteNonRequiredAppsTask(true /* new profile */, mContext, mParams, this),
88 new InstallExistingPackageTask(mParams.inferDeviceAdminPackageName(), mContext,
90 new SetDevicePolicyTask(mContext, mParam
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
H A DTimeChangeListenerMixinTest.java48 private Context mContext; field in class:TimeChangeListenerMixinTest
54 mContext = ShadowApplication.getInstance().getApplicationContext();
55 mMixin = new TimeChangeListenerMixin(mContext, mCallback);
68 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_TICK));
69 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_CHANGED));
70 mContext.sendBroadcast(new Intent(Intent.ACTION_TIMEZONE_CHANGED));
72 verify(mCallback, times(3)).updateTimeAndDateDisplay(mContext);
79 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_TICK));
80 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_CHANGED));
81 mContext
[all...]
H A DAutoTimePreferenceControllerTest.java44 private Context mContext; field in class:AutoTimePreferenceControllerTest
51 mContext = ShadowApplication.getInstance().getApplicationContext();
52 mPreference = new RestrictedSwitchPreference(mContext);
53 mController = new AutoTimePreferenceController(mContext, mCallback);
59 Settings.Global.putInt(mContext.getContentResolver(),
64 Settings.Global.putInt(mContext.getContentResolver(),
74 verify(mCallback).updateTimeAndDateDisplay(mContext);
82 verify(mCallback).updateTimeAndDateDisplay(mContext);
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
H A DDevelopmentSettingsEnablerTest.java44 private Context mContext; field in class:DevelopmentSettingsEnablerTest
50 mContext = RuntimeEnvironment.application;
51 mEnabler = new DevelopmentSettingsEnabler(mContext, null);
57 Settings.Global.putInt(mContext.getContentResolver(),
60 mEnabler = new DevelopmentSettingsEnabler(mContext, null);
67 Settings.Global.putInt(mContext.getContentResolver(),
74 Settings.Global.putInt(mContext.getContentResolver(),
84 Settings.Global.putInt(mContext.getContentResolver(),
90 assertThat(Settings.Global.getInt(mContext.getContentResolver(),
96 Settings.Global.putInt(mContext
[all...]
/packages/apps/Settings/src/com/android/settings/gestures/
H A DGesturesSettingPreferenceController.java48 mGestureControllers = GestureSettings.buildPreferenceControllers(mContext,
49 null /* lifecycle */, new AmbientDisplayConfiguration(mContext));
65 if (!mFeatureProvider.isSensorAvailable(mContext)) {
69 final ContentResolver contentResolver = mContext.getContentResolver();
75 if (mFeatureProvider.isSupported(mContext) && assistGestureEnabled) {
76 summary = mContext.getString(
79 summary = mContext.getString(
82 summary = mContext.getString(R.string.language_input_gesture_summary_off);
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
H A DAdminActionPreferenceControllerTestBase.java45 protected Context mContext; field in class:AdminActionPreferenceControllerTestBase
53 FakeFeatureFactory.setupForTest(mContext);
54 mFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext);
61 final Preference preference = new Preference(mContext, null, 0, 0);
62 when(mContext.getString(R.string.enterprise_privacy_none)).thenReturn("None");
63 Settings.System.putString(mContext.getContentResolver(), Settings.System.TIME_12_24, "24");
74 mContext, date.getTime(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE));
84 assertThat(mController.handlePreferenceTreeClick(new Preference(mContext, null, 0, 0)))
H A DManageDeviceAdminPreferenceControllerTest.java46 private Context mContext; field in class:ManageDeviceAdminPreferenceControllerTest
54 FakeFeatureFactory.setupForTest(mContext);
55 mFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext);
56 mController = new ManageDeviceAdminPreferenceController(mContext);
61 final Preference preference = new Preference(mContext, null, 0, 0);
65 when(mContext.getResources().getString(R.string.number_of_device_admins_none))
72 when(mContext.getResources().getQuantityString(R.plurals.number_of_device_admins, 5, 5))
85 assertThat(mController.handlePreferenceTreeClick(new Preference(mContext, null, 0, 0)))
/packages/apps/Settings/tests/unit/src/com/android/settings/utils/
H A DFileSizeFormatterTest.java37 private Context mContext; field in class:FileSizeFormatterTest
41 mContext = InstrumentationRegistry.getTargetContext();
48 mContext,
59 mContext,
70 mContext,
81 mContext,
93 mContext,
104 mContext,
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
H A DTimeFormatToggleLineItem.java44 private Context mContext; field in class:TimeFormatToggleLineItem
48 mContext = context;
60 Settings.System.putString(mContext.getContentResolver(),
68 mContext.sendBroadcast(timeChanged);
73 return DateFormat.is24HourFormat(mContext);
78 return DateFormat.getTimeFormat(mContext)
/packages/apps/Car/Settings/src/com/android/car/settings/display/
H A DAutoBrightnessLineItem.java35 private final Context mContext; field in class:AutoBrightnessLineItem
39 mContext = context;
44 Settings.System.putInt(mContext.getContentResolver(), SCREEN_BRIGHTNESS_MODE,
53 int brightnessMode = Settings.System.getInt(mContext.getContentResolver(),
60 return mContext.getText(R.string.auto_brightness_summary);
75 return mContext.getResources().getBoolean(
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
H A DAccessPointSecurity.java34 private final Context mContext; field in class:AccessPointSecurity
50 mContext = context;
62 return mContext.getString(R.string.wifi_security_eap);
64 return mContext.getString(R.string.wifi_security_psk_generic);
66 return mContext.getString(R.string.wifi_security_wep);
69 return mContext.getString(R.string.wifi_security_none);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
H A DNetworkTypeLogger.java35 private final Context mContext; field in class:NetworkTypeLogger
48 mContext = checkNotNull(context);
57 final NetworkInfo networkInfo = mUtils.getActiveNetworkInfo(mContext);
58 if (mUtils.isConnectedToNetwork(mContext)) {
60 mMetricsLoggerWrapper.logAction(mContext, PROVISIONING_NETWORK_TYPE, networkType);
62 mMetricsLoggerWrapper.logAction(mContext, PROVISIONING_NETWORK_TYPE,
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
H A DCopyContactDetailDialog.java32 private final Context mContext; field in class:CopyContactDetailDialog
36 mContext = context;
41 new AlertDialog.Builder(mContext)
51 (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
56 LayoutInflater inflater = (LayoutInflater) mContext
62 mContext.getResources(), mContactDetail);
/packages/apps/Settings/src/com/android/settings/applications/
H A DNotificationApps.java33 private final Context mContext; field in class:NotificationApps.SummaryProvider
39 mContext = context;
42 mPackageManager = new PackageManagerWrapperImpl(mContext.getPackageManager());
48 new AppCounter(mContext, mPackageManager) {
65 mLoader.setSummary(this, mContext.getString(R.string.notification_summary_none));
67 mLoader.setSummary(this, mContext.getResources().getQuantityString(
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
H A DConnectedDeviceDashboardFragmentTest.java57 Context mContext; field in class:ConnectedDeviceDashboardFragmentTest
85 FakeFeatureFactory.setupForTest(mContext);
86 mFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext);
90 when(mContext.getPackageManager()).thenReturn(mManager);
92 mSmsMirroringPreferenceController = new TestSmsMirroringPreferenceController(mContext);
93 when(mFeatureProvider.getController(mContext)).thenReturn(
105 mFragment.SEARCH_INDEX_DATA_PROVIDER.getXmlResourcesToIndex(mContext,
116 mContext);
127 mContext);
136 when(mFeatureProvider.shouldShowSmsMirroring(mContext))
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
H A DLocationPreferenceControllerTest.java70 private Context mContext; field in class:LocationPreferenceControllerTest
76 mController = new LocationPreferenceController(mContext, mLifecycle);
102 Secure.putInt(mContext.getContentResolver(),
105 assertThat(mController.getLocationSummary(mContext)).isEqualTo(
106 mContext.getString(R.string.location_off_summary));
111 Secure.putInt(mContext.getContentResolver(),
114 assertThat(mController.getLocationSummary(mContext)).isEqualTo(
115 mContext.getString(R.string.location_on_summary,
116 mContext.getString(R.string.location_mode_sensors_only_title)));
121 Secure.putInt(mContext
[all...]
/packages/services/Car/car-lib/src/android/car/settings/
H A DGarageModeSettingsObserver.java43 private final WeakReference<Context> mContext; field in class:GarageModeSettingsObserver
47 mContext = new WeakReference<Context>(context);
51 if (mContext.get() == null) {
55 mContext.get().getContentResolver().registerContentObserver(
61 if (mContext.get() == null) {
64 mContext.get().getContentResolver().unregisterContentObserver(this);

Completed in 468 milliseconds

1234567891011>>