HomeSort by relevance Sort by last modified time
    Searched full:mcontext (Results 151 - 175 of 1648) sorted by null

1 2 3 4 5 67 8 91011>>

  /cts/tests/tests/net/src/android/net/http/cts/
ApacheHttpClientTest.java 66 mWebServer = new CtsTestServer(mContext);
67 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
69 mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
71 PackageManager packageManager = mContext.getPackageManager();
146 mContext.registerReceiver(receiver, filter);
152 mContext.unregisterReceiver(receiver);
165 mContext.registerReceiver(connectMobileReceiver, filter);
166 mContext.registerReceiver(disconnectWifiReceiver, filter);
172 mContext.unregisterReceiver(connectMobileReceiver);
173 mContext.unregisterReceiver(disconnectWifiReceiver)
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
TextAppearanceSpanTest.java 29 new TextAppearanceSpan(mContext, 1);
30 new TextAppearanceSpan(mContext, 1, 1);
63 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
66 textAppearanceSpan = new TextAppearanceSpan(mContext, 1, 1);
112 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
115 textAppearanceSpan = new TextAppearanceSpan(mContext, 1, 1);
127 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
130 textAppearanceSpan = new TextAppearanceSpan(mContext, 1, 1);
179 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
184 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
RatingBarTest.java 32 private Context mContext;
44 mContext = getInstrumentation().getContext();
48 new RatingBar(mContext, null, com.android.internal.R.attr.ratingBarStyle);
50 new RatingBar(mContext, null);
52 new RatingBar(mContext);
84 RatingBar ratingBar = new RatingBar(mContext);
94 MockRatingBar mockRatingBar = new MockRatingBar(mContext);
116 RatingBar ratingBar = new RatingBar(mContext);
132 RatingBar ratingBar = new RatingBar(mContext);
150 RatingBar ratingBar = new RatingBar(mContext);
    [all...]
TableRowTest.java 43 Context mContext;
53 mContext = getInstrumentation().getContext();
58 new TableRow(mContext);
60 new TableRow(mContext, null);
64 TableRow tableRow = new TableRow(mContext);
69 tableRow.addView(new TextView(mContext));
77 tableRow.addView(new TextView(mContext));
132 TableRow tableRow = new TableRow(mContext);
144 MockTableRow mockTableRow = new MockTableRow(mContext);
156 MockTableRow mockTableRow = new MockTableRow(mContext);
    [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...]
DateFormatTest.java 36 private Context mContext;
54 mContext = getContext();
55 mContentResolver = mContext.getContentResolver();
56 mIs24HourFormat = DateFormat.is24HourFormat(mContext);
58 mDefaultFormat = Settings.System.getString(mContext.getContentResolver(),
77 assertTrue(DateFormat.is24HourFormat(mContext));
79 assertFalse(DateFormat.is24HourFormat(mContext));
126 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext);
135 dateFormat = DateFormat.getLongDateFormat(mContext);
139 dateFormat = DateFormat.getMediumDateFormat(mContext);
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 39 private Context mContext;
43 mContext = context;
106 ringtoneUri = mContext.getContentResolver().uncanonicalize(canonicalUri);
114 RingtoneManager.setActualDefaultRingtoneUri(mContext, ringtoneType, ringtoneUri);
119 final Uri canonicalUri = mContext.getContentResolver().canonicalize(ringtoneUri);
133 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0;
137 mContext.getContentResolver(), name));
153 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
164 mContext.getContentResolver(), GPS, enabled);
188 Configuration conf = mContext.getResources().getConfiguration()
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
PhoneFallbackEventHandler.java 42 Context mContext;
51 mContext = context;
125 mContext.startActivity(intent);
146 mContext.sendOrderedBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF,
159 Configuration config = mContext.getResources().getConfiguration();
169 mContext.startActivity(intent);
200 AudioManager audioManager = (AudioManager)mContext.getSystemService(
253 mContext.startActivity(intent);
261 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE);
268 mTelephonyManager = (TelephonyManager)mContext.getSystemService
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
Config.java 77 private final Context mContext;
86 mContext = context;
90 return mContext;
103 String[] items = mContext.getResources().getStringArray(res);
122 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard);
129 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions);
133 return mContext.getResources().getInteger(R.integer.max_promoted_results);
147 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source);
154 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source);
268 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions)
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
InputDialogContainer.java 48 private final Context mContext;
75 mContext = context;
141 ListView suggestionListView = new ListView(mContext);
143 new DateTimeSuggestionListAdapter(mContext, Arrays.asList(suggestions));
172 mDialog = new AlertDialog.Builder(mContext)
175 .setNegativeButton(mContext.getText(android.R.string.cancel),
219 DatePickerDialog dialog = new DatePickerDialog(mContext,
227 dialog.setTitle(mContext.getText(R.string.date_picker_dialog_title));
231 mContext, 0 /* theme */ ,
234 DateFormat.is24HourFormat(mContext),
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/handover/
BluetoothHeadsetHandover.java 79 final Context mContext;
104 mContext = context;
134 mContext.registerReceiver(mReceiver, filter);
204 toast(mContext.getString(R.string.disconnecting_headset ) + " " +
216 toast(mContext.getString(R.string.disconnected_headset) + " " + mName);
225 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET))
228 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP))
268 toast(mContext.getString(R.string.connecting_headset) + " " + mName + "...");
280 toast(mContext.getString(R.string.connected_headset) + " " + mName);
284 toast (mContext.getString(R.string.connect_headset_failed) + " " + mName)
    [all...]
  /cts/tests/tests/admin/src/android/admin/cts/
