/packages/apps/Browser/src/com/android/browser/view/ |
BookmarkExpandableView.java | 62 private Context mContext; 89 mContext = context; 92 mMaxColumnCount = mContext.getResources() 95 mAdapter = new BookmarkAccountAdapter(mContext); 120 LayoutInflater infalter = LayoutInflater.from(mContext); 359 mContext = context; 360 mInflater = LayoutInflater.from(mContext); 487 groupName = mContext.getString(R.string.local_bookmarks); 501 String bookmarks = mContext.getString(R.string.bookmarks);
|
/packages/apps/Calendar/src/com/android/calendar/ |
DeleteEventHelper.java | 64 private Context mContext; 98 mContext = context; 101 mService = new AsyncQueryService(mContext) { 258 AlertDialog dialog = new AlertDialog.Builder(mContext).setTitle(R.string.delete_title) 266 mContext.getText(android.R.string.ok), 271 mContext.getText(android.R.string.ok), 278 Resources res = mContext.getResources(); 307 ArrayAdapter<String> adapter = new ArrayAdapter<String>(mContext, 309 AlertDialog dialog = new AlertDialog.Builder(mContext).setTitle(R.string.delete_title)
|
TimezoneAdapter.java | 179 private Context mContext; 195 mContext = context; 238 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(mContext); 250 loadFromResources(mContext.getResources()); 306 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(mContext); 321 Utils.setSharedPreference(mContext, KEY_RECENT_TIMEZONES, recentsString);
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthByWeekFragment.java | 98 String tz = Utils.getTimeZone(mContext, mTZUpdater); 246 mFirstDayOfWeek = Utils.getFirstDayOfWeek(mContext); 247 mShowWeekNumber = Utils.getShowWeekNumber(mContext); 336 mFirstDayOfWeek = Utils.getFirstDayOfWeek(mContext); 337 mShowWeekNumber = Utils.getShowWeekNumber(mContext); 339 mHideDeclined = Utils.getHideDeclinedEvents(mContext); 343 mDaysPerWeek = Utils.getDaysPerWeek(mContext); 376 events, data, mContext, mFirstLoadedJulianDay, mLastLoadedJulianDay); 442 CalendarController controller = CalendarController.getInstance(mContext);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorFragment.java | 215 private Context mContext; 323 mContext = activity; 324 mEditorUtils = ContactEditorUtils.getInstance(mContext); 456 AccountType accountType = AccountTypeManager.getInstance(mContext).getAccountType( 524 final AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext); 531 EntityModifier.parseExtras(mContext, type, state, extras); 548 Intent intent = new Intent(mContext, ContactEditorAccountsChangedActivity.class); 569 AccountTypeManager.getInstance(mContext).getAccounts(true); 587 final AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext); 611 AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext); [all...] |
AggregationSuggestionEngine.java | 108 private final Context mContext; 122 mContext = context; 161 mContext.getContentResolver().unregisterContentObserver(mContentObserver); 178 mContext.getContentResolver().registerContentObserver( 182 mContext.getContentResolver().unregisterContentObserver(mContentObserver); 301 ContentResolver contentResolver = mContext.getContentResolver();
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcDispatcher.java | 53 private final Context mContext; 65 mContext = context; 67 mTechListFilters = new RegisteredComponentCache(mContext, 138 Intent rootIntent = new Intent(mContext, NfcRootActivity.class); 148 mContext.startActivity(rootIntent); 201 overrideIntent.send(mContext, Activity.RESULT_OK, intent); 233 intent = new Intent(mContext, TechListChooserActivity.class); 285 if (filter.match(mContext.getContentResolver(), intent, false, TAG) >= 0) { 294 overrideIntent.send(mContext, Activity.RESULT_OK, intent);
|
/packages/apps/Phone/src/com/android/phone/ |
BluetoothAtPhonebook.java | 77 private final Context mContext; 96 mContext = context; 112 Cursor cursor = mContext.getContentResolver().query(Calls.CONTENT_URI, projection, 343 pbr.cursor = mContext.getContentResolver().query( 352 pbr.cursor = mContext.getContentResolver().query(Phone.CONTENT_URI, PHONES_PROJECTION, 427 Cursor c = mContext.getContentResolver(). 461 name = mContext.getString(R.string.unknown); 469 name = mContext.getString(R.string.unknown); 503 mContext.sendBroadcast(intent, BLUETOOTH_ADMIN_PERM);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SkbContainer.java | 199 mPopupSkb = new PopupWindow(mContext); 267 Resources r = mContext.getResources(); 279 R.xml.skb_qwerty, screenWidth, skbHeight, mContext); 284 screenWidth, skbHeight, mContext); 289 screenWidth, skbHeight, mContext); 294 R.xml.skb_smiley, screenWidth, skbHeight, mContext); 299 R.xml.skb_phone, screenWidth, skbHeight, mContext); 344 miniSkbWidth, miniSkbHeight, mContext); 351 mPopupSkbView = new SoftKeyboardView(mContext, null);
|
/packages/apps/Email/src/com/android/email/ |
SecurityPolicy.java | 47 private Context mContext; 75 mContext = context.getApplicationContext(); 85 mContext = context; 124 Cursor c = mContext.getContentResolver().query(Policy.CONTENT_URI, 201 mDPM = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); 514 Account account = Account.restoreAccountWithId(mContext, accountId); 521 Policy policy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); 531 setAccountHoldFlag(mContext, account, true); 534 NotificationController.getInstance(mContext).showSecurityNeededNotification(account); 542 NotificationController.getInstance(mContext).cancelSecurityNeededNotification() [all...] |
/frameworks/base/voip/java/com/android/server/sip/ |
SipService.java | 79 private Context mContext; 118 mContext = context; 134 mContext.enforceCallingOrSelfPermission( 147 mContext.enforceCallingOrSelfPermission( 163 mContext.enforceCallingOrSelfPermission( 201 mContext.enforceCallingOrSelfPermission( 221 mContext.enforceCallingOrSelfPermission( 234 mContext.enforceCallingOrSelfPermission( 248 mContext.enforceCallingOrSelfPermission( 261 mContext.enforceCallingOrSelfPermission [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
PolicySerializationTestActivity.java | 386 private final Context mContext; 390 mContext = context; 421 return mContext.getString(R.string.da_password_quality_alphabetic); 423 return mContext.getString(R.string.da_password_quality_alphanumeric); 425 return mContext.getString(R.string.da_password_quality_numeric); 427 return mContext.getString(R.string.da_password_quality_something);
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentProviderTest.java | 61 mContext.deleteDatabase(TEST_DB_NAME); 62 mContext.deleteFile(TEST_FILE_NAME); 266 mContext.openFileOutput(TEST_FILE_NAME, Context.MODE_PRIVATE).close(); 267 File file = mContext.getFileStreamPath(TEST_FILE_NAME); 482 mContext.deleteDatabase(dbName); 483 mDb = mContext.openOrCreateDatabase(dbName, Context.MODE_PRIVATE, null);
|
/frameworks/base/core/java/android/server/ |
BluetoothPanProfileHandler.java | 60 private Context mContext; 67 mContext = context; 112 mContext.unregisterReceiver(mTetheringReceiver); 116 mContext.registerReceiver(mTetheringReceiver, filter); 304 mContext.sendBroadcast(intent, BluetoothService.BLUETOOTH_PERM); 351 (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeXmlBlockParser.java | 43 private final BridgeContext mContext; 63 mContext = context; 67 if (mContext != null) { 68 mContext.pushParser(this); 90 if (mContext != null && mPopped == false) { 91 mContext.popParser();
|
/packages/apps/Browser/src/com/android/browser/ |
Tab.java | 132 Context mContext; 360 mContext.sendBroadcast(logIntent); 543 AlertDialog d = new AlertDialog.Builder(mContext) 571 mCurrentState = new PageState(mContext, 579 mContext.sendBroadcast(i); 643 mContext.sendBroadcast(logIntent); 716 new AlertDialog.Builder(mContext).setTitle( 774 new AlertDialog.Builder(mContext) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherProvider.java | 209 private final Context mContext; 215 mContext = context; 232 final ContentResolver resolver = mContext.getContentResolver(); 281 final ContentResolver resolver = mContext.getContentResolver(); 550 mContext); 621 final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(mContext); 708 PackageManager packageManager = mContext.getPackageManager(); 711 XmlResourceParser parser = mContext.getResources().getXml(R.xml.default_workspace); 728 TypedArray a = mContext.obtainStyledAttributes(attrs, R.styleable.Favorite); [all...] |
/frameworks/base/core/java/android/app/ |
WallpaperManager.java | 97 private final Context mContext; 319 mContext = context; 346 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); 348 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); 365 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); 367 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); 388 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true); 403 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false); 416 return sGlobals.peekWallpaperBitmap(mContext, true); 455 Resources resources = mContext.getResources() [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
ConnectionUtil.java | 73 private Context mContext; 79 mContext = context; 90 mContext.registerReceiver(mConnectivityReceiver, 95 mContext.registerReceiver(mDownloadReceiver, 106 mContext.registerReceiver(mWifiReceiver, mIntentFilter); 109 mCM = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 112 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); 113 mWifiManager.asyncConnect(mContext, new WifiServiceHandler()); 115 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); 388 PackageManager pm = mContext.getPackageManager() [all...] |
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/ |
DownloadManagerBaseTest.java | 69 protected Context mContext = null; 197 private Context mContext = null; 207 mContext = context; 229 ConnectivityManager connManager = (ConnectivityManager)mContext.getSystemService( 242 mContext = getInstrumentation().getContext(); 243 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); 406 mContext.registerReceiver(receiver, new IntentFilter( 421 WifiManager manager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); 428 WiFiChangedReceiver receiver = new WiFiChangedReceiver(mContext); 429 mContext.registerReceiver(receiver, new IntentFilter [all...] |
/frameworks/base/services/java/com/android/server/usb/ |
UsbDeviceManager.java | 94 private final Context mContext; 134 mContext = context; 137 PackageManager pm = mContext.getPackageManager(); 157 mContext.getSystemService(Context.NOTIFICATION_SERVICE); 163 mContext.getSystemService(Context.STORAGE_SERVICE); 296 mContext.registerReceiver(mBootCompletedReceiver, 480 mContext.sendStickyBroadcast(intent); 533 Resources r = mContext.getResources(); 574 PendingIntent pi = PendingIntent.getActivity(mContext, 0, 576 notification.setLatestEventInfo(mContext, title, message, pi) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
BridgeResources.java | 51 private BridgeContext mContext; 110 ((BridgeResources)(Resources.mSystem)).mContext = null; 119 mContext = context; 125 return new BridgeTypedArray(this, mContext, numEntries, platformFile, 137 return Pair.of(attributeName, mContext.getRenderResources().getFrameworkResource( 149 return Pair.of(attributeName, mContext.getRenderResources().getProjectResource( 162 return ResourceHelper.getDrawable(value.getSecond(), mContext); 199 mContext); 260 return new BridgeXmlBlockParser(parser, mContext, mPlatformResourceFlag[0]); 294 return new BridgeXmlBlockParser(parser, mContext, mPlatformResourceFlag[0]) [all...] |
BridgeTypedArray.java | 52 private final BridgeContext mContext; 64 mContext = context; 230 RenderResources res = mContext.getRenderResources(); 318 mResourceData[index], mContext); 363 parser, mContext, resValue.isFramework()); 365 return ColorStateList.createFromXml(mContext.getResources(), blockParser); 660 return mContext.getDynamicIdByStyle((StyleResourceValue)resValue); 675 return mContext.getFrameworkResourceValue( 680 return mContext.getProjectResourceValue( 718 return mContext.getFrameworkResourceValue(ResourceType.ID, idName, defValue) [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
AccountTypeManager.java | 164 private Context mContext; 252 mContext = context; 255 mAccountManager = AccountManager.get(mContext); 280 mContext.registerReceiver(mBroadcastReceiver, filter); 284 mContext.registerReceiver(mBroadcastReceiver, sdFilter); 289 mContext.registerReceiver(mBroadcastReceiver, filter); 383 accountType = new GoogleAccountType(mContext, auth.packageName); 385 accountType = new ExchangeAccountType(mContext, auth.packageName); 390 accountType = new ExternalAccountType(mContext, auth.packageName, false); 413 new ExternalAccountType(mContext, extensionPackage, true) [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
EasOutboxService.java | 91 private final Context mContext; 103 mContext = context; 138 OriginalMessageInfo info = getOriginalMessageInfo(mContext, mMessage.mId); 281 Message.update(mContext, Message.CONTENT_URI, msgId, cv); 305 Message msg = Message.restoreMessageWithId(mContext, msgId); 318 referenceInfo = getOriginalMessageInfo(mContext, msgId); 331 Rfc822Output.writeTo(mContext, msgId, fileOutputStream, smartSend, true); 352 new SendMailEntity(mContext, fileStream, fileLength, modeTag, msg); 450 TrafficStats.setThreadStatsTag(TrafficFlags.getSmtpFlags(mContext, mAccount)); 451 File cacheDir = mContext.getCacheDir() [all...] |