HomeSort by relevance Sort by last modified time
    Searched refs:mContext (Results 201 - 225 of 5445) sorted by null

1 2 3 4 5 6 7 891011>>

  /packages/apps/Car/Settings/src/com/android/car/settings/users/
UsersItemProvider.java 39 private final Context mContext;
46 mContext = context;
73 mContext.getString(R.string.current_user_name, currUserInfo.name)));
96 TextListItem item = new TextListItem(mContext);
97 item.setPrimaryActionIcon(mUserIconProvider.getUserIcon(userInfo, mContext),
103 item.setBody(mContext.getString(R.string.user_summary_not_set_up));
114 mCarUserManagerHelper, mContext);
116 TextListItem item = new TextListItem(mContext);
118 item.setTitle(mContext.getString(R.string.user_guest));
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
PeopleOptionsItemData.java 61 private final Context mContext;
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/
AirplaneModeEnabler.java 39 private final Context mContext;
77 mContext = context;
81 mPhoneStateReceiver = new PhoneStateIntentReceiver(mContext, mHandler);
87 mContext.getContentResolver().registerContentObserver(
94 mContext.getContentResolver().unregisterContentObserver(mAirplaneModeObserver);
99 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
110 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
132 mMetricsFeatureProvider.action(mContext, MetricsEvent.ACTION_AIRPLANE_TOGGLE,
149 return WirelessUtils.isAirplaneModeOn(mContext);
  /packages/apps/Settings/src/com/android/settings/password/
ChooseLockGenericController.java 36 private final Context mContext;
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/bluetooth/
BluetoothPairingPreferenceControllerTest.java 50 private Context mContext;
59 mContext = spy(RuntimeEnvironment.application);
60 when(mFragment.getPreferenceScreen().getContext()).thenReturn(mContext);
62 mPreference = new Preference(mContext);
65 mController = new BluetoothPairingPreferenceController(mContext, mFragment);
73 assertThat(pref.getIcon()).isEqualTo(mContext.getDrawable(R.drawable.ic_menu_add));
76 .isEqualTo(mContext.getString(R.string.bluetooth_pairing_pref_title));
81 doNothing().when(mContext).startActivity(any(Intent.class));
85 verify(mContext).startActivity(any(Intent.class));
BluetoothSwitchPreferenceControllerTest.java 57 private Context mContext;
63 mContext = spy(RuntimeEnvironment.application.getApplicationContext());
64 mFooterPreference = new FooterPreference(mContext);
68 new BluetoothSwitchPreferenceController(mContext, mBluetoothManager, mRestrictionUtils,
74 Settings.Global.putInt(mContext.getContentResolver(),
80 mContext.getText(R.string.bluetooth_scanning_on_info_message), info);
87 Settings.Global.putInt(mContext.getContentResolver(),
97 Settings.Global.putInt(mContext.getContentResolver(),
106 Settings.Global.putInt(mContext.getContentResolver(),
  /packages/apps/Settings/tests/robotests/src/com/android/settings/core/
PreferenceControllerListHelperTest.java 40 private Context mContext;
44 mContext = RuntimeEnvironment.application;
51 PreferenceControllerListHelper.getPreferenceControllersFromXml(mContext,
64 PreferenceControllerListHelper.getPreferenceControllersFromXml(mContext,
74 controllers.add(new BasePreferenceController(mContext, "key") {
88 controllers.add(new BasePreferenceController(mContext, "key") {
95 filter.add(new BasePreferenceController(mContext, "key2") {
109 controllers.add(new BasePreferenceController(mContext, "key") {
116 filter.add(new BasePreferenceController(mContext, "key") {
  /packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/conditional/
BatterySaverConditionTest.java 49 private Context mContext;
55 mContext = spy(RuntimeEnvironment.application);
56 mPowerManager = Shadows.shadowOf(mContext.getSystemService(PowerManager.class));
57 when(mConditionManager.getContext()).thenReturn(mContext);
64 mContext.getText(R.string.condition_battery_title));
66 mContext.getText(R.string.condition_battery_summary));
68 mContext.getText(R.string.condition_turn_off));
75 verify(mContext).registerReceiver(any(BatterySaverReceiver.class), any(IntentFilter.class));
83 verify(mContext).unregisterReceiver(any(BatterySaverReceiver.class));
  /packages/apps/Settings/tests/robotests/src/com/android/settings/development/
WifiConnectedMacRandomizationPreferenceControllerTest.java 45 private Context mContext;
52 mContext = RuntimeEnvironment.application;
53 mController = new WifiConnectedMacRandomizationPreferenceController(mContext);
54 mPreference = new SwitchPreference(mContext);
75 final int mode = Settings.Global.getInt(mContext.getContentResolver(),
85 final int mode = Settings.Global.getInt(mContext.getContentResolver(),
93 Settings.Global.putInt(mContext.getContentResolver(),
102 Settings.Global.putInt(mContext.getContentResolver(),
113 final int mode = Settings.Global.getInt(mContext.getContentResolver(),
  /packages/apps/Settings/tests/robotests/src/com/android/settings/fingerprint/
FingerprintEnrollSuggestionActivityTest.java 42 private Context mContext;
53 when(mContext.getPackageManager()).thenReturn(mPackageManager);
54 when(mContext.getSystemService(eq(Context.DEVICE_POLICY_SERVICE)))
57 when(mContext.getSystemService(Context.FINGERPRINT_SERVICE))
67 assertThat(FingerprintEnrollSuggestionActivity.isSuggestionComplete(mContext)).isTrue();
76 assertThat(FingerprintEnrollSuggestionActivity.isSuggestionComplete(mContext)).isFalse();
85 assertThat(FingerprintEnrollSuggestionActivity.isSuggestionComplete(mContext)).isTrue();
92 assertThat(FingerprintEnrollSuggestionActivity.isSuggestionComplete(mContext)).isTrue();
103 assertThat(FingerprintEnrollSuggestionActivity.isSuggestionComplete(mContext)).isTrue();
  /packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
NotifyOpenNetworkPreferenceControllerTest.java 41 private Context mContext;
47 mContext = RuntimeEnvironment.application;
48 mController = new NotifyOpenNetworksPreferenceController(mContext, mock(Lifecycle.class));
58 final SwitchPreference pref = new SwitchPreference(mContext);
65 final Preference pref = new Preference(mContext);
73 final SwitchPreference pref = new SwitchPreference(mContext);
78 assertThat(Settings.Global.getInt(mContext.getContentResolver(),
86 Settings.System.putInt(mContext.getContentResolver(),
97 Settings.System.putInt(mContext.getContentResolver(),
WifiSummaryUpdaterTest.java 48 private Context mContext;
55 mContext = spy(RuntimeEnvironment.application.getApplicationContext());
56 mSummaryUpdater = new WifiSummaryUpdater(mContext, mListener, mWifiTracker);
63 verify(mContext).registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class));
72 verify(mContext).unregisterReceiver(any(BroadcastReceiver.class));
79 mContext.sendBroadcast(new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION));
87 mContext.sendBroadcast(new Intent(WifiManager.RSSI_CHANGED_ACTION));
97 .isEqualTo(mContext.getString(R.string.switch_off_text));
106 .isEqualTo(mContext.getString(R.string.disconnected));
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
VoicemailPermissions.java 32 private final Context mContext;
35 mContext = context;
46 if (DefaultDialerManager.isDefaultOrSystemDialer(mContext, callingPackage)) {
55 if (DefaultDialerManager.isDefaultOrSystemDialer(mContext, callingPackage)) {
113 return ContactsPermissions.hasPackagePermission(mContext, permission, packageName);
118 return ContactsPermissions.hasCallerOrSelfPermission(mContext, permission);
124 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
125 String[] packages = mContext.getPackageManager().getPackagesForUid(Binder.getCallingUid());
138 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
RealSystemFacade.java 42 private Context mContext;
45 mContext = context;
60 return mContext.getSystemService(ConnectivityManager.class)
66 return mContext.getSystemService(ConnectivityManager.class)
72 final Long value = DownloadManager.getMaxBytesOverMobile(mContext);
78 final Long value = DownloadManager.getRecommendedMaxBytesOverMobile(mContext);
84 mContext.sendBroadcast(intent);
89 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid;
114 appConfig = NetworkSecurityPolicy.getApplicationConfigForPackage(mContext, packageName);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarSettingsActionProviderActivity.java 70 private final Context mContext;
79 mContext = context;
88 LayoutInflater layoutInflater = LayoutInflater.from(mContext);
95 mContext.startActivity(sSettingsIntent);
108 mContext.startActivity(sSettingsIntent);
  /frameworks/base/core/java/com/android/internal/util/
EmergencyAffordanceManager.java 44 private final Context mContext;
47 mContext = context;
54 performEmergencyCall(mContext);
91 return Settings.Global.getInt(mContext.getContentResolver(),
97 return Settings.Global.getInt(mContext.getContentResolver(),
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
FrameManager.java 29 private FilterContext mContext;
54 return mContext;
58 return mContext != null ? mContext.getGLEnvironment() : null;
65 mContext = context;
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
CameraBinderTestUtils.java 22 private final Context mContext;
26 mContext = context;
49 if (CameraBinderTestUtils.isFeatureAvailable(mContext,
55 if (CameraBinderTestUtils.isFeatureAvailable(mContext,
62 && CameraBinderTestUtils.isFeatureAvailable(mContext,
  /frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
StringUtilTest.java 36 private Context mContext;
40 mContext = spy(RuntimeEnvironment.application);
48 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString())
57 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString())
67 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString())
76 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString())
85 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString())
94 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString())
103 StringUtil.formatElapsedTime(mContext, testMillis, false);
119 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true).toString()).isEqualTo
    [all...]
  /frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
FooterPreferenceTest.java 38 private Context mContext;
42 mContext = ShadowApplication.getInstance().getApplicationContext();
47 final FooterPreference preference = new FooterPreference(mContext);
55 final FooterPreference preference = new FooterPreference(mContext);
57 LayoutInflater.from(mContext).inflate(R.layout.preference_footer, null));
  /frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
AndroidPackageInfoFetcher.java 46 private Context mContext;
49 mContext = context;
66 return Utils.getCertFingerprintsFromPackageManager(packageName, mContext);
75 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo(
87 mContext.getPackageManager().getResourcesForApplication(packageName)
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
NotificationCustomViewWrapperTest.java 44 mRow = new NotificationTestHelper(mContext).createRow();
49 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.custom_view_dark);
50 View v = views.apply(mContext, null);
51 NotificationViewWrapper wrap = NotificationCustomViewWrapper.wrap(mContext, v, mRow);
55 views.reapply(mContext, v);
  /frameworks/base/services/core/java/com/android/server/timezone/
RulesManagerServiceHelperImpl.java 36 private final Context mContext;
39 mContext = context;
44 mContext.enforceCallingPermission(requiredPermission, null /* message */);
49 return DumpUtils.checkDumpPermission(mContext, tag, pw);
71 mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM);
  /packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DayNightTile.java 33 private final Context mContext;
46 mContext = context;
47 mUiModeManager = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE);
53 mText = mContext.getString(R.string.night_mode_tile_label);
68 return mContext.getDrawable(mIconRes);
  /packages/apps/Car/Settings/src/com/android/car/settings/system/
SystemUpdatesListItem.java 35 private final Context mContext;
40 mContext = context;
49 mContext.startActivity(mSettingsIntent);
53 (CarrierConfigManager) mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE);
69 mContext.getApplicationContext().sendBroadcast(intent);

Completed in 691 milliseconds

1 2 3 4 5 6 7 891011>>