DeviceAdminReceiverTest.java 46 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN);
55 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_CHANGED));
59 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_FAILED));
63 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_SUCCEEDED));
67 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED));
71 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_DISABLED));
  /cts/tests/tests/content/src/android/content/pm/cts/
ActivityInfoTest.java 50 ComponentName componentName = new ComponentName(mContext, MockActivity.class);
52 mActivityInfo = mContext.getPackageManager().getActivityInfo(
77 ComponentName componentName = new ComponentName(mContext, MockActivity.class);
79 mActivityInfo = mContext.getPackageManager().getActivityInfo(
96 ComponentName componentName = new ComponentName(mContext, MockActivity.class);
98 mActivityInfo = mContext.getPackageManager().getActivityInfo(
ApplicationInfoTest.java 51 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0);
80 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0);
99 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0);
101 assertNull(mApplicationInfo.loadDescription(mContext.getPackageManager()));
104 assertEquals(mContext.getResources().getString(R.string.hello_world),
105 mApplicationInfo.loadDescription(mContext.getPackageManager()));
  /frameworks/base/core/java/com/android/internal/view/
StandaloneActionMode.java 34 private Context mContext;
45 mContext = context;
66 setTitle(mContext.getString(resId));
71 setSubtitle(mContext.getString(resId));
129 return new MenuInflater(mContext);
144 new MenuPopupHelper(mContext, subMenu).show();
  /frameworks/base/services/java/com/android/server/
DeviceStorageMonitorService.java 89 private Context mContext;
317 mContext = context;
318 mResolver = mContext.getContentResolver();
366 (NotificationManager)mContext.getSystemService(
368 CharSequence title = mContext.getText(
370 CharSequence details = mContext.getText(
372 PendingIntent intent = PendingIntent.getActivityAsUser(mContext, 0, lowMemIntent, 0,
378 notification.setLatestEventInfo(mContext, title, details, intent);
381 mContext.sendStickyBroadcastAsUser(mStorageLowIntent, UserHandle.ALL);
390 (NotificationManager)mContext.getSystemService
    [all...]
UpdateLockService.java 43 Context mContext;
66 mContext = context;
82 mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
94 mContext.enforceCallingOrSelfPermission(PERMISSION, "acquireUpdateLock");
104 mContext.enforceCallingOrSelfPermission(PERMISSION, "releaseUpdateLock");
116 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
  /packages/apps/Contacts/src/com/android/contacts/detail/
ContactDetailPhotoSetter.java 47 private final Context mContext;
55 mContext = context;
70 mContext.getResources().getCompatibilityInfo().applicationScale;
85 Intent photoSelectionIntent = PhotoSelectionActivity.buildIntent(mContext,
91 ContactPhotoManager.getInstance(mContext).cacheBitmap(
94 mContext.startActivity(photoSelectionIntent);
  /packages/apps/Mms/src/com/android/mms/transaction/
SmsSingleRecipientSender.java 59 mDest = Conversation.verifySingleRecipient(mContext, mThreadId, mDest);
69 boolean moved = Sms.moveMessageToFolder(mContext, mUri, Sms.MESSAGE_TYPE_OUTBOX, 0);
87 mContext, 0,
91 mContext,
99 mContext,
113 sentIntents.add(PendingIntent.getBroadcast(mContext, requestCode, intent, 0));
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothEnabler.java 38 private final Context mContext;
55 mContext = context;
79 mContext.registerReceiver(mReceiver, mIntentFilter);
89 mContext.unregisterReceiver(mReceiver);
111 !WirelessSettings.isRadioAllowed(mContext, Settings.Global.RADIO_BLUETOOTH)) {
112 Toast.makeText(mContext, R.string.wifi_in_airplane_mode, Toast.LENGTH_SHORT).show();
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
WidgetCtsService.java 44 Context mContext;
47 mContext = context;
61 RemoteViews rv = new RemoteViews(mContext.getPackageName(), R.layout.list_item);
  /development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/authenticator/
AuthenticatorActivityTest.java 37 private Context mContext;
53 mContext = mInstrumentation.getTargetContext();
70 Intent intent = new Intent(mContext, AuthenticatorActivity.class);
  /external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/identity/
SettingsSecureBasedIdentificationGeneratorTest.java 63 private final AdvancedMockContext mContext;
68 mContext = context;
74 mContext.setFlag(FLAG_ANDROID_ID);
  /frameworks/base/services/java/com/android/server/net/
LockdownVpnTracker.java 66 private final Context mContext;
89 mContext = Preconditions.checkNotNull(context);
97 mConfigIntent = PendingIntent.getActivity(mContext, 0, configIntent, 0);
101 mResetIntent = PendingIntent.getBroadcast(mContext, 0, resetIntent, 0);
212 mContext.registerReceiver(mResetReceiver, resetFilter, CONNECTIVITY_INTERNAL, null);
251 mContext.unregisterReceiver(mResetReceiver);
307 final Notification.Builder builder = new Notification.Builder(mContext);
310 builder.setContentTitle(mContext.getString(titleRes));
311 builder.setContentText(mContext.getString(R.string.vpn_lockdown_config));
316 R.drawable.ic_menu_refresh, mContext.getString(R.string.reset), mResetIntent)
    [all...]
  /frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
Service.java 34 private final Context mContext;
39 mContext = context;
45 return mContext;

Completed in 3389 milliseconds

1 2 3 4 5 67 8 91011>>