/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
ProfileObserver.java | 17 private Context mContext; 23 mContext = context; 29 mContext.getContentResolver().registerContentObserver( 35 mContext.unregisterReceiver(mStateObserver); 36 Config.init(mContext); 41 mContext.getContentResolver().unregisterContentObserver(this); 47 mContext.registerReceiver(mStateObserver,
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
DisplayOrderPreference.java | 32 private Context mContext; 45 mContext = getContext(); 46 mPreferences = new ContactsPreferences(mContext); 48 mContext.getString(R.string.display_options_view_given_name_first), 49 mContext.getString(R.string.display_options_view_family_name_first), 67 return mContext.getString(R.string.display_options_view_given_name_first); 69 return mContext.getString(R.string.display_options_view_family_name_first);
|
PhoneticNameDisplayPreference.java | 34 private Context mContext; 48 mContext = getContext(); 49 mPreferences = new ContactsPreferences(mContext); 51 mContext.getString(R.string.editor_options_always_show_phonetic_names), 52 mContext.getString(R.string.editor_options_hide_phonetic_names_if_empty) 70 return mContext.getString(R.string.editor_options_always_show_phonetic_names); 72 return mContext.getString(R.string.editor_options_hide_phonetic_names_if_empty);
|
SortOrderPreference.java | 32 private Context mContext; 45 mContext = getContext(); 46 mPreferences = new ContactsPreferences(mContext); 48 mContext.getString(R.string.display_options_sort_by_given_name), 49 mContext.getString(R.string.display_options_sort_by_family_name), 67 return mContext.getString(R.string.display_options_sort_by_given_name); 69 return mContext.getString(R.string.display_options_sort_by_family_name);
|
/packages/apps/DeskClock/src/com/android/deskclock/controller/ |
ShortcutController.java | 52 private final Context mContext; 58 mContext = context; 59 mComponentName = new ComponentName(mContext, DeskClock.class); 60 mShortcutManager = mContext.getSystemService(ShortcutManager.class); 61 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); 62 Controller.getController().addEventTracker(new ShortcutEventTracker(mContext)); 85 .setClass(mContext, HandleApiCalls.class) 90 return new ShortcutInfo.Builder(mContext, setAlarmShortcut) 91 .setIcon(Icon.createWithResource(mContext, R.drawable.shortcut_new_alarm)) 93 .setShortLabel(mContext.getString(R.string.shortcut_new_alarm_short) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/preference/ |
DisplayOrderPreference.java | 29 private Context mContext; 42 mContext = getContext(); 43 mPreferences = new ContactsPreferences(mContext); 46 mContext.getString(R.string.display_options_view_given_name_first), 47 mContext.getString(R.string.display_options_view_family_name_first), 66 return mContext.getString(R.string.display_options_view_given_name_first); 68 return mContext.getString(R.string.display_options_view_family_name_first);
|
SortOrderPreference.java | 29 private Context mContext; 42 mContext = getContext(); 43 mPreferences = new ContactsPreferences(mContext); 46 mContext.getString(R.string.display_options_sort_by_given_name), 47 mContext.getString(R.string.display_options_sort_by_family_name), 66 return mContext.getString(R.string.display_options_sort_by_given_name); 68 return mContext.getString(R.string.display_options_sort_by_family_name);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerTest.java | 124 private DpmMockContext mContext; 160 mContext = getContext(); 161 when(mContext.packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) 165 when(mContext.userManager.isUserUnlocked(anyInt())).thenReturn(true); 185 final long ident = mContext.binder.clearCallingIdentity(); 189 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); 194 dpm = new DevicePolicyManagerTestable(mContext, dpms); 196 mContext.binder.restoreCallingIdentity(ident); 216 }).when(mContext.userManager).setApplicationRestrictions( 228 }).when(mContext.userManager).getApplicationRestrictions [all...] |
/frameworks/base/services/core/java/com/android/server/ |
OemLockService.java | 38 private Context mContext; 42 mContext = context; 51 return !UserManager.get(mContext).hasUserRestriction(UserManager.DISALLOW_OEM_UNLOCK); 56 mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); 81 UserManager.get(mContext) 105 mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); 125 mContext.enforceCallingOrSelfPermission( 131 mContext.enforceCallingOrSelfPermission( 140 if (!UserManager.get(mContext).isUserAdmin(userId)) {
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
VvmPhoneStateListener.java | 36 private Context mContext; 43 mContext = context; 68 OmtpVvmCarrierConfigHelper helper = new OmtpVvmCarrierConfigHelper(mContext, mPhoneAccount); 72 new VoicemailStatusQueryHelper(mContext); 77 VoicemailStatus.edit(mContext, mPhoneAccount), OmtpEvents.NOTIFICATION_IN_SERVICE); 81 if (VvmAccountManager.isAccountActivated(mContext, mPhoneAccount)) { 85 SyncTask.start(mContext, mPhoneAccount, OmtpVvmSyncService.SYNC_FULL_SYNC); 96 if (!VvmAccountManager.isAccountActivated(mContext, mPhoneAccount)) { 100 VoicemailStatus.edit(mContext, mPhoneAccount), OmtpEvents.NOTIFICATION_SERVICE_LOST);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
TestCase.java | 49 protected Context mContext; 69 mContext = context; 89 mListener.onTestFailed(mContext.getString(R.string.p2p_setup_error)); 102 mContext.getString(R.string.p2p_unexpected_error)); 145 mP2pMgr = (WifiP2pManager) mContext.getSystemService(Context.WIFI_P2P_SERVICE); 146 mWifiMgr = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 147 mChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null); 148 mSubChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null) [all...] |
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/ |
KeyguardDismissLoggerCallback.java | 28 private final Context mContext; 31 mContext = context; 41 if (mContext.getSystemService(KeyguardManager.class).isDeviceLocked()) {
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
DefaultDialerOperationsNoPermissionsTest.java | 28 private Context mContext; 36 mContext = getInstrumentation().getContext(); 37 if (!TestUtils.shouldTestTelecom(mContext)) { 40 TestUtils.PACKAGE = mContext.getPackageName(); 48 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); 62 if (!TestUtils.shouldTestTelecom(mContext)) { 74 if (!TestUtils.shouldTestTelecom(mContext)) { 86 if (!TestUtils.shouldTestTelecom(mContext)) { 98 if (!TestUtils.shouldTestTelecom(mContext)) { 110 if (!TestUtils.shouldTestTelecom(mContext)) { [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
AsyncEmergencyContactNotifier.java | 33 private final Context mContext; 36 mContext = context; 42 BlockedNumberContract.SystemContract.notifyEmergencyContact(mContext);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
MediaNowPlayingViewTest.java | 34 private Context mContext; 38 mContext = InstrumentationRegistry.getTargetContext(); 43 new MediaNowPlayingView(mContext, null);
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
TimeModel.java | 31 private final Context mContext; 34 mContext = context; 55 return DateFormat.is24HourFormat(mContext);
|
/packages/apps/Settings/src/com/android/settings/core/ |
TouchOverlayManager.java | 26 private final Context mContext; 30 mContext = context; 34 final AppOpsManager aom = mContext.getSystemService(AppOpsManager.class);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
AssistGestureSensitivityPreferenceControllerTest.java | 53 private Context mContext; 60 FakeFeatureFactory.setupForTest(mContext); 61 mFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext); 62 mController = new AssistGestureSensitivityPreferenceController(mContext, null); 67 Settings.Secure.putInt(mContext.getContentResolver(), 69 when(mFactory.assistGestureFeatureProvider.isSupported(mContext)).thenReturn(true); 76 Settings.Secure.putInt(mContext.getContentResolver(), 78 when(mFactory.assistGestureFeatureProvider.isSupported(mContext)).thenReturn(true); 85 Settings.Secure.putInt(mContext.getContentResolver(), 87 when(mFactory.assistGestureFeatureProvider.isSupported(mContext)).thenReturn(false) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AsyncRefreshTask.java | 25 private final Context mContext; 30 mContext = context; 37 mContext.getContentResolver().query(mRefreshUri, null, null, null, null);
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
CarPermission.java | 30 private final Context mContext; 35 mContext = context; 44 mContext.checkCallingOrSelfPermission(mName);
|
/packages/services/Car/car-support-lib/src/android/support/car/ |
CarServiceLoader.java | 28 private final Context mContext; 33 mContext = context; 55 return mContext;
|
/packages/services/Car/service/src/com/android/car/ |
CarBluetoothService.java | 34 private final Context mContext; 39 mContext = context; 40 mBluetoothDeviceConnectionPolicy = BluetoothDeviceConnectionPolicy.create(mContext,
|
/cts/tests/app/src/android/app/cts/ |
ServiceTest.java | 67 private Context mContext; 166 mContext.startService(new Intent(service).putExtras(bundle)); 169 mContext.startService(new Intent(service).putExtras(bundle)); 174 mContext.stopService(service); 178 mContext.stopService(service); 281 mContext.bindService(service, conn, 0); 282 mContext.startService(service); 286 mContext.bindService(service, conn2, 0); 289 mContext.unbindService(conn2); 293 mContext.unbindService(conn) [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
ImageSpanTest.java | 44 private Context mContext; 48 mContext = InstrumentationRegistry.getTargetContext(); 62 new ImageSpan(mContext, b); 63 new ImageSpan(mContext, b, DynamicDrawableSpan.ALIGN_BOTTOM); 64 new ImageSpan(mContext, b, DynamicDrawableSpan.ALIGN_BASELINE); 66 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 75 new ImageSpan(mContext, Uri.parse("content://user/a/b")); 76 new ImageSpan(mContext, Uri.parse("content://user/a/b"), 78 new ImageSpan(mContext, Uri.parse("content://user/a/b"), 81 new ImageSpan(mContext, R.drawable.pass) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherAppState.java | 45 private final Context mContext; 77 return mContext; 87 mContext = context; 90 TestingUtils.startTrackingMemory(mContext); 93 mInvariantDeviceProfile = new InvariantDeviceProfile(mContext); 94 mIconCache = new IconCache(mContext, mInvariantDeviceProfile); 95 mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache); 98 Utilities.getOverrideObject(AppFilter.class, mContext, R.string.app_filter_class)); 100 LauncherAppsCompat.getInstance(mContext).addOnAppsChangedCallback(mModel); 117 mContext.registerReceiver(mModel, filter) [all...] |