HomeSort by relevance Sort by last modified time
    Searched full:mcontext (Results 26 - 50 of 1493) sorted by null

12 3 4 5 6 7 8 91011>>

  /cts/tests/tests/app/src/android/app/cts/
AlertDialog_BuilderTest.java 52 private Context mContext;
112 mContext = getActivity();
134 new AlertDialog.Builder(mContext);
140 mDrawable = mContext.getResources().getDrawable(android.R.drawable.btn_default);
141 mBuilder = new AlertDialog.Builder(mContext);
152 mDrawable = mContext.getResources().getDrawable(android.R.drawable.btn_default);
153 mBuilder = new AlertDialog.Builder(mContext);
164 mBuilder = new AlertDialog.Builder(mContext);
173 assertEquals(mContext.getText(android.R.string.yes), mButton.getText());
180 mBuilder = new AlertDialog.Builder(mContext);
    [all...]
ProgressDialogTest.java 48 private Context mContext;
64 mContext = mActivity;
65 mProgressDialog = new ProgressDialog(mContext);
71 new ProgressDialog(mContext);
75 new ProgressDialog(mContext, com.android.cts.stub.R.style.Theme_AlertDialog);
79 MockProgressDialog pd = new MockProgressDialog(mContext);
94 mProgressDialog = ProgressDialog.show(mContext, TITLE, MESSAGE);
99 mProgressDialog = ProgressDialog.show(mContext, TITLE, MESSAGE, false);
107 mProgressDialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true);
121 mProgressDialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, false)
    [all...]
IntentServiceTest.java 39 mIntent = new Intent(mContext, IntentServiceStub.class);
45 mContext.stopService(mIntent);
52 Intent addIntent = new Intent(mContext, IntentServiceStub.class);
58 mContext.startService(addIntent);
86 mContext.startService(mIntent);
97 mContext.bindService(mIntent, conn, Context.BIND_AUTO_CREATE);
106 mContext.unbindService(conn);
108 mContext.stopService(mIntent);
  /cts/tests/tests/app/src/android/app/backup/cts/
FileBackupHelperTest.java 25 new FileBackupHelper(mContext);
26 new FileBackupHelper(mContext, "test-file-1");
27 new FileBackupHelper(mContext, "test-file-1", "test-file-2");
SharedPreferencesBackupHelperTest.java 25 new SharedPreferencesBackupHelper(mContext);
26 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1");
27 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1", "test-prefs-group-2");
  /cts/tests/tests/media/src/android/media/cts/
RingtoneTest.java 30 private Context mContext;
41 mContext = getContext();
42 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
43 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI);
55 mDefaultRingUri = RingtoneManager.getActualDefaultRingtoneUri(mContext,
71 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE,
78 assertNotNull(mRingtone.getTitle(mContext));
90 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, null);
91 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI);
96 Uri uri = RingtoneManager.getValidRingtoneUri(mContext);
    [all...]
