/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
InputMethodInfoTest.java | 51 mPackageName = mContext.getPackageName(); 130 intent.setClass(mContext, InputMethodInfoStub.class); 131 PackageManager pm = mContext.getPackageManager(); 135 mInputMethodInfo = new InputMethodInfo(mContext, resolveInfo); 176 PackageManager pm = mContext.getPackageManager(); 198 PackageManager pm = mContext.getPackageManager();
|
/frameworks/base/core/java/android/server/ |
BluetoothInputProfileHandler.java | 45 private Context mContext; 51 mContext = context; 54 mHidProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.HID); 138 return Settings.Secure.getInt(mContext.getContentResolver(), 147 return Settings.Secure.putInt(mContext.getContentResolver(), 192 mContext.sendBroadcast(intent, BluetoothService.BLUETOOTH_PERM);
|
BluetoothService.java | 104 private final Context mContext; 201 mContext = context; 226 mA2dpProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.A2DP); 227 mHfpProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.HFP); 236 mContext.registerReceiver(mReceiver, filter); 237 mBluetoothInputProfileHandler = BluetoothInputProfileHandler.getInstance(mContext, this); 238 mBluetoothPanProfileHandler = BluetoothPanProfileHandler.getInstance(mContext, this); 239 mBluetoothHealthProfileHandler = BluetoothHealthProfileHandler.getInstance(mContext, this); 314 mBluetoothState = new BluetoothAdapterStateMachine(mContext, this, mAdapter); 316 if (mContext.getResources().getBoolea [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
SmsStorageMonitor.java | 50 private final Context mContext; 71 mContext = phone.getContext(); 84 mContext.registerReceiver(mResultReceiver, filter); 90 mContext.unregisterReceiver(mResultReceiver); 129 PowerManager pm = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE); 142 mContext.sendBroadcast(intent, SMSDispatcher.RECEIVE_SMS_PERMISSION);
|
/frameworks/base/test-runner/src/android/test/ |
AndroidTestRunner.java | 39 private Context mContext; 85 return (Class<? extends Test>) mContext.getClassLoader().loadClass(testClassName); 164 Context testContext = mInstrumentation == null ? mContext : mInstrumentation.getContext(); 166 setContextIfAndroidTestCase(testCase, mContext, testContext); 181 mContext = context; 220 return mContext.getClassLoader().loadClass(suiteClassName);
|
/packages/apps/Email/src/com/android/email/activity/ |
RecentMailboxManager.java | 79 private final Context mContext; 91 mContext = context; 114 Cursor cursor = mContext.getContentResolver().query(Mailbox.CONTENT_URI, 144 mContext.getContentResolver().update( 158 if (EmailContent.count(mContext, Mailbox.CONTENT_URI, RECENT_SELECTION, args) == 0) { 161 long mailbox = Controller.getInstance(mContext).findOrCreateMailboxOfType(
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
MmsMessageSender.java | 43 private final Context mContext; 55 mContext = context; 66 PduPersister p = PduPersister.getPduPersister(mContext); 93 mContext.startService(new Intent(mContext, TransactionService.class)); 100 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
CorporaAdapter.java | 45 private final Context mContext; 58 mContext = context; 155 return mContext.getResources().getDrawable(R.mipmap.search_app_icon); 163 return mContext.getText(R.string.corpus_label_global); 178 return (CorpusView) LayoutInflater.from(mContext).inflate(mCorpusViewRes, parent, false); 182 return (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
/packages/experimental/AndroidVendorSecurityTool/src/com/google/android/googlelogin/ |
GoogleLoginServiceBlockingHelper.java | 51 private final Context mContext; 83 mContext = context; 105 mGlsVerified = GoogleAppsVerifier.isGoogleAppsVerified(mContext); 122 if (!mContext.bindService(GoogleLoginServiceConstants.SERVICE_INTENT, 140 mContext.unbindService(mServiceConnection); 178 if (Looper.myLooper() == mContext.getMainLooper()) {
|
/frameworks/base/core/java/android/widget/ |
AppSecurityPermissions.java | 66 private Context mContext; 91 mContext = context; 92 mPm = mContext.getPackageManager(); 97 mContext = context; 98 mPm = mContext.getPackageManager(); 118 mContext = context; 119 mPm = mContext.getPackageManager(); 208 mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 223 mDefaultGrpLabel = mContext.getString(R.string.default_permission_group); 224 mPermFormat = mContext.getString(R.string.permissions_format) [all...] |
/frameworks/base/services/java/com/android/server/ |
DeviceStorageMonitorService.java | 76 private Context mContext; 306 mContext = context; 307 mContentResolver = mContext.getContentResolver(); 344 (NotificationManager)mContext.getSystemService( 346 CharSequence title = mContext.getText( 348 CharSequence details = mContext.getText( 350 PendingIntent intent = PendingIntent.getActivity(mContext, 0, lowMemIntent, 0); 355 notification.setLatestEventInfo(mContext, title, details, intent); 357 mContext.sendStickyBroadcast(mStorageLowIntent); 366 (NotificationManager)mContext.getSystemService [all...] |
UiModeManagerService.java | 79 private final Context mContext; 311 mContext = context; 316 (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); 318 (LocationManager)mContext.getSystemService(Context.LOCATION_SERVICE); 319 mContext.registerReceiver(mTwilightUpdateReceiver, 321 mContext.registerReceiver(mDockModeReceiver, 323 mContext.registerReceiver(mBatteryReceiver, 327 mContext.registerReceiver(mUpdateLocationReceiver, filter); 339 mNightMode = Settings.Secure.getInt(mContext.getContentResolver(), 383 Settings.Secure.putInt(mContext.getContentResolver() [all...] |
WifiService.java | 93 private Context mContext; 254 ac.connect(mContext, this, msg.replyTo); 318 mWsmChannel.connect(mContext, this, mWifiStateMachine.getHandler()); 337 mWsmChannel.connect(mContext, this, mWifiStateMachine.getHandler()); 357 mContext = context; 361 mWifiStateMachine = new WifiStateMachine(mContext, mInterfaceName); 365 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); 367 mIdleIntent = PendingIntent.getBroadcast(mContext, IDLE_REQUEST, idleIntent, 0); 369 mContext.registerReceiver( 389 mContext.registerReceiver [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
ScreenRotationAnimation.java | 41 final Context mContext; 65 mContext = context; 197 mExitAnimation = AnimationUtils.loadAnimation(mContext, 199 mEnterAnimation = AnimationUtils.loadAnimation(mContext, 203 mExitAnimation = AnimationUtils.loadAnimation(mContext, 205 mEnterAnimation = AnimationUtils.loadAnimation(mContext, 209 mExitAnimation = AnimationUtils.loadAnimation(mContext, 211 mEnterAnimation = AnimationUtils.loadAnimation(mContext, 215 mExitAnimation = AnimationUtils.loadAnimation(mContext, 217 mEnterAnimation = AnimationUtils.loadAnimation(mContext, [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetService.java | 164 private Context mContext; 171 mContext = context.getApplicationContext(); 177 mPreferences = getWidgetState(mContext, mWidgetId); 189 mPreferences = getWidgetState(mContext, mWidgetId); 212 mContext.getPackageName(), R.layout.bookmarkthumbnailwidget_item); 229 views = new RemoteViews(mContext.getPackageName(), 232 views = new RemoteViews(mContext.getPackageName(), 314 deleteWidgetState(mContext, mWidgetId); 344 mBookmarks = mContext.getContentResolver().query(uri, PROJECTION, 350 Cursor c = mContext.getContentResolver().query(uri, PROJECTION [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
SharePopup.java | 56 private Context mContext; 108 mContext = activity; 110 mMimeType = mContext.getContentResolver().getType(mUri); 137 Resources res = mContext.getResources(); 174 mContext.getResources().getColor(R.color.share_popup_blackout)); 246 PopupManager.getInstance(mContext).notifyShowPopup(null); 254 Util.viewUri(mUri, mContext); 269 PackageManager packageManager = mContext.getPackageManager(); 282 SimpleAdapter listItemAdapter = new MySimpleAdapter(mContext, items, 301 mContext.startActivity(intent) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
AccessibilityManagerServiceTest.java | 95 ensureAccessibilityEnabled(mContext, false); 110 ensureAccessibilityEnabled(mContext, true); 126 ensureAccessibilityEnabled(mContext, true); 141 ensureAccessibilityEnabled(mContext, false); 183 ensureAccessibilityEnabled(mContext, true); 186 ensureOnlyMockServicesEnabled(mContext, true, false); 213 ensureAccessibilityEnabled(mContext, true); 216 ensureOnlyMockServicesEnabled(mContext, true, false); 243 ensureAccessibilityEnabled(mContext, true); 246 ensureOnlyMockServicesEnabled(mContext, true, false) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarController.java | 70 private Context mContext; 101 mTime.switchTimezone(Utils.getTimeZone(mContext, this)); 240 mContext = context; 243 mDetailViewType = Utils.getSharedPreference(mContext, 282 info.startTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); 285 info.selectedTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); 290 info.endTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); 628 intent.setClass(mContext, SelectVisibleCalendarsActivity.class); 630 mContext.startActivity(intent); 635 intent.setClass(mContext, CalendarSettingsActivity.class) [all...] |
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/ |
BackupRestoreConfirmation.java | 79 Context mContext; 81 mContext = context; 89 Toast.makeText(mContext, R.string.toast_backup_started, Toast.LENGTH_LONG).show(); 100 Toast.makeText(mContext, R.string.toast_backup_ended, Toast.LENGTH_LONG).show(); 106 Toast.makeText(mContext, R.string.toast_restore_started, Toast.LENGTH_LONG).show(); 117 Toast.makeText(mContext, R.string.toast_restore_ended, Toast.LENGTH_SHORT).show(); 123 Toast.makeText(mContext, R.string.toast_timeout, Toast.LENGTH_LONG).show();
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
KeyguardViewManager.java | 48 private final Context mContext; 75 mContext = context; 108 Resources res = mContext.getResources(); 115 mKeyguardHost = new KeyguardViewHost(mContext, mCallback); 126 if (ActivityManager.isHighEndGfx(((WindowManager)mContext.getSystemService( 135 if (ActivityManager.isHighEndGfx(((WindowManager)mContext.getSystemService( 159 mKeyguardView = mKeyguardViewProperties.createKeyguardView(mContext, mUpdateMonitor, this);
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
PeopleActivityTest.java | 79 private ContactsMockContext mContext; 89 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); 90 mContactsProvider = mContext.getContactsProvider(); 91 mSettingsProvider = mContext.getSettingsProvider(); 93 services.setContentResolver(mContext.getContentResolver()); 127 if (!PhoneCapabilityTester.isUsingTwoPanes(mContext)) return; 156 mContext.verify();
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
MiscFilesHandler.java | 77 private final Context mContext; 80 mContext = context; 182 Formatter.formatFileSize(mContext, selectedDataSize), 183 Formatter.formatFileSize(mContext, mAdapter.getDataSize()))); 190 private Context mContext; 193 mContext = activity; 254 view.setFileSize(Formatter.formatFileSize(mContext, item.mSize));
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 177 Context mContext; 294 mContext = this; 297 mP2pLinkManager = new P2pLinkManager(mContext); 335 final ContentResolver resolver = mContext.getContentResolver(); 551 mContext.sendBroadcast(intent); 579 NfcService.enforceAdminPerm(mContext); 593 NfcService.enforceAdminPerm(mContext); 610 NfcService.enforceAdminPerm(mContext); 628 NfcService.enforceAdminPerm(mContext); 647 mContext.enforceCallingOrSelfPermission(NFC_PERM, NFC_PERM_ERROR) [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
EditEventFragment.java | 111 private Activity mContext; 418 mContext = activity; 426 mUseCustomActionBar = !Utils.isMultiPaneConfiguration(mContext); 432 // mContext.requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); 439 mView = new EditEventView(mContext, view, mOnDone); 444 new LinearLayout(mContext), false); 450 mContext.getActionBar().setCustomView(actionBarButtons); 461 mContext.getActionBar().setCustomView(null); 565 Toast.makeText(mContext, R.string.saving_event, Toast.LENGTH_SHORT).show(); 591 items[itemIndex++] = mContext.getText(R.string.modify_event) [all...] |
/packages/apps/Email/src/com/android/email/widget/ |
EmailWidget.java | 106 private final Context mContext; 136 mContext = context.getApplicationContext(); 137 mWidgetManager = AppWidgetManager.getInstance(mContext); 140 mLoader = new EmailWidgetLoader(mContext); 144 Resources res = mContext.getResources(); 155 mResourceHelper = ResourceHelper.getInstance(mContext); 163 long accountId = WidgetManager.loadAccountIdPref(mContext, mWidgetId); 164 long mailboxId = WidgetManager.loadMailboxIdPref(mContext, mWidgetId); 201 PendingIntent.getActivity(mContext, (int) mAccountId, intent, 277 count = UiUtilities.getMessageCountForUi(mContext, mCursor.getMessageCount(), false) [all...] |