Searched refs:mContext (Results 1 - 25 of 810) 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/support/v4/java/android/support/v4/provider/
H A DSingleDocumentFile.java24 private Context mContext; field in class:SingleDocumentFile
29 mContext = context;
50 return DocumentsContractApi19.getName(mContext, mUri);
55 return DocumentsContractApi19.getType(mContext, mUri);
60 return DocumentsContractApi19.isDirectory(mContext, mUri);
65 return DocumentsContractApi19.isFile(mContext, mUri);
70 return DocumentsContractApi19.lastModified(mContext, mUri);
75 return DocumentsContractApi19.length(mContext, mUri);
80 return DocumentsContractApi19.canRead(mContext, mUri);
85 return DocumentsContractApi19.canWrite(mContext, mUr
[all...]
H A DTreeDocumentFile.java23 private Context mContext; field in class:TreeDocumentFile
28 mContext = context;
34 final Uri result = DocumentsContractApi21.createFile(mContext, mUri, mimeType, displayName);
35 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null;
40 final Uri result = DocumentsContractApi21.createDirectory(mContext, mUri, displayName);
41 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null;
51 return DocumentsContractApi19.getName(mContext, mUri);
56 return DocumentsContractApi19.getType(mContext, mUri);
61 return DocumentsContractApi19.isDirectory(mContext, mUri);
66 return DocumentsContractApi19.isFile(mContext, mUr
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DActionBarPolicy.java31 private Context mContext; field in class:ActionBarPolicy
38 mContext = context;
42 return mContext.getResources().getInteger(R.integer.max_action_buttons);
50 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
54 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
56 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
61 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb);
65 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
68 Resources r = mContext.getResources();
81 return 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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRotationLockControllerImpl.java28 private final Context mContext; field in class:RotationLockControllerImpl
41 mContext = context;
55 return RotationPolicy.getRotationLockOrientation(mContext);
59 return RotationPolicy.isRotationLocked(mContext);
63 RotationPolicy.setRotationLock(mContext, locked);
67 return RotationPolicy.isRotationLockToggleVisible(mContext);
73 RotationPolicy.registerRotationPolicyListener(mContext, mRotationPolicyListener,
76 RotationPolicy.unregisterRotationPolicyListener(mContext, mRotationPolicyListener);
87 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext),
88 RotationPolicy.isRotationLockToggleVisible(mContext));
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DGlobalSetting.java28 private final Context mContext; field in class:GlobalSetting
35 mContext = context;
40 return Global.getInt(mContext.getContentResolver(), mSettingName, 0);
44 Global.putInt(mContext.getContentResolver(), mSettingName, value);
50 mContext.getContentResolver().registerContentObserver(
53 mContext.getContentResolver().unregisterContentObserver(this);
H A DSecureSetting.java31 private final Context mContext; field in class:SecureSetting
42 mContext = context;
48 return Secure.getIntForUser(mContext.getContentResolver(), mSettingName, DEFAULT, mUserId);
52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId);
61 mContext.getContentResolver().registerContentObserver(
64 mContext.getContentResolver().unregisterContentObserver(this);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
H A DActionBarPolicy.java35 private Context mContext; field in class:ActionBarPolicy
42 mContext = context;
46 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons);
53 return !ViewConfigurationCompat.hasPermanentMenuKey(ViewConfiguration.get(mContext));
58 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
62 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
64 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs);
69 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb);
73 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
76 Resources r = mContext
[all...]
/frameworks/compile/slang/
H A Dslang_rs_exportable.h34 RSContext *mContext; member in class:slang::RSExportable
40 : mContext(Context),
53 inline bool isKeep() const { return (mContext == NULL); }
57 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/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPrintSpoolerProvider.java28 private final Context mContext; field in class:PrintSpoolerProvider
34 mContext = context;
36 Intent intent = new Intent(mContext, PrintSpoolerService.class);
37 mContext.bindService(intent, this, 0);
46 mContext.unbindService(this);
/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/base/cmds/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/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/base/packages/SystemUI/src/com/android/systemui/settings/
H A DCurrentUserTracker.java28 private Context mContext; field in class:CurrentUserTracker
32 mContext = context;
53 mContext.registerReceiver(this, filter);
57 mContext.unregisterReceiver(this);
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/menu/
H A DBridgeMenuItemImpl.java36 private BridgeContext mContext; field in class:BridgeMenuItemImpl
49 mContext = ((BridgeContext) context);
61 if (actionView != null && mContext != null) {
62 mContext.addViewKey(actionView, viewCookie);
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareService.java35 private Context mContext; field in class:GeofenceHardwareService
39 mContext = this;
40 mGeofenceHardwareImpl = GeofenceHardwareImpl.getInstance(mContext);
77 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
84 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
93 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
100 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
108 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
116 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
125 mContext
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DDrawFrameTask.cpp36 , mContext(NULL)
48 mContext = context;
52 LOG_ALWAYS_FATAL_IF(!mContext, "Lifecycle violation, there's no context to pushLayerUpdate with!");
72 LOG_ALWAYS_FATAL_IF(!mContext, "Cannot drawFrame with no CanvasContext!");
95 mContext->profiler().setDensity(mDensity);
96 mContext->profiler().startFrame(mRecordDurationNanos);
107 CanvasContext* context = mContext;
126 mContext->makeCurrent();
130 mContext->processLayerUpdate(mLayers[i].get());
133 mContext
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneSubInfo.java38 private Context mContext; field in class:PhoneSubInfo
49 mContext = phone.getContext();
69 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
77 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
85 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
94 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
102 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
110 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
118 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE");
126 mContext
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java225 long curCon = mContext;
227 mContext = 0;
235 rsnContextSetSurface(mContext, w, h, sur);
240 rsnContextSetSurfaceTexture(mContext, w, h, sur);
245 rsnContextSetPriority(mContext, p);
250 rsnContextDump(mContext, bits);
255 rsnContextFinish(mContext);
261 rsnContextSendMessage(mContext, id, data);
267 rsnContextBindRootScript(mContext, script);
272 rsnContextBindSampler(mContext, sample
860 long mContext; field in class:RenderScript
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DMediaSizeUtils.java74 private final Context mContext; field in class:MediaSizeUtils.MediaSizeComparator
77 mContext = context;
82 String currentStandard = mContext.getString(R.string.mediasize_standard);
83 String lhsStandard = getStandardForMediaSize(mContext, lhs);
84 String rhsStandard = getStandardForMediaSize(mContext, rhs);
100 return lhs.getLabel(mContext.getPackageManager()).
101 compareTo(rhs.getLabel(mContext.getPackageManager()));
/frameworks/base/services/core/java/com/android/server/am/
H A DLockTaskNotify.java35 private final Context mContext; field in class:LockTaskNotify
41 mContext = context;
43 mContext.getSystemService(Context.ACCESSIBILITY_SERVICE);
52 String text = mContext.getString(isLocked
55 text = mContext.getString(R.string.lock_to_app_toast_accessible);
68 makeAllUserToastAndShow(mContext.getString(showString));
72 Toast toast = Toast.makeText(mContext, text, Toast.LENGTH_LONG);

Completed in 725 milliseconds

1234567891011>>