RingtoneManagerTest.java 39 private Context mContext;
54 mContext = mInstrumentation.getContext();
56 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
59 mDefaultUri = RingtoneManager.getActualDefaultRingtoneUri(mContext,
72 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE,
79 new RingtoneManager(mContext);
92 assertNotNull(RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI));
96 assertNotNull(RingtoneManager.getValidRingtoneUri(mContext));
98 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, uri);
99 assertEquals(uri, RingtoneManager.getActualDefaultRingtoneUri(mContext,
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java 43 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
52 new ImageSpan(mContext, Uri.parse("content://user/a/b"));
53 new ImageSpan(mContext, Uri.parse("content://user/a/b"),
55 new ImageSpan(mContext, Uri.parse("content://user/a/b"),
58 new ImageSpan(mContext, R.drawable.pass);
59 new ImageSpan(mContext, R.drawable.pass, DynamicDrawableSpan.ALIGN_BOTTOM);
60 new ImageSpan(mContext, R.drawable.pass, DynamicDrawableSpan.ALIGN_BASELINE);
73 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
83 imageSpan = new ImageSpan(mContext, Uri.parse(source));
88 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
ContactsPreferences.java 37 private Context mContext;
45 mContext = context;
50 return mContext.getResources().getBoolean(R.bool.config_sort_order_user_changeable);
54 if (mContext.getResources().getBoolean(R.bool.config_default_sort_order_primary)) {
68 mSortOrder = Settings.System.getInt(mContext.getContentResolver(),
79 Settings.System.putInt(mContext.getContentResolver(),
84 return mContext.getResources().getBoolean(R.bool.config_display_order_user_changeable);
88 if (mContext.getResources().getBoolean(R.bool.config_default_display_order_primary)) {
102 mDisplayOrder = Settings.System.getInt(mContext.getContentResolver(),
113 Settings.System.putInt(mContext.getContentResolver()
    [all...]
  /cts/tests/tests/webkit/src/android/webkit/cts/
DateSorterTest.java 27 private Context mContext;
33 mContext = getContext();
37 new DateSorter(mContext);
46 DateSorter dateSorter = new DateSorter(mContext);
60 DateSorter dateSorter = new DateSorter(mContext);
74 DateSorter dateSorter = new DateSorter(mContext);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
AutoRotateController.java 26 private final Context mContext;
42 mContext = context;
56 RotationPolicy.setRotationLock(mContext, !checked);
61 RotationPolicy.unregisterRotationPolicyListener(mContext,
66 mAutoRotation = !RotationPolicy.isRotationLocked(mContext);
69 boolean visible = RotationPolicy.isRotationLockToggleVisible(mContext);
  /cts/tests/tests/widget/src/android/widget/cts/
SimpleCursorTreeAdapterTest.java 61 private Context mContext;
70 mContext = getInstrumentation().getTargetContext();
75 new MockSimpleCursorTreeAdapter(mContext, mGroupCursor,
79 new MockSimpleCursorTreeAdapter(mContext, mGroupCursor,
83 new MockSimpleCursorTreeAdapter(mContext, mGroupCursor,
92 mSimpleCursorTreeAdapter = new MockSimpleCursorTreeAdapter(mContext, mGroupCursor,
96 TextView view = new TextView(mContext);
110 mSimpleCursorTreeAdapter = new MockSimpleCursorTreeAdapter(mContext, mGroupCursor,
113 TextView view = new TextView(mContext);
125 mSimpleCursorTreeAdapter = new MockSimpleCursorTreeAdapter(mContext, mGroupCursor
    [all...]
TimePickerTest.java 37 private Context mContext;
49 mContext = mInstrumentation.getTargetContext();
55 mContext.getResources().getLayout(com.android.cts.stub.R.layout.timepicker);
58 new TimePicker(mContext);
66 new TimePicker(mContext, attrs);
73 new TimePicker(mContext, null);
75 new TimePicker(mContext, attrs, 0);
82 new TimePicker(mContext, null, 0);
83 new TimePicker(mContext, attrs, 0);
84 new TimePicker(mContext, attrs, Integer.MIN_VALUE)
    [all...]
CursorAdapterTest.java 77 final LayoutInflater inflater = LayoutInflater.from(mContext);
94 new MockCursorAdapter(mContext, mCursor);
98 new MockCursorAdapter(mContext, mCursor, true);
113 cursorAdapter.init(mContext, null, false);
114 assertSame(mContext, cursorAdapter.getContext());
121 cursorAdapter.init(mContext, null, true);
122 assertSame(mContext, cursorAdapter.getContext());
129 cursorAdapter.init(mContext, mCursor, true);
130 assertSame(mContext, cursorAdapter.getContext());
148 CursorAdapter cursorAdapter = new MockCursorAdapter(mContext, null)
    [all...]
ExpandableListViewTest.java 45 new ExpandableListView(mContext);
47 new ExpandableListView(mContext, null);
49 new ExpandableListView(mContext, null, 0);
54 new ExpandableListView(mContext, attrs);
55 new ExpandableListView(mContext, attrs, 0);
77 ExpandableListView expandableListView = new ExpandableListView(mContext);
78 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery);
83 ExpandableListView expandableListView = new ExpandableListView(mContext);
92 ExpandableListView expandableListView = new ExpandableListView(mContext);
101 ExpandableListView expandableListView = new ExpandableListView(mContext);
    [all...]
ButtonTest.java 32 XmlPullParser parser = mContext.getResources().getXml(R.layout.togglebutton_layout);
35 new Button(mContext, attrs, 0);
36 new Button(mContext, attrs);
37 new Button(mContext);
CheckBoxTest.java 31 XmlPullParser parser = mContext.getResources().getXml(R.layout.checkbox_layout);
34 new CheckBox(mContext, mAttrSet, 0);
35 new CheckBox(mContext, mAttrSet);
36 new CheckBox(mContext);
EditTextTest.java 35 private Context mContext;
42 mContext = getContext();
43 XmlPullParser parser = mContext.getResources().getXml(R.layout.edittext_layout);
48 new EditText(mContext);
50 new EditText(mContext, null);
52 new EditText(mContext, null, 0);
54 new EditText(mContext, mAttributeSet);
56 new EditText(mContext, mAttributeSet, 0);
78 EditText editText = new EditText(mContext, mAttributeSet);
91 EditText editText = new EditText(mContext, mAttributeSet)
    [all...]
TextSwitcherTest.java 31 private Context mContext;
45 mContext = getInstrumentation().getContext();
49 new TextSwitcher(mContext);
51 new TextSwitcher(mContext, null);
59 TextSwitcher textSwitcher = new TextSwitcher(mContext);
61 TextView tv1 = new TextView(mContext);
62 TextView tv2 = new TextView(mContext);
99 TextSwitcher textSwitcher = new TextSwitcher(mContext);
101 TextView tv1 = new TextView(mContext);
102 TextView tv2 = new TextView(mContext);
    [all...]
  /frameworks/base/core/java/android/hardware/location/
GeofenceHardwareService.java 34 private Context mContext;
38 mContext = this;
39 mGeofenceHardwareImpl = GeofenceHardwareImpl.getInstance(mContext);
72 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
79 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
87 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
96 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
104 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
112 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
121 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
PhoneSubInfo.java 35 private Context mContext;
46 mContext = phone.getContext();
67 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
77 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
86 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
94 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
103 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
112 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
121 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
130 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE")
    [all...]
  /cts/tests/tests/text/src/android/text/format/cts/
DateUtilsTest.java 32 private Context mContext;
37 mContext = getContext();
43 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
63 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
79 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
87 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
132 assertNotNull(DateUtils.getRelativeTimeSpanString(mContext, mBaseTime - DAY_DURATION, true));
133 assertNotNull(DateUtils.getRelativeTimeSpanString(mContext, mBaseTime - DAY_DURATION));
138 assertNotNull(DateUtils.getRelativeDateTimeString(mContext,
146 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US))
    [all...]
  /frameworks/base/core/tests/coretests/src/android/app/activity/
MetaDataTest.java 59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(),
88 TypedArray a = mContext.obtainStyledAttributes(xml,
99 ComponentName cn = new ComponentName(mContext, LocalActivity.class);
100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo(
105 ai = mContext.getPackageManager().getActivityInfo(cn, 0);
112 ComponentName cn = new ComponentName(mContext, LocalReceiver.class);
113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo(
118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0);
125 ComponentName cn = new ComponentName(mContext, LocalService.class);
126 ServiceInfo si = mContext.getPackageManager().getServiceInfo
    [all...]
  /frameworks/compile/slang/
slang_rs_exportable.h 34 RSContext *mContext;
40 : mContext(Context),
54 inline bool isKeep() const { return (mContext == NULL); }
58 inline RSContext *getRSContext() const { return mContext; }
  /frameworks/testing/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
InstrumentationUiAutomatorBridge.java 32 private final Context mContext;
36 mContext = context;
41 mContext.getSystemService(Service.WINDOW_SERVICE);
53 mContext.getSystemService(Service.POWER_SERVICE);

Completed in 670 milliseconds

12 3 4 5 6 7 8 91011>>