/cts/tests/tests/widget/src/android/widget/cts/ |
CursorTreeAdapterTest.java | 113 final LayoutInflater inflater = LayoutInflater.from(mContext); 140 new MockCursorTreeAdapter(mGroupCursor, mContext); 144 new MockCursorTreeAdapter(mGroupCursor, mContext, true); 150 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 161 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 172 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 181 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); 192 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 230 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 255 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); [all...] |
ProgressBarTest.java | 36 private Context mContext; 41 mContext = getInstrumentation().getTargetContext(); 45 new ProgressBar(mContext); 47 new ProgressBar(mContext, null); 49 new ProgressBar(mContext, null, android.R.attr.progressBarStyle); 53 ProgressBar progressBar = new ProgressBar(mContext); 63 progressBar = new ProgressBar(mContext, null, android.R.attr.progressBarStyleHorizontal); 74 ProgressBar progressBar = new ProgressBar(mContext); 91 ProgressBar progressBar = new ProgressBar(mContext, null, 109 ProgressBar progressBar = new ProgressBar(mContext, null [all...] |
AbsSpinnerTest.java | 43 private Context mContext; 52 mContext = getInstrumentation().getTargetContext(); 57 new Spinner(mContext); 59 new Spinner(mContext, null); 61 new Spinner(mContext, null, com.android.internal.R.attr.spinnerStyle); 63 new Gallery(mContext); 64 new Gallery(mContext, null); 65 new Gallery(mContext, null, 0); 67 XmlPullParser parser = mContext.getResources().getXml(R.layout.gallery_test); 69 new Gallery(mContext, attrs) [all...] |
ResourceCursorAdapterTest.java | 37 private Context mContext; 47 mContext = getInstrumentation().getTargetContext(); 48 LayoutInflater layoutInflater = (LayoutInflater) mContext.getSystemService( 55 MockResourceCursorAdapter adapter = new MockResourceCursorAdapter(mContext, -1, null); 60 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); 65 adapter = new MockResourceCursorAdapter(mContext, 72 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext, 87 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext, 111 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext, 117 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext, [all...] |
/frameworks/base/services/java/com/android/server/usb/ |
UsbService.java | 48 private final Context mContext; 64 settings = new UsbSettingsManager(mContext, new UserHandle(userId)); 72 mContext = context; 74 final PackageManager pm = mContext.getPackageManager(); 87 mContext.registerReceiver(mUserReceiver, userFilter, null, null); 164 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); 170 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); 201 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); 208 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); 215 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null) [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
RetryScheduler.java | 48 private final Context mContext; 52 mContext = context; 66 mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 99 setRetryAlarm(mContext); 111 Cursor cursor = SqliteWrapper.query(mContext, mContentResolver, 126 DefaultRetryScheme scheme = new DefaultRetryScheme(mContext, retryIndex); 165 SqliteWrapper.delete(mContext, mContext.getContentResolver(), uri, 189 Cursor c = SqliteWrapper.query(mContext, mContext.getContentResolver(), uri [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
WebsiteSettingsPopup.java | 37 private final Context mContext; 47 mContext = context; 48 mDialog = new Dialog(mContext); 58 mContainer = new LinearLayout(mContext); 68 View section = LayoutInflater.from(mContext).inflate(R.layout.website_settings, null); 87 View divider = new View(mContext); 88 final int dividerHeight = (int) (2 * mContext.getResources().getDisplayMetrics().density); 97 mCertificateViewer = new TextView(mContext); 111 mMoreInfoLink = new TextView(mContext); 122 ScrollView scrollView = new ScrollView(mContext); [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/invalidation/ |
InvalidationController.java | 34 private final Context mContext; 46 registerIntent.setClass(mContext, InvalidationService.class); 47 mContext.startService(registerIntent); 58 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); 75 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); 80 registerIntent.setClass(mContext, InvalidationService.class); 81 mContext.startService(registerIntent); 88 Intent intent = new Intent(mContext, InvalidationService.class); 89 mContext.startService(intent); 96 Intent intent = new Intent(mContext, InvalidationService.class) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
NotificationImportExportListener.java | 48 private final Activity mContext; 52 mContext = activity; 61 Toast.makeText(mContext, text, Toast.LENGTH_LONG).show(); 72 message = mContext.getString(R.string.vcard_import_will_start_message, displayName); 74 displayName = mContext.getString(R.string.vcard_unknown_filename); 75 message = mContext.getString( 87 final Notification notification = constructProgressNotification(mContext, 101 mContext.getString(R.string.progress_notifier_message, 105 final String description = mContext.getString(R.string.importing_vcard_description, 109 mContext.getApplicationContext(), VCardService.TYPE_IMPORT, description, tickerText [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
BitmapDrawableTest.java | 48 private Context mContext; 53 mContext = getInstrumentation().getTargetContext(); 74 new BitmapDrawable(mContext.getResources()); 76 new BitmapDrawable(mContext.getResources(), bitmap); 78 new BitmapDrawable(mContext.getFilesDir().getPath()); 85 new BitmapDrawable(mContext.getResources(), (String) null); 89 new BitmapDrawable(mContext.getResources(), (InputStream) null); 95 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); 111 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); 124 InputStream source = mContext.getResources().openRawResource(R.raw.testimage) [all...] |
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
TestService.java | 595 Context mContext; 602 mContext = context; 606 XmlResourceParser parser = mContext.getResources().getLayout(R.xml.simple); 613 Context mContext; 622 mContext = context; 623 mParser = mContext.getResources().getLayout(R.xml.simple); 652 TypedArray a = mContext.obtainStyledAttributes(mAttrs, 660 Context mContext; 667 mContext = context; 671 SimpleInflater inf = new SimpleInflater(mContext); [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
ReportExporter.java | 43 private final Context mContext; 47 this.mContext = context; 55 return mContext.getString(R.string.no_storage); 59 TestResultsReport report = new TestResultsReport(mContext, mAdapter); 63 return mContext.getString(R.string.test_results_error); 78 return mContext.getString(R.string.no_storage); 89 return mContext.getString(R.string.report_saved, reportFile.getPath()); 105 new AlertDialog.Builder(mContext)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
ServReqRemoveRequestTestCase.java | 57 mReason = mContext.getString(R.string.p2p_add_service_request_error); 62 mReason = mContext.getString(R.string.p2p_add_service_request_error); 67 mReason = mContext.getString(R.string.p2p_add_service_request_error); 72 mReason = mContext.getString(R.string.p2p_add_service_request_error); 81 mReason = mContext.getString(R.string.p2p_remove_service_request_error); 86 mReason = mContext.getString(R.string.p2p_remove_service_request_error); 91 mReason = mContext.getString(R.string.p2p_remove_service_request_error); 113 mReason = mContext.getString(R.string.p2p_discover_services_error);
|
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...] |
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/ |
OAuth2TokenServiceTest.java | 22 private AdvancedMockContext mContext; 30 mContext = new AdvancedMockContext(getInstrumentation().getTargetContext()); 31 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); 32 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); 38 String[] accounts = OAuth2TokenService.getAccounts(mContext); 49 String[] accounts = OAuth2TokenService.getAccounts(mContext); 64 String[] accounts = OAuth2TokenService.getAccounts(mContext); 103 mContext, null, account, scope, 5, TimeUnit.SECONDS);
|
/cts/tests/tests/view/src/android/view/cts/ |
GestureDetectorTest.java | 30 private Context mContext; 41 mContext = getInstrumentation().getTargetContext(); 55 new GestureDetector(mContext, new SimpleOnGestureListener(), new Handler()); 56 new GestureDetector(mContext, new SimpleOnGestureListener());
|
ViewStubTest.java | 41 private Context mContext; 51 mContext = getInstrumentation().getContext(); 60 new ViewStub(mContext); 62 new ViewStub(mContext, 10); 64 new ViewStub(mContext, attrs); 66 new ViewStub(mContext, attrs, 30); 70 ViewStub viewStub = new ViewStub(mContext); 99 final ViewStub viewStub2 = new ViewStub(mContext); 110 ViewStub viewStub = new ViewStub(mContext); 123 ViewStub viewStub = new ViewStub(mContext); [all...] |
/frameworks/base/services/java/com/android/server/ |
SerialService.java | 28 private final Context mContext; 32 mContext = context; 38 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null); 53 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null);
|
/packages/apps/Browser/src/com/android/browser/ |
BrowserWebViewFactory.java | 29 private final Context mContext; 32 mContext = context; 37 return new BrowserWebView(mContext, attrs, defStyle, privateBrowsing); 58 final PackageManager pm = mContext.getPackageManager();
|
/packages/apps/Calculator/src/com/android/calculator2/ |
Persist.java | 33 private Context mContext; 39 this.mContext = context; 52 InputStream is = new BufferedInputStream(mContext.openFileInput(FILE_NAME), 8192); 71 OutputStream os = new BufferedOutputStream(mContext.openFileOutput(FILE_NAME, 0), 8192);
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
ContactDetailTest.java | 28 private ContactsMockContext mContext; 38 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); 39 mContactsProvider = mContext.getContactsProvider(); 40 setActivityContext(mContext);
|
/packages/apps/Mms/src/com/android/mms/util/ |
DownloadManager.java | 62 private final Context mContext; 113 mContext = context; 190 NotificationInd nInd = (NotificationInd) PduPersister.getPduPersister(mContext) 196 Toast.makeText(mContext, R.string.service_message_not_found, 200 SqliteWrapper.delete(mContext, mContext.getContentResolver(), uri, null, null); 213 Toast.makeText(mContext, getMessage(uri), 228 SqliteWrapper.update(mContext, mContext.getContentResolver(), 237 Toast.makeText(mContext, errStr, Toast.LENGTH_LONG).show() [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
MockIconLoader.java | 34 private final Context mContext; 37 mContext = context; 45 mContext.getResources().getDrawable(android.R.drawable.star_on)); 55 .authority(mContext.getPackageName())
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TargetPackageInfoGetterTask.java | 44 private Context mContext; 49 mContext = context; 55 final PackageManager pm = mContext.getPackageManager(); 56 mContext = null; // Bazooka-powered anti-leak device
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/identity/ |
SettingsSecureBasedIdentificationGenerator.java | 22 private final Context mContext; 27 mContext = context.getApplicationContext(); 44 return Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID);
|