Searched refs:getContext (Results 1 - 25 of 378) sorted by relevance

1234567891011>>

/packages/apps/Email/tests/src/com/android/emailcommon/
H A DDeviceTests.java29 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
36 final String deviceId = Device.getConsistentDeviceId(getContext());
37 final String deviceId2 = Device.getConsistentDeviceId(getContext());
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarRecentSuggestionsProvider.java29 setupSuggestions(Utils.getSearchAuthority(getContext()), MODE);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DAbstractInternalSource.java48 return getContext().getPackageName();
56 return getContext().getResources().getDrawable(getSourceIconResource());
60 return Uri.parse("android.resource://" + getContext().getPackageName()
67 return QsbApplication.get(getContext()).getVersionCode();
H A DAppsCorpus.java47 return getContext().getText(R.string.corpus_label_apps);
52 return getContext().getText(R.string.corpus_hint_apps);
57 return getContext().getResources().getDrawable(R.drawable.corpus_icon_apps);
62 return Util.getResourceUri(getContext(), R.drawable.corpus_icon_apps);
72 return getContext().getText(R.string.corpus_description_apps);
93 ComponentName name = getComponentName(getContext(), R.string.apps_search_activity);
97 ActivityInfo ai = intent.resolveActivityInfo(getContext().getPackageManager(), 0);
H A DQsbApplication.java90 protected Context getContext() { method in class:QsbApplication
97 PackageManager pm = getContext().getPackageManager();
98 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), 0);
178 return new Config(getContext());
190 return new SearchSettingsImpl(getContext(), getConfig());
207 SearchableCorpora corpora = new SearchableCorpora(getContext(), getSettings(), sources,
233 return new SearchableSources(getContext(), getMainThreadHandler(),
239 return new SearchableCorpusFactory(getContext(), getConfig(), getSettings(),
284 return ShortcutRepositoryImplLog.create(getContext(), getConfig(), getCorpora(),
374 return new DefaultSuggestionViewFactory(getContext());
[all...]
H A DVoiceSearch.java43 protected Context getContext() { method in class:VoiceSearch
100 return getContext().getPackageManager().getPackageInfo(ci.packageName, 0).versionCode;
108 return createVoiceSearchIntent().resolveActivity(getContext().getPackageManager());
H A DAbstractCorpus.java36 protected Context getContext() { method in class:AbstractCorpus
/packages/apps/Email/tests/src/com/android/email/activity/
H A DUiUtilitiesTests.java33 assertEquals("0B", UiUtilities.formatSize(getContext(), 0));
34 assertEquals("1B", UiUtilities.formatSize(getContext(), 1));
35 assertEquals("1023B", UiUtilities.formatSize(getContext(), 1023));
36 assertEquals("1KB", UiUtilities.formatSize(getContext(), 1024));
37 assertEquals("1023KB", UiUtilities.formatSize(getContext(), 1024 * 1024 - 1));
38 assertEquals("1MB", UiUtilities.formatSize(getContext(), 1024 * 1024));
39 assertEquals("1023MB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024 - 1));
40 assertEquals("1GB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024));
41 assertEquals("5GB", UiUtilities.formatSize(getContext(), 5L * 1024 * 1024 * 1024));
45 final Context c = getContext();
[all...]
/packages/apps/Mms/tests/src/com/android/mms/util/
H A DVerifyRecipientUnitTests.java42 Context context = getContext();
53 Conversation.verifySingleRecipient(getContext(), mThreadId1, "(415) 232-4567"),
57 Conversation.verifySingleRecipient(getContext(), mThreadId1, " 232-4567"),
H A DSendIntentTests.java43 getContext().startService(intent);
/packages/apps/Email/tests/src/com/android/email/
H A DVendorPolicyLoaderTest.java31 mTestApkPackageName = getContext().getPackageName() + ".tests";
44 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), "no.such.package",
52 final Context c = getContext();
63 MockVendorPolicy.inject(getContext());
64 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
91 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), mTestApkPackageName,
112 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
144 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoPriorityResolverTest.java35 PhotoPriorityResolver resolver = new PhotoPriorityResolver(getContext());
H A DSynchronousContactsProvider2.java163 SQLiteDatabase db = getDatabaseHelper(getContext()).getWritableDatabase();
172 SQLiteDatabase db = getDatabaseHelper(getContext()).getReadableDatabase();
177 SQLiteDatabase db = getDatabaseHelper(getContext()).getReadableDatabase();
184 SQLiteDatabase db = getDatabaseHelper(getContext()).getWritableDatabase();
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DHtmlUtilsTest.java51 assertNull(HtmlUtils.postprocess(getContext(), null));
57 HtmlUtils.postprocess(getContext(), new SpannedString(text)).toString());
60 HtmlUtils.postprocess(getContext(), new SpannableStringBuilder(text)).toString());
69 checkPostProcess(HtmlUtils.postprocess(getContext(), builder));
72 checkPostProcess(HtmlUtils.postprocess(getContext(), new SpannedString(builder)));
85 checkPostProcess(HtmlUtils.postprocess(getContext(), builder));
88 checkPostProcess(HtmlUtils.postprocess(getContext(), new SpannedString(builder)));
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmPreference.java46 Settings.System.putString(getContext().getContentResolver(),
55 return RingtoneManager.getActualDefaultRingtoneUri(getContext(),
72 getContext(), params[0]);
74 r = RingtoneManager.getRingtone(getContext(),
78 return r.getTitle(getContext());
/packages/apps/Settings/src/com/android/settings/
H A DDefaultRingtonePreference.java48 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);
53 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiConfigUiBase.java28 public Context getContext(); method in interface:WifiConfigUiBase
/packages/apps/Browser/src/com/android/browser/
H A DHistoryItem.java84 Browser.saveBookmark(getContext(), getName(), mUrl);
86 Bookmarks.removeFromBookmarks(getContext(),
87 getContext().getContentResolver(), mUrl, getName());
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
H A DProviderTestCase3.java50 return getContext().getResources();
57 return getContext().getDir("mockcontext2_" + name, mode);
62 return getContext().getPackageName();
67 return getContext().getSharedPreferences("mockcontext2_" + name, mode);
121 getContext(), // The context that file methods are delegated to
/packages/apps/Exchange/tests/src/com/android/exchange/
H A DCalendarSyncEnablerTest.java61 for (Account account : AccountManager.get(getContext()).getAccounts()) {
93 CalendarSyncEnabler enabler = new CalendarSyncEnabler(getContext());
111 enabler = new CalendarSyncEnabler(getContext());
160 for (Account account : AccountManager.get(getContext()).getAccounts()) {
181 if (AccountManager.get(getContext()).getAccountsByType(EAT).length > 0) {
186 CalendarSyncEnabler enabler = new CalendarSyncEnabler(getContext());
197 CalendarSyncEnabler enabler = new CalendarSyncEnabler(getContext());
205 ((NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE))
210 return AccountManager.get(getContext()).getAccountsByType(
220 AccountManager.get(getContext())
[all...]
/packages/apps/Phone/src/com/android/phone/
H A DCdmaSystemSelectListPreference.java71 Secure.getInt(mPhone.getContext().getContentResolver(),
84 Secure.putInt(mPhone.getContext().getContentResolver(),
121 mPhone.getContext().getContentResolver(),
131 mPhone.getContext().getContentResolver(),
150 Secure.putInt(mPhone.getContext().getContentResolver(),
162 Secure.putInt(mPhone.getContext().getContentResolver(),
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DAbstractGoogleSource.java72 return getContext().getString(R.string.google_search_hint);
76 return getContext().getString(R.string.google_search_label);
84 return getContext().getString(R.string.google_search_description);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/
H A DPreferenceControllerFactory.java43 protected Context getContext() { method in class:PreferenceControllerFactory
52 addController(new SearchableItemsController(mSettings, corpora, getContext()), p);
54 ShortcutRepository shortcuts = QsbApplication.get(getContext()).getShortcutRepository();
/packages/apps/Camera/src/com/android/camera/ui/
H A DInLineSettingRestore.java36 getContext().getString(R.string.pref_restore_detail));
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/
H A DCallLogAdapterTest.java56 new ContactInfoHelper(getContext(), TEST_COUNTRY_ISO) {
66 mAdapter = new TestCallLogAdapter(getContext(), fakeCallFetcher, fakeContactInfoHelper);
71 mView = new View(getContext());
72 mView.setTag(CallLogListItemViews.createForTest(getContext()));
87 mAdapter.bindStandAloneView(mView, getContext(), mCursor);
105 mAdapter.bindStandAloneView(mView, getContext(), mCursor);
123 mAdapter.bindStandAloneView(mView, getContext(), mCursor);
138 mAdapter.bindStandAloneView(mView, getContext(), mCursor);
153 mAdapter.bindStandAloneView(mView, getContext(), mCursor);

Completed in 615 milliseconds

1234567891011>>