HomeSort by relevance Sort by last modified time
    Searched full:getcontext (Results 176 - 200 of 4335) sorted by null

1 2 3 4 5 6 78 91011>>

  /frameworks/base/core/tests/coretests/src/android/app/activity/
BroadcastTest.java 180 getContext().registerReceiver(mReceiver, filter, permission, null);
192 getContext().unregisterReceiver(mReceiver);
279 getContext().sendOrderedBroadcast(
314 Intent sticky = getContext().registerReceiver(null, filter);
330 Intent sticky = getContext().registerReceiver(null, filter);
344 Intent sticky = getContext().registerReceiver(null, filter);
376 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED));
391 getContext().sendOrderedBroadcast(
401 getContext().sendBroadcast(
418 getContext().sendOrderedBroadcast
    [all...]
  /packages/apps/Dialer/InCallUI/src/com/android/incallui/
AccessibleAnswerFragment.java 52 mGestureDetector = new GestureDetector(getContext(), new SimpleOnGestureListener() {
65 onAnswer(VideoProfile.STATE_AUDIO_ONLY, getContext());
73 onDecline(getContext());
150 onDecline(getContext());
155 onAnswer(VideoProfile.STATE_AUDIO_ONLY, getContext());
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
FramedTextButton.java 64 setText(getContext().getString(R.string.curves_channel_rgb));
68 setText(getContext().getString(R.string.curves_channel_red));
72 setText(getContext().getString(R.string.curves_channel_green));
76 setText(getContext().getString(R.string.curves_channel_blue));
92 TypedArray a = getContext().obtainStyledAttributes(
  /packages/apps/Settings/src/com/android/settings/
AccountPreference.java 136 return getContext().getString(R.string.accessibility_sync_enabled);
138 return getContext().getString(R.string.accessibility_sync_disabled);
140 return getContext().getString(R.string.accessibility_sync_error);
142 return getContext().getString(R.string.accessibility_sync_in_progress);
145 return getContext().getString(R.string.accessibility_sync_error);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/
AccountsChangedReceiverTests.java 41 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));
  /cts/tests/tests/content/src/android/content/res/cts/
TypedArrayTest.java 64 mTypedArray = getContext().getTheme().obtainStyledAttributes(R.style.Whatever, R.styleable.style1);
74 final TypedArray t = getContext().getTheme().obtainStyledAttributes(
100 final TypedArray t = getContext().getTheme().obtainStyledAttributes(
107 assertEquals(getContext().getResources(), t.getResources());
114 final TypedArray t = getContext().getTheme().obtainStyledAttributes(
167 final TypedArray t = getContext().getTheme().obtainStyledAttributes(
179 final TypedArray t = getContext().getTheme().obtainStyledAttributes(
196 final ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(getContext(), 0);
204 final XmlResourceParser parser = getContext().getResources().getXml(R.xml.test_color);
208 final TypedArray ta = getContext().getResources().obtainAttributes(set
    [all...]
  /packages/apps/Settings/src/com/android/settings/datausage/
CellDataPreference.java 62 mTelephonyManager = TelephonyManager.from(getContext());
84 mListener.setListener(true, mSubId, getContext());
89 mListener.setListener(false, mSubId, getContext());
98 mSubscriptionManager = SubscriptionManager.from(getContext());
99 mTelephonyManager = TelephonyManager.from(getContext());
113 MetricsLogger.action(getContext(), MetricsEvent.ACTION_CELL_DATA_TOGGLE, !mChecked);
121 if (!Utils.showSimCardTile(getContext()) ||
137 if (Utils.showSimCardTile(getContext())) {
191 ? getContext().getResources().getString(R.string.sim_selection_required_pref)
195 builder.setMessage(getContext().getString(R.string.sim_change_data_message
    [all...]
  /external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
VideoCapturerAndroidTest.java 46 getInstrumentation().getContext(), true, true, true));
60 new Camera2Enumerator(getInstrumentation().getContext());
169 capturer, cameraEvents, getInstrumentation().getContext());
179 getInstrumentation().getContext());
190 getInstrumentation().getContext());
219 getInstrumentation().getContext());
229 getInstrumentation().getContext());
241 capturer, getInstrumentation().getContext());
252 capturer, getInstrumentation().getContext());
263 capturer, getInstrumentation().getContext());
    [all...]
  /packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
BlockedNumberProvider.java 108 mDbHelper = BlockedNumberDatabaseHelper.getInstance(getContext());
109 mBackupManager = new BackupManager(getContext());
134 getContext().getContentResolver().notifyChange(blockedUri, null);
157 final String e164Number = Utils.getE164Number(getContext(), phoneNumber,
205 getContext().getContentResolver().notifyChange(uri, null);
266 cursor.setNotificationUri(getContext().getContentResolver(), uri);
360 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, null);
378 final String e164Number = Utils.getE164Number(getContext(), phoneNumber, null);
388 final String inE164 = Utils.getE164Number(getContext(), phoneNumber, null); // may be empty.
422 UserManager userManager = getContext().getSystemService(UserManager.class)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
PaintDrawableTest.java 117 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), parser, attr));
124 assertFalse(new MyPaintDrawable().inflateTag("", getContext().getResources(), parser,
130 new MyPaintDrawable().inflateTag(null, getContext().getResources(), parser, attr);
151 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), null, attr));
155 new MyPaintDrawable().inflateTag("padding", getContext().getResources(), parser, null);
167 assertTrue(paintDrawable.inflateTag("corners", getContext().getResources(), parser, attr));
172 return getContext().getResources().getXml(R.drawable.paintdrawable_attr);
  /external/skia/src/gpu/
