Searched refs:mContext (Results 1 - 25 of 571) 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/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/base/core/java/com/android/internal/view/
H A DActionBarPolicy.java32 private Context mContext; field in class:ActionBarPolicy
39 mContext = context;
43 return mContext.getResources().getInteger(R.integer.max_action_buttons);
47 return !ViewConfiguration.get(mContext).hasPermanentMenuKey();
51 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
55 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
57 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
62 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb);
66 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
69 Resources r = mContext
[all...]
/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/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/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/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneSubInfo.java32 private Context mContext; field in class:PhoneSubInfo
43 mContext = phone.getContext();
62 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
71 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
79 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
87 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
95 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
103 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
111 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
119 mContext
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DAutoRotateController.java26 private final Context mContext; field in class:AutoRotateController
42 mContext = context;
56 RotationPolicy.setRotationLock(mContext, !checked);
61 RotationPolicy.unregisterRotationPolicyListener(mContext,
66 mAutoRotation = !RotationPolicy.isRotationLocked(mContext);
69 boolean visible = RotationPolicy.isRotationLockToggleVisible(mContext);
H A DAirplaneModeController.java36 private Context mContext; field in class:AirplaneModeController
42 mContext = context;
55 mContext.unregisterReceiver(this);
76 ContentResolver cr = mContext.getContentResolver();
86 mContext.getContentResolver(),
92 mContext.sendBroadcastAsUser(intent, UserHandle.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);
H A DSharedPreferencesBackupHelper.java74 private Context mContext; field in class:SharedPreferencesBackupHelper
88 mContext = context;
97 Context context = mContext;
120 Context context = mContext;
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScript.java132 rsnContextDestroy(mContext);
137 rsnContextSetSurface(mContext, w, h, sur);
142 rsnContextSetSurfaceTexture(mContext, w, h, sur);
147 rsnContextSetPriority(mContext, p);
152 rsnContextDump(mContext, bits);
157 rsnContextFinish(mContext);
163 rsnContextBindRootScript(mContext, script);
168 rsnContextBindSampler(mContext, sampler, slot);
173 rsnContextBindProgramStore(mContext, pfs);
178 rsnContextBindProgramFragment(mContext, p
690 int mContext; field in class:RenderScript
[all...]
/frameworks/base/core/java/android/widget/
H A DShareActionProvider.java127 private final Context mContext; field in class:ShareActionProvider
145 mContext = context;
169 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
170 ActivityChooserView activityChooserView = new ActivityChooserView(mContext);
175 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true);
176 Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId);
205 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
206 PackageManager packageManager = mContext.getPackageManager();
223 mContext.getString(R.string.activity_chooser_view_see_all));
289 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DEmergencyButton.java46 int phoneState = KeyguardUpdateMonitor.getInstance(mContext).getPhoneState();
51 State simState = KeyguardUpdateMonitor.getInstance(mContext).getSimState();
69 KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mInfoCallback);
75 KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mInfoCallback);
81 mLockPatternUtils = new LockPatternUtils(mContext);
82 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
88 int phoneState = KeyguardUpdateMonitor.getInstance(mContext).getPhoneState();
89 State simState = KeyguardUpdateMonitor.getInstance(mContext).getSimState();
116 boolean simLocked = KeyguardUpdateMonitor.getInstance(mContext).isSimLocked();
/frameworks/rs/cpp/
H A DRenderScript.cpp34 mContext = NULL;
45 rsContextDeinitToClient(mContext);
50 rsContextDestroy(mContext);
51 mContext = NULL;
63 mContext = rsContextCreate(mDev, 0, targetApi);
64 if (mContext == 0) {
97 rsContextInitToClient(rs->mContext);
104 RsMessageToClientType r = rsContextPeekMessage(rs->mContext,
116 rsContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen),
H A DScript.cpp32 rsScriptInvokeV(mRS->mContext, getID(), slot, v, len);
42 rsScriptForEach(mRS->mContext, getID(), slot, in_id, out_id, usr, usrLen);
51 rsScriptBindAllocation(mRS->mContext, getID(), BaseObj::getObjID(va), slot);
56 rsScriptSetVarObj(mRS->mContext, getID(), index, (o == NULL) ? 0 : o->getID());
60 rsScriptSetVarV(mRS->mContext, getID(), index, v, len);
/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/services/java/com/android/server/location/
H A DCountryDetectorBase.java35 protected final Context mContext; field in class:CountryDetectorBase
40 mContext = ctx;
/frameworks/compile/libbcc/include/bcc/AndroidBitcode/
H A DABCExpandVAArgPass.h45 llvm::LLVMContext *mContext; member in class:bcc::ABCExpandVAArgPass
51 ABCExpandVAArgPass() : llvm::FunctionPass(ID), mContext(NULL) { }
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DRenderScript.java124 rsnContextDestroy(mContext);
129 rsnContextSetPriority(mContext, p);
134 rsnContextDump(mContext, bits);
139 rsnContextFinish(mContext);
147 if (mContext != 0) {
148 rsnObjDestroy(mContext, id);
155 return rsnElementCreate(mContext, type, kind, norm, vecSize);
160 return rsnElementCreate2(mContext, elements, names, arraySizes);
165 rsnElementGetNativeData(mContext, id, elementData);
171 rsnElementGetSubElements(mContext, i
475 int mContext; field in class:RenderScript
[all...]
/frameworks/base/services/java/com/android/server/
H A DSerialService.java28 private final Context mContext; field in class:SerialService
32 mContext = context;
38 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null);
53 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null);
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxAggregatorManager.java34 private Context mContext; field in class:BordeauxAggregatorManager
39 mAggregatorManager = BordeauxManagerService.getAggregatorManager(mContext);
48 mContext = context;
49 mAggregatorManager = BordeauxManagerService.getAggregatorManager(mContext);
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DAndroidAuthenticator.java33 private final Context mContext; field in class:AndroidAuthenticator
44 mContext = context;
58 final AccountManager accountManager = AccountManager.get(mContext);
84 AccountManager.get(mContext).invalidateAuthToken(mAccount.type, authToken);

Completed in 339 milliseconds

1234567891011>>