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

1234567891011>>

/packages/apps/Messaging/tests/src/com/android/messaging/
H A DBugleTestCase.java40 TestUtil.testSetup(super.getContext(), this);
50 public Context getContext() { method in class:BugleTestCase
57 return super.getContext();
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DTvProviderForTesting.java25 return getContext().getPackageName();
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DHelpersTest.java36 IoUtils.deleteContents(getContext().getFilesDir());
37 IoUtils.deleteContents(getContext().getCacheDir());
43 final File expected = new File(getContext().getFilesDir(), "file.mp4");
44 final String actual = Helpers.generateSaveFile(getContext(),
51 final File expected1 = new File(getContext().getFilesDir(), "file.txt");
52 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt",
55 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt");
56 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt",
64 final File expected = new File(getContext().getFilesDir(), "file.mp4");
65 final String actual = Helpers.generateSaveFile(getContext(),
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
H A DContactInteractionUtilTest.java71 calendar.getTimeInMillis(), getContext()));
80 getContext()));
86 assertEquals(getContext().getResources().getString(R.string.yesterday),
88 getContext()));
98 assertEquals(getContext().getResources().getString(R.string.yesterday),
100 getContext(), calendar));
105 assertEquals(getContext().getResources().getString(R.string.tomorrow),
107 getContext()));
115 assertEquals(getContext().getResources().getString(R.string.tomorrow),
117 getContext(), calenda
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/
H A DDeviceTests.java32 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
39 final String deviceId = Device.getConsistentDeviceId(getContext());
40 final String deviceId2 = Device.getConsistentDeviceId(getContext());
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarRecentSuggestionsProvider.java29 setupSuggestions(Utils.getSearchAuthority(getContext()), MODE);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/base/
H A DBaseActivity.java10 * either {@link #getContext} or {@link #getActivity}
14 public Context getContext() { method in class:BaseActivity
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
H A DContactDisplayUtilTests.java46 "expected sms label", ContactDisplayUtils.INTERACTION_SMS, getContext());
50 "expected call label", ContactDisplayUtils.INTERACTION_CALL, getContext());
56 ContactDisplayUtils.INTERACTION_CALL, getContext());
57 CharSequence expected = getContext().getResources().getText(R.string.call_home);
61 ContactDisplayUtils.INTERACTION_CALL, getContext());
62 expected = getContext().getResources().getText(R.string.call_mobile);
68 ContactDisplayUtils.INTERACTION_SMS, getContext());
69 CharSequence expected = getContext().getResources().getText(R.string.sms_home);
73 ContactDisplayUtils.INTERACTION_SMS, getContext());
74 expected = getContext()
[all...]
/packages/apps/Dialer/src/com/android/dialer/settings/
H A DDefaultRingtonePreference.java52 if (!Settings.System.canWrite(getContext())) {
54 getContext(),
55 getContext().getResources().getString(R.string.toast_cannot_write_system_settings),
59 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);
64 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DAbstractInternalSource.java51 return getContext().getPackageName();
61 return getContext().getResources().getDrawable(getSourceIconResource());
66 return Uri.parse("android.resource://" + getContext().getPackageName()
H A DQsbApplication.java83 protected Context getContext() { method in class:QsbApplication
90 PackageManager pm = getContext().getPackageManager();
91 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), 0);
163 return new Config(getContext());
175 return new SearchSettingsImpl(getContext(), getConfig());
260 return new DefaultSuggestionViewFactory(getContext());
276 return new GoogleSuggestClient(getContext(), getMainThreadHandler(),
292 return new VoiceSearch(getContext());
308 return new EventLogLogger(getContext(), getConfig());
330 return new TextAppearanceFactory(getContext());
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DVendorPolicyLoaderTest.java34 mTestApkPackageName = getContext().getPackageName() + ".tests";
47 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), "no.such.package",
55 final Context c = getContext();
66 MockVendorPolicy.inject(getContext());
67 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
94 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), mTestApkPackageName,
115 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
147 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/test/
H A DAndroidTestCase.java38 public AndroidTestCase getContext() { method in class:AndroidTestCase
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoPriorityResolverTest.java35 PhotoPriorityResolver resolver = new PhotoPriorityResolver(getContext());
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/
H A DAccountsChangedReceiverTests.java41 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext());
56 reciever.onReceive(getContext(), new Intent("some-random-action"));
69 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
82 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
95 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
/packages/apps/Settings/src/com/android/settings/applications/
H A DDefaultAssistPreference.java71 Settings.Secure.putString(getContext().getContentResolver(),
73 Settings.Secure.putString(getContext().getContentResolver(),
75 Settings.Secure.putString(getContext().getContentResolver(),
78 setSummary(getContext().getText(R.string.default_assist_none));
89 Settings.Secure.putString(getContext().getContentResolver(),
91 Settings.Secure.putString(getContext().getContentResolver(),
93 Settings.Secure.putString(getContext().getContentResolver(),
105 Settings.Secure.putString(getContext().getContentResolver(),
107 Settings.Secure.putString(getContext().getContentResolver(),
109 Settings.Secure.putString(getContext()
[all...]
H A DDefaultSmsPreference.java41 SmsApplication.getApplicationCollection(getContext());
53 ComponentName appName = SmsApplication.getDefaultSmsApplication(getContext(), true);
63 SmsApplication.setDefaultApplication(value, getContext());
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DImeDetectFrameLayout.java42 if (measuredHeight != getMeasuredHeight() && getContext() instanceof ImeUtil.ImeStateHost) {
43 ((ImeUtil.ImeStateHost) getContext()).onDisplayHeightChanged(heightMeasureSpec);
/packages/apps/Settings/src/com/android/settings/
H A DDefaultRingtonePreference.java47 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);
52 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
H A DBrightnessPreference.java33 getContext().startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG),
/packages/apps/Email/src/com/android/mail/browse/
H A DEmailConversationProvider.java32 sAuthority = getContext().getString(R.string.authority_conversation_provider);
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiConfigUiBase.java27 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/Settings/src/com/android/settings/nfc/
H A DNfcForegroundPreference.java43 setTitle(getContext().getString(R.string.nfc_payment_use_default));
47 addItem(getContext().getString(R.string.nfc_payment_favor_open), true);
48 addItem(getContext().getString(R.string.nfc_payment_favor_default), false);
/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

Completed in 675 milliseconds

1234567891011>>