GrGpuResource.cpp 18 SkASSERT(gpu->getContext());
19 SkASSERT(gpu->getContext()->getResourceCache());
20 return gpu->getContext()->getResourceCache();
82 const GrContext* GrGpuResource::getContext() const {
84 return fGpu->getContext();
90 GrContext* GrGpuResource::getContext() {
92 return fGpu->getContext();
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
TileLifecycleManagerTests.java 60 mStateManager = new TileLifecycleManager(mHandler, getContext(),
65 getContext().registerReceiver(mReceiver, new IntentFilter(TILE_UPDATE_BROADCAST));
75 getContext().unregisterReceiver(mReceiver);
171 PackageManager pm = getContext().getPackageManager();
172 pm.setComponentEnabledSetting(new ComponentName(getContext(), FakeTileService.class),
178 pm.setComponentEnabledSetting(new ComponentName(getContext(), FakeTileService.class),
189 getContext().sendBroadcast(new Intent(FakeTileService.ACTION_KILL));
  /frameworks/support/v17/tests/src/android/support/v17/leanback/app/wizard/
GuidedStepAttributesTest.java 61 Intent intent = new Intent(mInstrumentation.getContext(),
63 Resources res = mInstrumentation.getContext().getResources();
89 actionList.add(new GuidedAction.Builder(mInstrumentation.getContext())
153 Intent intent = new Intent(mInstrumentation.getContext(),
155 Resources res = mInstrumentation.getContext().getResources();
195 actionList.add(new GuidedAction.Builder(mInstrumentation.getContext())
203 actionList.add(new GuidedAction.Builder(mInstrumentation.getContext())
277 assertTrue(mInstrumentation.getContext().getResources().getString(
282 assertTrue(mInstrumentation.getContext().getResources().getString(
287 assertTrue(mInstrumentation.getContext().getResources().getString
    [all...]
  /packages/apps/Settings/src/com/android/settings/notification/
ImportanceSeekBarPreference.java 172 return getContext().getString(R.string.notification_importance_blocked);
174 return getContext().getString(R.string.notification_importance_min);
176 return getContext().getString(R.string.notification_importance_low);
178 return getContext().getString(R.string.notification_importance_default);
180 return getContext().getString(R.string.notification_importance_high);
182 return getContext().getString(R.string.notification_importance_max);
184 return getContext().getString(R.string.notification_importance_unspecified);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
ResetActivity.java 72 getContext().getDrawable(R.drawable.ic_settings_backup_restore_132dp));
78 actions.add(new GuidedAction.Builder(getContext())
81 actions.add(new GuidedAction.Builder(getContext())
117 getContext().getDrawable(R.drawable.ic_settings_backup_restore_132dp));
123 actions.add(new GuidedAction.Builder(getContext())
126 actions.add(new GuidedAction.Builder(getContext())
143 getContext().sendBroadcast(resetIntent);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
InputsFragment.java 67 mTvInputManager = (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE);
73 final Context context = getContext();
116 inputPref = new InputPreference(getPreferenceManager().getContext());
181 return Settings.Global.getInt(getContext().getContentResolver(), key, 1) == 1;
185 Settings.Global.putInt(getContext().getContentResolver(), key, value ? 1 : 0);
196 setTitle(inputInfo.loadLabel(getContext()));
204 customLabel = inputInfo.loadLabel(getContext()).toString();
  /cts/tests/tests/tv/src/android/media/tv/cts/
TvContractTest.java 112 if (!Utils.hasTvInputFramework(getContext())) {
116 new ComponentName(getContext(), StubTunerTvInputService.class));
117 mContentResolver = getContext().getContentResolver();
123 if (!Utils.hasTvInputFramework(getContext())) {
274 if (!Utils.hasTvInputFramework(getContext())) {
362 if (!Utils.hasTvInputFramework(getContext())) {
369 Bitmap logo = BitmapFactory.decodeResource(getContext().getResources(), R.drawable.robot);
389 if (!Utils.hasTvInputFramework(getContext())) {
417 if (!Utils.hasTvInputFramework(getContext())) {
456 if (!Utils.hasTvInputFramework(getContext())) {
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteExternalStorageTest.java 140 final List<File> paths = getPrimaryPackageSpecificPaths(getContext());
141 final String packageName = getContext().getPackageName();
163 final File ourCache = getContext().getExternalCacheDir();
165 .replace(getContext().getPackageName(), PACKAGE_NONE));
177 File path = getContext().getExternalCacheDir();
209 Environment.getExternalStorageState(getContext().getCacheDir()));
217 final List<File> paths = getSecondaryPackageSpecificPaths(getContext());
218 final String packageName = getContext().getPackageName();
250 for (File file : getAllPackageSpecificPathsExceptMedia(getContext())) {
253 final List<File> paths = getAllPackageSpecificPathsExceptMedia(getContext());
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ImageCaptureUriExtraToClipDataTest.java 56 getContext().registerReceiver(mReceiver, filter);
58 mTestFile = new File(getContext().getFilesDir() + File.separator + FILE_NAME);
94 getContext().startActivity(intent);
  /cts/tests/tests/content/src/android/content/pm/cts/
ProviderInfoTest.java 38 PackageManager pm = getContext().getPackageManager();
57 final ProviderInfo info = getContext().getPackageManager()
61 getContext().getPackageManager(), "android.support.FILE_PROVIDER_PATHS");
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
RenderScriptTest.java 29 RenderScript mRS = RenderScript.create(getContext());
45 RenderScript mRS = RenderScript.create(getContext());
49 getContext().getApplicationContext());
  /cts/tests/tests/text/src/android/text/cts/
MyanmarTest.java 46 CaptureTextView cviewA = new CaptureTextView(getInstrumentation().getContext());
48 CaptureTextView cviewB = new CaptureTextView(getInstrumentation().getContext());
53 CaptureTextView cviewC = new CaptureTextView(getInstrumentation().getContext());
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
QueueAdapter.java 55 convertView = LayoutInflater.from(getContext())
75 getContext().getDrawable(R.drawable.ic_equalizer_white_24dp));
78 getContext().getDrawable(R.drawable.ic_play_arrow_white_24dp));
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
QueueAdapter.java 55 convertView = LayoutInflater.from(getContext())
75 getContext().getDrawable(R.drawable.ic_equalizer_white_24dp));
78 getContext().getDrawable(R.drawable.ic_play_arrow_white_24dp));
  /development/samples/Support4Demos/src/com/example/android/supportv4/media/
QueueAdapter.java 57 convertView = LayoutInflater.from(getContext())
77 getContext().getResources().getDrawable(R.drawable.ic_equalizer_white_24dp));
80 getContext().getResources().getDrawable(R.drawable.ic_play_arrow_white_24dp));

Completed in 514 milliseconds

1 2 3 4 5 6 78 91011>>