OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mContext
(Results
226 - 250
of
4082
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/frameworks/base/services/core/java/com/android/server/am/
LockTaskNotify.java
35
private final Context
mContext
;
40
mContext
= context;
51
text =
mContext
.getString(R.string.lock_to_app_toast_locked);
53
text =
mContext
.getString(R.string.lock_to_app_toast);
69
makeAllUserToastAndShow(
mContext
.getString(showString));
73
Toast toast = Toast.makeText(
mContext
, text, Toast.LENGTH_LONG);
/packages/apps/Email/src/com/android/email/activity/setup/
HeadlessAccountSettingsLoader.java
50
private final Context
mContext
;
54
mContext
= context;
59
return Account.restoreAccountWithId(
mContext
, params[0]);
66
intent = AccountServerSettingsActivity.getIntentForIncoming(
mContext
, result);
68
intent = AccountServerSettingsActivity.getIntentForOutgoing(
mContext
, result);
72
mContext
.startActivity(intent);
/packages/apps/Settings/src/com/android/settings/accounts/
EmergencyInfoPreferenceController.java
47
SearchIndexableRaw data = new SearchIndexableRaw(
mContext
);
48
final Resources res =
mContext
.getResources();
56
UserInfo info =
mContext
.getSystemService(UserManager.class).getUserInfo(
58
preference.setSummary(
mContext
.getString(R.string.emergency_info_summary, info.name));
66
mContext
.startActivity(intent);
75
List<ResolveInfo> infos =
mContext
.getPackageManager().queryIntentActivities(intent, 0);
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
UtilsTest.java
47
private Context
mContext
;
57
FakeFeatureFactory.setupForTest(
mContext
);
58
mFakeFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(
mContext
);
64
when(
mContext
.getString(anyInt(), anyString())).thenReturn("testMessage");
65
Utils.showConnectingError(
mContext
, "testName", mock(LocalBluetoothManager.class));
67
verify(mMetricsFeatureProvider).visible(eq(
mContext
), anyInt(),
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
UsbBackendTest.java
46
private Context
mContext
;
55
when(
mContext
.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MIDI))
57
when((Object)
mContext
.getSystemService(UsbManager.class)).thenReturn(mUsbManager);
62
UsbBackend usbBackend = new UsbBackend(
mContext
, mUserRestrictionUtil);
68
UsbBackend usbBackend = new UsbBackend(
mContext
, mUserRestrictionUtil);
72
verify(
mContext
).registerReceiver(eq(null),
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
FailedPasswordWipePreferenceControllerTestBase.java
45
protected Context
mContext
;
58
FakeFeatureFactory.setupForTest(
mContext
);
59
mFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(
mContext
);
72
final Preference preference = new Preference(
mContext
, null, 0, 0);
75
when(
mContext
.getResources().getQuantityString(
97
assertThat(mController.handlePreferenceTreeClick(new Preference(
mContext
, null, 0, 0)))
/packages/apps/Settings/tests/robotests/src/com/android/settings/language/
PhoneLanguagePreferenceControllerTest.java
43
private Context
mContext
;
52
FakeFeatureFactory.setupForTest(
mContext
);
53
mFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(
mContext
);
54
mController = new PhoneLanguagePreferenceController(
mContext
);
59
when(
mContext
.getAssets().getLocales()).thenReturn(new String[]{"en", "de"});
66
when(
mContext
.getAssets().getLocales()).thenReturn(new String[]{"en"});
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
VoicemailPermissions.java
30
private final Context
mContext
;
33
mContext
= context;
43
if (DefaultDialerManager.isDefaultOrSystemDialer(
mContext
, callingPackage)) {
52
if (DefaultDialerManager.isDefaultOrSystemDialer(
mContext
, callingPackage)) {
109
return ContactsPermissions.hasPackagePermission(
mContext
, permission, packageName);
114
return ContactsPermissions.hasCallerOrSelfPermission(
mContext
, permission);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/PoseProvider/
PoseProvider.java
24
protected Context
mContext
;
39
mContext
= context;
/cts/tests/app/src/android/app/cts/
IntentServiceTest.java
41
mIntent = new Intent(
mContext
, IntentServiceStub.class);
47
mContext
.stopService(mIntent);
54
Intent addIntent = new Intent(
mContext
, IntentServiceStub.class);
60
mContext
.startService(addIntent);
88
mContext
.startService(mIntent);
99
mContext
.bindService(mIntent, conn, Context.BIND_AUTO_CREATE);
108
mContext
.unbindService(conn);
110
mContext
.stopService(mIntent);
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
ServiceConnectionHandler.java
33
final Context
mContext
;
50
mContext
= context;
59
if (!
mContext
.bindService(mIntent, this, Context.BIND_WAIVE_PRIORITY)) {
110
mContext
.unbindService(this);
124
if (!
mContext
.bindService(mIntent, mMainBinding, Context.BIND_AUTO_CREATE)) {
139
mContext
.unbindService(mMainBinding);
182
mContext
.unbindService(this);
184
mContext
.bindService(mIntent, this, Context.BIND_WAIVE_PRIORITY);
/cts/tests/tests/permission2/src/android/permission2/cts/
PermissionMaxSdkVersionTest.java
39
int result =
mContext
.checkPermission(UNGRANTABLE_PERMISSION,
52
int result =
mContext
.checkPermission(GRANTABLE_PERMISSION,
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
RecommendationBuilder.java
40
private Context
mContext
;
56
mContext
= context;
105
mNotificationManager = (NotificationManager)
mContext
114
Bitmap image = Picasso.with(
mContext
)
116
.resize(Utils.dpToPx(CARD_WIDTH,
mContext
), Utils.dpToPx(CARD_HEIGHT,
mContext
))
120
new NotificationCompat.Builder(
mContext
)
126
.setColor(
mContext
.getResources().getColor(R.color.fastlane_background))
/external/swiftshader/src/OpenGL/compiler/
ValidateSwitch.cpp
31
mContext
(context),
100
mContext
->error(node->getLine(), "label statement nested inside control flow", nodeStr);
110
mContext
->error(node->getLine(), "duplicate default label", nodeStr);
124
mContext
->error(condition->getLine(),
134
mContext
->error(condition->getLine(), "duplicate case label", nodeStr);
147
mContext
->error(condition->getLine(), "duplicate case label", nodeStr);
198
mContext
->error(loc,
203
mContext
->error(loc,
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
MediaSizeUtils.java
90
private final Context
mContext
;
102
mContext
= context;
104
mCurrentStandard = Integer.parseInt(
mContext
.getString(R.string.mediasize_standard));
116
.parseInt(
mContext
.getString(R.string.mediasize_standard));
144
int lhsStandard = getStandardForMediaSize(
mContext
, lhs);
145
int rhsStandard = getStandardForMediaSize(
mContext
, rhs);
161
return getLabel(
mContext
, lhs).compareTo(getLabel(
mContext
, rhs));
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
UserDetailView.java
49
mAdapter = new Adapter(
mContext
, controller);
60
private final Context
mContext
;
65
mContext
= context;
78
mContext
, convertView, parent);
82
String name = getName(
mContext
, item);
84
v.bind(name, getDrawable(
mContext
, item), item.resolveId());
103
mContext
, tag.enforcedAdmin);
106
MetricsLogger.action(
mContext
, MetricsEvent.QS_SWITCH_USER);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
NotificationTestHelper.java
39
private final Context
mContext
;
47
mContext
= context;
52
Notification publicVersion = new Notification.Builder(
mContext
).setSmallIcon(
54
.setCustomContentView(new RemoteViews(
mContext
.getPackageName(),
57
Notification notification = new Notification.Builder(
mContext
).setSmallIcon(
67
LayoutInflater inflater = (LayoutInflater)
mContext
.getSystemService(
68
mContext
.LAYOUT_INFLATER_SERVICE);
82
entry.createIcons(
mContext
, sbn);
/frameworks/base/services/core/java/com/android/server/location/
CountryDetectorBase.java
35
protected final Context
mContext
;
40
mContext
= ctx;
/frameworks/opt/setupwizard/library/full-support/test/instrumentation/src/com/android/setupwizardlib/test/
GlifPreferenceLayoutTest.java
46
private Context
mContext
;
50
mContext
= new ContextThemeWrapper(InstrumentationRegistry.getContext(),
56
GlifPreferenceLayout layout = new GlifPreferenceLayout(
mContext
);
62
GlifPreferenceLayout layout = new GlifPreferenceLayout(
mContext
);
69
GlifPreferenceLayout layout = new GlifPreferenceLayout(
mContext
);
71
final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(
mContext
),
78
GlifPreferenceLayout layout = new GlifPreferenceLayout(
mContext
);
84
layout.addView(layout.onCreateRecyclerView(LayoutInflater.from(
mContext
), layout,
SetupWizardPreferenceLayoutTest.java
46
private Context
mContext
;
50
mContext
= new ContextThemeWrapper(InstrumentationRegistry.getContext(),
56
SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(
mContext
);
62
SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(
mContext
);
69
SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(
mContext
);
71
final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(
mContext
),
78
SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(
mContext
);
84
layout.addView(layout.onCreateRecyclerView(LayoutInflater.from(
mContext
), layout,
/packages/apps/Car/Overview/src/com/android/car/overview/
StreamViewHolder.java
29
protected Context
mContext
;
33
mContext
= context;
/packages/apps/Car/Settings/src/com/android/car/settings/system/
LegalInfoLineItem.java
30
private final Context
mContext
;
34
mContext
= context;
SystemUpdatesLineItem.java
31
private final Context
mContext
;
36
mContext
= context;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
EncryptionController.java
57
private final Context
mContext
;
96
mContext
= checkNotNull(context, "Context must not be null").getApplicationContext();
116
params.save(getProvisioningParamsFile(
mContext
));
119
if (!mSettingsFacade.isUserSetupCompleted(
mContext
)) {
133
getProvisioningParamsFile(
mContext
).delete();
158
ProvisioningParams params = ProvisioningParams.load(getProvisioningParamsFile(
mContext
));
175
if (mSettingsFacade.isUserSetupCompleted(
mContext
)) {
178
mContext
.startActivity(resumeIntent);
181
mContext
.startActivity(resumeIntent);
196
private final Context
mContext
;
[
all
...]
/packages/apps/Settings/src/com/android/settings/display/
ScreenSaverPreferenceController.java
32
return
mContext
.getResources().getBoolean(
43
preference.setSummary(DreamSettings.getSummaryTextWithDreamName(
mContext
));
Completed in 1598 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>