Searched refs:mContext (Results 1 - 25 of 637) sorted by relevance

1234567891011>>

/frameworks/base/tests/CoreTests/android/core/
H A DProxyTest.java29 private Context mContext; field in class:ProxyTest
36 mContext = getContext();
38 String proxyHost = Proxy.getHost(mContext);
39 int proxyPort = Proxy.getPort(mContext);
54 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, null));
55 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, ""));
56 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:"));
57 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad"));
58 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:\\"));
59 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "ba
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/
H A DMffEnvironment.java34 private FilterContext mContext; field in class:MffEnvironment
50 mContext = new FilterContext();
51 mContext.setFrameManager(frameManager);
59 return mContext;
67 mContext.initGLEnvironment(glEnvironment);
85 GLEnvironment glEnv = mContext.getGLEnvironment();
87 mContext.getGLEnvironment().activate();
99 GLEnvironment glEnv = mContext.getGLEnvironment();
101 mContext.getGLEnvironment().deactivate();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRotationLockController.java27 private final Context mContext; field in class:RotationLockController
44 mContext = context;
46 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
47 RotationPolicy.registerRotationPolicyListener(mContext,
57 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
58 return RotationPolicy.isRotationLocked(mContext);
64 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
65 RotationPolicy.setRotationLock(mContext, locked);
70 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
71 return RotationPolicy.isRotationLockToggleVisible(mContext);
[all...]
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DMediaPlayerDataSource.java37 private final Context mContext; field in class:MediaPlayerDataSource
42 mContext = context;
48 mContext = null;
54 if (mContext != null) {
55 mediaPlayer.setDataSource(mContext, mUri);
62 if (mContext != null) {
63 VariableSpeedNative.playFromContext(mContext, mUri);
/frameworks/compile/slang/
H A Dslang_rs_exportable.h34 RSContext *mContext; member in class:slang::RSExportable
40 : mContext(Context),
54 inline bool isKeep() const { return (mContext == NULL); }
58 inline RSContext *getRSContext() const { return mContext; }
H A Dslang_rs_exportable.cpp25 mContext = NULL;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
H A DActionBarPolicy.java33 private Context mContext; field in class:ActionBarPolicy
40 mContext = context;
44 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons);
53 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
59 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb);
63 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
66 Resources r = mContext.getResources();
79 return mContext.getApplicationInfo().targetSdkVersion < 14; // ICE_CREAM_SANDWICH
83 return mContext.getResources().getDimensionPixelSize(
/frameworks/base/core/java/com/android/internal/view/
H A DActionBarPolicy.java33 private Context mContext; field in class:ActionBarPolicy
40 mContext = context;
44 return mContext.getResources().getInteger(R.integer.max_action_buttons);
52 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
56 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
58 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
63 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb);
67 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
70 Resources r = mContext.getResources();
83 return mContext
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DCreateViewTest.java41 new CreateViewTest.ViewOne(mContext);
46 LinearLayout vert = new LinearLayout(mContext);
47 vert.addView(new CreateViewTest.ViewOne(mContext),
53 LinearLayout vert = new LinearLayout(mContext);
55 ViewOne one = new ViewOne(mContext);
58 ViewOne two = new ViewOne(mContext);
61 ViewOne three = new ViewOne(mContext);
64 ViewOne four = new ViewOne(mContext);
67 ViewOne five = new ViewOne(mContext);
70 ViewOne six = new ViewOne(mContext);
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
H A DHapticFeedbackController.java23 private final Context mContext; field in class:HapticFeedbackController
31 mContext = context;
35 mIsGloballyEnabled = checkGlobalSetting(mContext);
44 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE);
47 mIsGloballyEnabled = checkGlobalSetting(mContext);
49 mContext.getContentResolver().registerContentObserver(uri, false, mContentObserver);
57 mContext.getContentResolver().unregisterContentObserver(mContentObserver);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneSubInfo.java35 private Context mContext; field in class:PhoneSubInfo
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
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DMetaDataTest.java59 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
[all...]
/frameworks/testing/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
H A DInstrumentationUiAutomatorBridge.java32 private final Context mContext; field in class:InstrumentationUiAutomatorBridge
36 mContext = context;
41 mContext.getSystemService(Service.WINDOW_SERVICE);
53 mContext.getSystemService(Service.POWER_SERVICE);
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScript.java203 int curCon = mContext;
205 mContext = 0;
213 rsnContextSetSurface(mContext, w, h, sur);
218 rsnContextSetSurfaceTexture(mContext, w, h, sur);
223 rsnContextSetPriority(mContext, p);
228 rsnContextDump(mContext, bits);
233 rsnContextFinish(mContext);
239 rsnContextSendMessage(mContext, id, data);
245 rsnContextBindRootScript(mContext, script);
250 rsnContextBindSampler(mContext, sample
854 int mContext; field in class:RenderScript
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DEmergencyButton.java47 int phoneState = KeyguardUpdateMonitor.getInstance(mContext).getPhoneState();
52 State simState = KeyguardUpdateMonitor.getInstance(mContext).getSimState();
70 KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mInfoCallback);
76 KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mInfoCallback);
82 mLockPatternUtils = new LockPatternUtils(mContext);
83 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
89 int phoneState = KeyguardUpdateMonitor.getInstance(mContext).getPhoneState();
90 State simState = KeyguardUpdateMonitor.getInstance(mContext).getSimState();
106 KeyguardUpdateMonitor.getInstance(mContext).reportEmergencyCallAction(bypassHandler);
120 boolean simLocked = KeyguardUpdateMonitor.getInstance(mContext)
[all...]
/frameworks/base/core/java/android/app/backup/
H A DBackupManager.java61 private Context mContext; field in class:BackupManager
80 mContext = context;
93 sService.dataChanged(mContext.getPackageName());
146 IRestoreSession binder = sService.beginRestoreSession(mContext.getPackageName(),
149 session = new RestoreSession(mContext, binder);
150 result = session.restorePackage(mContext.getPackageName(), observer);
176 session = new RestoreSession(mContext, binder);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
H A DMediaSizeUtils.java68 private final Context mContext; field in class:MediaSizeUtils.MediaSizeComparator
71 mContext = context;
76 String currentStandard = mContext.getString(R.string.mediasize_standard);
77 String lhsStandard = getStandardForMediaSize(mContext, lhs);
78 String rhsStandard = getStandardForMediaSize(mContext, rhs);
94 return lhs.getLabel(mContext.getPackageManager()).
95 compareTo(rhs.getLabel(mContext.getPackageManager()));
/frameworks/support/tests/java/android/support/v4/content/
H A DFileProviderTest.java60 strat.addRoot("tag", mContext.getFilesDir());
62 File file = buildPath(mContext.getFilesDir(), "file.test");
66 file = buildPath(mContext.getFilesDir(), "subdir", "file.test");
80 strat.addRoot("tag", mContext.getFilesDir());
82 File file = buildPath(mContext.getFilesDir(), "..", "file.test");
92 strat.addRoot("tag1", mContext.getFilesDir());
95 File file = buildPath(mContext.getFilesDir(), "file.test");
101 strat.addRoot("tag2", mContext.getFilesDir());
103 file = buildPath(mContext.getFilesDir(), "file.test");
110 strat.addRoot("tag", mContext
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java158 rsnContextDestroy(mContext);
163 rsnContextSetPriority(mContext, p);
168 rsnContextDump(mContext, bits);
173 rsnContextFinish(mContext);
179 rsnContextSendMessage(mContext, id, data);
187 if (mContext != 0) {
188 rsnObjDestroy(mContext, id);
195 return rsnElementCreate(mContext, type, kind, norm, vecSize);
200 return rsnElementCreate2(mContext, elements, names, arraySizes);
205 rsnElementGetNativeData(mContext, i
588 int mContext; field in class:RenderScript
[all...]
/frameworks/base/core/java/android/widget/
H A DShareActionProvider.java122 private final Context mContext; field in class:ShareActionProvider
140 mContext = context;
164 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
165 ActivityChooserView activityChooserView = new ActivityChooserView(mContext);
170 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true);
171 Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId);
200 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
201 PackageManager packageManager = mContext.getPackageManager();
218 mContext.getString(R.string.activity_chooser_view_see_all));
277 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DShareActionProvider.java138 private final Context mContext; field in class:ShareActionProvider
156 mContext = context;
180 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
181 ActivityChooserView activityChooserView = new ActivityChooserView(mContext);
186 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true);
187 Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId);
216 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
217 PackageManager packageManager = mContext.getPackageManager();
234 mContext.getString(R.string.abc_activity_chooser_view_see_all));
300 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
[all...]
/frameworks/base/core/java/android/content/
H A DClipboardManager.java57 private final Context mContext; field in class:ClipboardManager
111 mContext = context;
125 getService().setPrimaryClip(clip, mContext.getOpPackageName());
135 return getService().getPrimaryClip(mContext.getOpPackageName());
147 return getService().getPrimaryClipDescription(mContext.getOpPackageName());
158 return getService().hasPrimaryClip(mContext.getOpPackageName());
169 mPrimaryClipChangedServiceListener, mContext.getOpPackageName());
197 return clip.getItemAt(0).coerceToText(mContext);
216 return getService().hasClipboardText(mContext.getOpPackageName());
/frameworks/base/services/java/com/android/server/wifi/
H A DWifiSettingsStore.java45 private final Context mContext; field in class:WifiSettingsStore
51 mContext = context;
136 final ContentResolver cr = mContext.getContentResolver();
143 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(),
151 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(),
165 final ContentResolver cr = mContext.getContentResolver();
178 final ContentResolver cr = mContext.getContentResolver();
188 return Settings.Global.getInt(mContext.getContentResolver(),
193 return Settings.Global.getInt(mContext.getContentResolver(),
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFrameManager.java29 private FilterContext mContext; field in class:FrameManager
54 return mContext;
58 return mContext != null ? mContext.getGLEnvironment() : null;
65 mContext = context;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTestUtils.java25 private final Context mContext; field in class:CameraBinderTestUtils
29 mContext = context;
52 if (CameraBinderTestUtils.isFeatureAvailable(mContext,
58 if (CameraBinderTestUtils.isFeatureAvailable(mContext,
65 && CameraBinderTestUtils.isFeatureAvailable(mContext,

Completed in 937 milliseconds

1234567891011>>