/frameworks/base/core/tests/notificationtests/src/android/app/ |
NotificationStressTest.java | 52 private Context mContext; 59 mContext = getInstrumentation().getContext(); 60 mNotificationManager = (NotificationManager) mContext.getSystemService( 85 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); 88 notification.setLatestEventInfo(mContext, title, subtitle, pendingIntent);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ProviderStatusLoader.java | 45 private final Context mContext; 53 this.mContext = context; 79 Cursor cursor = mContext.getContentResolver().query(ProviderStatus.CONTENT_URI, 96 ContentResolver resolver = mContext.getContentResolver(); 125 mContext.getContentResolver().update(ProviderStatus.CONTENT_URI, values, null, null);
|
/cts/tests/tests/app/src/android/app/cts/ |
ServiceTest.java | 49 private Context mContext; 142 mContext.startService(new Intent(service).putExtras(bundle)); 145 mContext.startService(new Intent(service).putExtras(bundle)); 150 mContext.stopService(service); 154 mContext.stopService(service); 160 mContext.startService(service); 190 mContext.bindService(service, conn, 0); 191 mContext.startService(service); 195 mContext.bindService(service, conn2, 0); 198 mContext.unbindService(conn2) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
RingtoneManagerTest.java | 44 private Context mContext; 59 mContext = mInstrumentation.getContext(); 61 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 64 mDefaultUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, 77 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, 96 new RingtoneManager(mContext); 176 assertNotNull(RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI)); 180 assertNotNull(RingtoneManager.getValidRingtoneUri(mContext)); 182 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, uri); 183 assertEquals(uri, RingtoneManager.getActualDefaultRingtoneUri(mContext, [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
OrientationListenerTest.java | 35 private Context mContext; 40 mContext = getContext(); 58 new MockOrientationListener(mContext); 60 new MockOrientationListener(mContext, SensorManager.SENSOR_DELAY_UI); 86 MockOrientationListener listener = new MockOrientationListener(mContext); 99 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ACCELEROMETER, 102 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ORIENTATION, 114 MockOrientationListener listener = new MockOrientationListener(mContext); 119 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_ACCELEROMETER, 126 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_MAGNETIC_FIELD [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ZoomControlsTest.java | 37 private Context mContext; 42 mContext = getInstrumentation().getContext(); 58 new ZoomControls(mContext); 60 new ZoomControls(mContext, null); 71 ZoomControls zoomControls = new ZoomControls(mContext); 95 ZoomControls zoomControls = new ZoomControls(mContext); 112 ZoomControls zoomControls = new ZoomControls(mContext); 143 final ZoomControls zoomControls = new ZoomControls(mContext); 161 ZoomControls zoomControls = new ZoomControls(mContext); 174 ZoomControls zoomControls = new ZoomControls(mContext); [all...] |
DigitalClockTest.java | 47 private Context mContext; 57 mContext = getInstrumentation().getContext(); 76 new DigitalClock(mContext); 79 new DigitalClock(mContext, null); 82 new DigitalClock(mContext, getAttributeSet(R.layout.digitalclock_layout)); 84 // Test constructor with null Context, in fact, DigitalClock(mContext) function will 138 MockDigitalClock datePicker = new MockDigitalClock(mContext,
|
/frameworks/base/core/java/android/text/style/ |
ImageSpan.java | 33 private Context mContext; 62 mContext = context; 108 mContext = context; 123 mContext = context; 136 InputStream is = mContext.getContentResolver().openInputStream( 139 drawable = new BitmapDrawable(mContext.getResources(), bitmap); 148 drawable = mContext.getResources().getDrawable(mResourceId);
|
/packages/apps/Exchange/src/com/android/exchange/ |
CalendarSyncEnabler.java | 43 private final Context mContext; 46 this.mContext = context; 69 Account[] exchangeAccounts = AccountManager.get(mContext) 98 PendingIntent launchCalendarPendingIntent = PendingIntent.getActivity(mContext, 0, 101 String tickerText = mContext.getString(R.string.notification_exchange_calendar_added); 104 n.setLatestEventInfo(mContext, tickerText, emailAddresses, launchCalendarPendingIntent); 108 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
SyncAdapterTestCase.java | 37 public Context mContext; 51 mContext = getContext(); 53 mProviderContext = mContext; 54 mResolver = mContext.getContentResolver(); 87 service.mContext = mContext; 90 service.mContentResolver = mContext.getContentResolver();
|
/frameworks/base/core/java/com/android/internal/widget/ |
PasswordEntryKeyboardHelper.java | 52 private final Context mContext; 64 mContext = context; 86 mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric, 88 mQwertyKeyboard = new PasswordEntryKeyboard(mContext, 92 mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, 98 mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_symbols, 102 mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, 109 mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric); 110 mQwertyKeyboard = new PasswordEntryKeyboard(mContext, 114 mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, [all...] |
DigitalClock.java | 72 private Context mContext; 76 mContext = clock.getContext(); 96 mContext.unregisterReceiver(this); 134 private Context mContext; 138 mContext = clock.getContext(); 148 mContext.getContentResolver().unregisterContentObserver(this); 192 mContext.registerReceiver(mIntentReceiver, filter); 198 mContext.getContentResolver().registerContentObserver( 212 mContext.unregisterReceiver(mIntentReceiver); 215 mContext.getContentResolver().unregisterContentObserver [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
RetryScheduler.java | 50 private final Context mContext; 54 mContext = context; 68 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 101 setRetryAlarm(mContext); 113 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, 128 DefaultRetryScheme scheme = new DefaultRetryScheme(mContext, retryIndex); 179 Cursor c = SqliteWrapper.query(mContext, mContext.getContentResolver(), uri, 195 MessagingNotification.notifyDownloadFailed(mContext, threadId); 204 SqliteWrapper.update(mContext, mContext.getContentResolver() [all...] |
SmsSingleRecipientSender.java | 57 mDest = Conversation.verifySingleRecipient(mContext, mThreadId, mDest); 67 boolean moved = Sms.moveMessageToFolder(mContext, mUri, Sms.MESSAGE_TYPE_OUTBOX, 0); 85 mContext, 0, 89 mContext, 95 mContext, 109 sentIntents.add(PendingIntent.getBroadcast(mContext, requestCode, intent, 0));
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppNotification.java | 85 private Context mContext; 125 mContext = ctx; 126 mNotificationMgr = (NotificationManager)mContext 204 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null, 241 fileName = mContext.getString(R.string.unknown_file); 256 item.description = mContext.getString(R.string.notification_sending, fileName); 258 item.description = mContext 278 Notification.Builder b = new Notification.Builder(mContext); 297 b.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, 0)); 333 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetService.java | 119 private Context mContext; 146 String selection = Utils.getHideDeclinedEvents(mContext) ? 158 mContext = context; 193 RemoteViews views = new RemoteViews(mContext.getPackageName(), 206 RemoteViews views = new RemoteViews(mContext.getPackageName(), 208 final Intent intent = CalendarAppWidgetProvider.getLaunchFillInIntent(mContext, 0, 215 RemoteViews views = new RemoteViews(mContext.getPackageName(), 217 final Intent intent = CalendarAppWidgetProvider.getLaunchFillInIntent(mContext, 0, 225 RemoteViews views = new RemoteViews(mContext.getPackageName(), 234 views = new RemoteViews(mContext.getPackageName() [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarViewAdapter.java | 72 Context mContext; 81 refresh(mContext); 89 mContext = context; 278 dayOfWeek = mContext.getString(R.string.agenda_today, 279 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 282 dayOfWeek = mContext.getString(R.string.agenda_yesterday, 283 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 286 dayOfWeek = mContext.getString(R.string.agenda_tomorrow, 287 DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 290 dayOfWeek = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime [all...] |
/cts/tests/tests/net/src/android/net/http/cts/ |
ApacheHttpClientTest.java | 66 mWebServer = new CtsTestServer(mContext); 67 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 69 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 71 PackageManager packageManager = mContext.getPackageManager(); 146 mContext.registerReceiver(receiver, filter); 152 mContext.unregisterReceiver(receiver); 165 mContext.registerReceiver(connectMobileReceiver, filter); 166 mContext.registerReceiver(disconnectWifiReceiver, filter); 172 mContext.unregisterReceiver(connectMobileReceiver); 173 mContext.unregisterReceiver(disconnectWifiReceiver) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
Config.java | 77 private final Context mContext; 86 mContext = context; 90 return mContext; 103 String[] corpora = mContext.getResources().getStringArray(res); 163 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard); 170 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions); 174 return mContext.getResources().getInteger(R.integer.max_promoted_results); 188 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source); 195 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source); 317 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions) [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
ApplicationInfoTest.java | 73 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0); 112 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0); 141 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0); 143 assertNull(mApplicationInfo.loadDescription(mContext.getPackageManager())); 146 assertEquals(mContext.getResources().getString(R.string.hello_world), 147 mApplicationInfo.loadDescription(mContext.getPackageManager()));
|
/frameworks/base/core/java/com/android/internal/view/ |
StandaloneActionMode.java | 34 private Context mContext; 45 mContext = context; 66 setTitle(mContext.getString(resId)); 71 setSubtitle(mContext.getString(resId)); 118 return new MenuInflater(mContext); 133 new MenuPopupHelper(mContext, subMenu).show();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
BrightnessController.java | 39 private Context mContext; 44 mContext = context; 54 automatic = Settings.System.getInt(mContext.getContentResolver(), 67 value = Settings.System.getInt(mContext.getContentResolver(), 88 Settings.System.putInt(mContext.getContentResolver(), 97 Settings.System.putInt(mContext.getContentResolver(),
|
LocationController.java | 45 private Context mContext; 50 mContext = context; 92 Notification n = new Notification.Builder(mContext) 94 .setContentTitle(mContext.getText(textResId)) 105 mContext.getPackageName(), 113 mContext.getPackageName(),
|
/frameworks/base/services/java/com/android/server/ |
RecognitionManagerService.java | 38 final Context mContext; 66 mContext = context; 76 mContext.getPackageManager().getServiceInfo(comp, 0); 90 mContext.getPackageManager().queryIntentServices( 117 mContext.getContentResolver(), 126 Settings.Secure.putString(mContext.getContentResolver(),
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
BridgeXmlPullAttributes.java | 36 private final BridgeContext mContext; 42 mContext = context; 73 if (mContext.getProjectCallback().getNamespace().equals(ns)) { 74 Integer v = mContext.getProjectCallback().getResourceId(ResourceType.ATTR, name); 107 RenderResources resources = mContext.getRenderResources(); 116 id = mContext.getProjectCallback().getResourceId(
|