Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 902) sorted by relevance

12345678910>>...37

/frameworks/support/v4/java/android/support/v4/provider/
DTreeDocumentFile.java23 private Context mContext; field in TreeDocumentFile
28 mContext = context; in TreeDocumentFile()
34 final Uri result = DocumentsContractApi21.createFile(mContext, mUri, mimeType, displayName); in createFile()
35 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null; in createFile()
40 final Uri result = DocumentsContractApi21.createDirectory(mContext, mUri, displayName); in createDirectory()
41 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null; in createDirectory()
51 return DocumentsContractApi19.getName(mContext, mUri); in getName()
56 return DocumentsContractApi19.getType(mContext, mUri); in getType()
61 return DocumentsContractApi19.isDirectory(mContext, mUri); in isDirectory()
66 return DocumentsContractApi19.isFile(mContext, mUri); in isFile()
[all …]
DSingleDocumentFile.java24 private Context mContext; field in SingleDocumentFile
29 mContext = context; in SingleDocumentFile()
50 return DocumentsContractApi19.getName(mContext, mUri); in getName()
55 return DocumentsContractApi19.getType(mContext, mUri); in getType()
60 return DocumentsContractApi19.isDirectory(mContext, mUri); in isDirectory()
65 return DocumentsContractApi19.isFile(mContext, mUri); in isFile()
70 return DocumentsContractApi19.lastModified(mContext, mUri); in lastModified()
75 return DocumentsContractApi19.length(mContext, mUri); in length()
80 return DocumentsContractApi19.canRead(mContext, mUri); in canRead()
85 return DocumentsContractApi19.canWrite(mContext, mUri); in canWrite()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DCreateViewTest.java41 new CreateViewTest.ViewOne(mContext); in testLayout1()
46 LinearLayout vert = new LinearLayout(mContext); in testLayout2()
47 vert.addView(new CreateViewTest.ViewOne(mContext), in testLayout2()
53 LinearLayout vert = new LinearLayout(mContext); in testLayout3()
55 ViewOne one = new ViewOne(mContext); in testLayout3()
58 ViewOne two = new ViewOne(mContext); in testLayout3()
61 ViewOne three = new ViewOne(mContext); in testLayout3()
64 ViewOne four = new ViewOne(mContext); in testLayout3()
67 ViewOne five = new ViewOne(mContext); in testLayout3()
70 ViewOne six = new ViewOne(mContext); in testLayout3()
[all …]
/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java62 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriSimple()
64 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple()
68 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple()
82 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriJumpOutside()
84 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside()
94 strat.addRoot("tag1", mContext.getFilesDir()); in testStrategyUriShortestRoot()
97 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
103 strat.addRoot("tag2", mContext.getFilesDir()); in testStrategyUriShortestRoot()
105 file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
112 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyFileSimple()
[all …]
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java227 long curCon = mContext; in nContextDestroy()
229 mContext = 0; in nContextDestroy()
237 rsnContextSetSurface(mContext, w, h, sur); in nContextSetSurface()
242 rsnContextSetSurfaceTexture(mContext, w, h, sur); in nContextSetSurfaceTexture()
247 rsnContextSetPriority(mContext, p); in nContextSetPriority()
252 rsnContextSetCacheDir(mContext, cacheDir); in nContextSetCacheDir()
257 rsnContextDump(mContext, bits); in nContextDump()
262 rsnContextFinish(mContext); in nContextFinish()
268 rsnContextSendMessage(mContext, id, data); in nContextSendMessage()
274 rsnContextBindRootScript(mContext, script); in nContextBindRootScript()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/backup/
DFullBackupTest.java42 private Context mContext; field in FullBackupTest
51 mContext = getContext(); in setUp()
63 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude()
72 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyInclude()
82 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyExclude()
88 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyExclude()
99 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_includeAndExclude()
105 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
110 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
126 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
DActionBarPolicy.java35 private Context mContext; field in ActionBarPolicy
42 mContext = context; in ActionBarPolicy()
46 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons); in getMaxActionButtons()
53 return !ViewConfigurationCompat.hasPermanentMenuKey(ViewConfiguration.get(mContext)); in showsOverflowMenuButton()
58 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
62 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs()
64 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs); in hasEmbeddedTabs()
69 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs()
73 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar, in getTabContainerHeight()
76 Resources r = mContext.getResources(); in getTabContainerHeight()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java31 private Context mContext; field in ActionBarPolicy
38 mContext = context; in ActionBarPolicy()
42 return mContext.getResources().getInteger(R.integer.max_action_buttons); in getMaxActionButtons()
50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
54 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs()
56 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs()
61 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs()
65 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar, in getTabContainerHeight()
68 Resources r = mContext.getResources(); in getTabContainerHeight()
81 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/
DMffEnvironment.java34 private FilterContext mContext; field in MffEnvironment
50 mContext = new FilterContext(); in MffEnvironment()
51 mContext.setFrameManager(frameManager); in MffEnvironment()
59 return mContext; in getContext()
67 mContext.initGLEnvironment(glEnvironment); in setGLEnvironment()
85 GLEnvironment glEnv = mContext.getGLEnvironment(); in activateGLEnvironment()
87 mContext.getGLEnvironment().activate(); in activateGLEnvironment()
99 GLEnvironment glEnv = mContext.getGLEnvironment(); in deactivateGLEnvironment()
101 mContext.getGLEnvironment().deactivate(); in deactivateGLEnvironment()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRotationLockControllerImpl.java28 private final Context mContext; field in RotationLockControllerImpl
41 mContext = context; in RotationLockControllerImpl()
55 return RotationPolicy.getRotationLockOrientation(mContext); in getRotationLockOrientation()
59 return RotationPolicy.isRotationLocked(mContext); in isRotationLocked()
63 RotationPolicy.setRotationLock(mContext, locked); in setRotationLocked()
67 return RotationPolicy.isRotationLockToggleVisible(mContext); in isRotationLockAffordanceVisible()
73 RotationPolicy.registerRotationPolicyListener(mContext, mRotationPolicyListener, in setListening()
76 RotationPolicy.unregisterRotationPolicyListener(mContext, mRotationPolicyListener); in setListening()
87 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext), in notifyChanged()
88 RotationPolicy.isRotationLockToggleVisible(mContext)); in notifyChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java152 mNotificationManager = mContext.getSystemService(NotificationManager.class); in start()
154 mStorageManager = mContext.getSystemService(StorageManager.class); in start()
157 mContext.registerReceiver(mSnoozeReceiver, new IntentFilter(ACTION_SNOOZE_VOLUME), in start()
159 mContext.registerReceiver(mFinishReceiver, new IntentFilter(ACTION_FINISH_WIZARD), in start()
173 mContext.getPackageManager().registerMoveCallback(mMoveCallback, new Handler()); in start()
191 final CharSequence title = mContext.getString(R.string.ext_media_missing_title, in updateMissingPrivateVolumes()
193 final CharSequence text = mContext.getString(R.string.ext_media_missing_message); in updateMissingPrivateVolumes()
195 final Notification notif = new Notification.Builder(mContext) in updateMissingPrivateVolumes()
197 .setColor(mContext.getColor(R.color.system_notification_accent_color)) in updateMissingPrivateVolumes()
216 final CharSequence title = mContext.getString( in onDiskScannedInternal()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), in checkMetaData()
88 TypedArray a = mContext.obtainStyledAttributes(xml, in checkMetaData()
99 ComponentName cn = new ComponentName(mContext, LocalActivity.class); in testActivityWithData()
100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( in testActivityWithData()
105 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData()
112 ComponentName cn = new ComponentName(mContext, LocalReceiver.class); in testReceiverWithData()
113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( in testReceiverWithData()
118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData()
125 ComponentName cn = new ComponentName(mContext, LocalService.class); in testServiceWithData()
126 ServiceInfo si = mContext.getPackageManager().getServiceInfo( in testServiceWithData()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeUI.java68 mEnabled = mContext.getResources().getBoolean(R.bool.enable_volume_ui); in start()
70 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in start()
72 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in start()
73 mMediaSessionManager = (MediaSessionManager) mContext in start()
75 final ZenModeController zenController = new ZenModeControllerImpl(mContext, mHandler); in start()
76 mVolumeComponent = new VolumeDialogComponent(this, mContext, null, zenController); in start()
80 mContext, Settings.Secure.VOLUME_CONTROLLER_SERVICE_COMPONENT, in start()
106 DndTile.setVisible(mContext, true); in setDefaultVolumeController()
119 final ApplicationInfo ai = mContext.getPackageManager().getApplicationInfo(pkg, 0); in getAppLabel()
120 final String rt = mContext.getPackageManager().getApplicationLabel(ai).toString(); in getAppLabel()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java60 private final Context mContext; field in NotificationController
64 mContext = context; in NotificationController()
66 mContext.getSystemService(Context.NOTIFICATION_SERVICE); in NotificationController()
118 Notification.Builder builder = new Notification.Builder(mContext) in createPrintingNotification()
122 .addAction(R.drawable.stat_notify_cancelling, mContext.getString(R.string.cancel), in createPrintingNotification()
128 .setColor(mContext.getColor( in createPrintingNotification()
134 Notification.Builder builder = new Notification.Builder(mContext) in createFailedNotification()
138 .addAction(R.drawable.stat_notify_cancelling, mContext.getString(R.string.cancel), in createFailedNotification()
140 .addAction(R.drawable.ic_restart, mContext.getString(R.string.restart), in createFailedNotification()
146 .setColor(mContext.getColor( in createFailedNotification()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DRenderScript.java301 long curCon = mContext; in nContextDestroy()
303 mContext = 0; in nContextDestroy()
311 rsnContextSetPriority(mContext, p); in nContextSetPriority()
316 rsnContextDump(mContext, bits); in nContextDump()
321 rsnContextFinish(mContext); in nContextFinish()
327 rsnContextSendMessage(mContext, id, data); in nContextSendMessage()
336 if (mContext != 0) { in nObjDestroy()
337 rsnObjDestroy(mContext, id); in nObjDestroy()
344 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
349 return rsnElementCreate2(mContext, elements, names, arraySizes); in nElementCreate2()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java59 private final Context mContext; field in NetworkScoreService
83 NetworkScorerAppManager.getActiveScorer(mContext) == null) { in onReceive()
93 mContext = context; in NetworkScoreService()
99 ContentResolver cr = mContext.getContentResolver(); in systemReady()
103 String defaultPackage = mContext.getResources().getString( in systemReady()
106 NetworkScorerAppManager.setActiveScorer(mContext, defaultPackage); in systemReady()
115 NetworkScorerAppData scorer = NetworkScorerAppManager.getActiveScorer(mContext); in registerPackageReceiverIfNeeded()
122 mContext.unregisterReceiver(mReceiver); in registerPackageReceiverIfNeeded()
137 mContext.registerReceiverAsUser(mReceiver, UserHandle.OWNER, filter, null, null); in registerPackageReceiverIfNeeded()
147 if (!NetworkScorerAppManager.isCallerActiveScorer(mContext, getCallingUid())) { in updateScores()
[all …]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DSetupWizardLayoutTests.java35 private Context mContext; field in SetupWizardLayoutTests
40 mContext = new ContextThemeWrapper(getInstrumentation().getContext(), in setUp()
46 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testDefaultTemplate()
52 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testSetHeaderText()
60 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testAddView()
61 TextView tv = new TextView(mContext); in testAddView()
71 LayoutInflater inflater = LayoutInflater.from(mContext); in testInflateFromXml()
80 SetupWizardLayout layout = new SetupWizardLayout(mContext, R.layout.test_template); in testCustomTemplate()
84 TextView tv = new TextView(mContext); in testCustomTemplate()
102 final SetupWizardLayout layout = new SetupWizardLayout(mContext); in testGetNavigationBar()
[all …]
/frameworks/base/libs/hwui/renderthread/
DDrawFrameTask.cpp36 , mContext(nullptr) in DrawFrameTask()
45 mContext = context; in setContext()
49 …LOG_ALWAYS_FATAL_IF(!mContext, "Lifecycle violation, there's no context to pushLayerUpdate with!"); in pushLayerUpdate()
69 LOG_ALWAYS_FATAL_IF(!mContext, "Cannot drawFrame with no CanvasContext!"); in drawFrame()
96 CanvasContext* context = mContext; in run()
116 mContext->makeCurrent(); in syncFrameState()
117 Caches::getInstance().textureCache.resetMarkInUse(mContext); in syncFrameState()
120 mContext->processLayerUpdate(mLayers[i].get()); in syncFrameState()
123 mContext->prepareTree(info, mFrameInfo, mSyncQueued); in syncFrameState()
127 if (CC_UNLIKELY(!mContext->hasSurface())) { in syncFrameState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DUsageTracker.java34 private final Context mContext; field in UsageTracker
43 mContext = context; in UsageTracker()
45 mTimeToShowTile = MILLIS_PER_DAY * mContext.getResources().getInteger(timeoutResource); in UsageTracker()
52 mContext.registerReceiver(mReceiver, new IntentFilter(mResetAction)); in setListening()
55 mContext.unregisterReceiver(mReceiver); in setListening()
61 long lastUsed = Prefs.getLong(mContext, mPrefKey, 0L /* defaultValue */); in isRecentlyUsed()
66 Prefs.putLong(mContext, mPrefKey, System.currentTimeMillis()); in trackUsage()
70 Prefs.remove(mContext, mPrefKey); in reset()
74 final SystemUIDialog d = new SystemUIDialog(mContext); in showResetConfirmation()
76 d.setMessage(mContext.getString(R.string.quick_settings_reset_confirmation_message)); in showResetConfirmation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java71 mContext.registerReceiver(mReceiver, new IntentFilter(ACTION_SET_VISIBLE)); in DndTile()
106 SysUIToast.makeText(mContext, mContext.getString( in handleClick()
113 MetricsLogger.action(mContext, getMetricsCategory(), !mState.value); in handleClick()
117 int zen = Prefs.getInt(mContext, Prefs.Key.DND_FAVORITE_ZEN, Global.ZEN_MODE_ALARMS); in handleClick()
129 state.visible = isVisible(mContext); in handleUpdateState()
133 state.label = mContext.getString(R.string.quick_settings_dnd_priority_label); in handleUpdateState()
134 state.contentDescription = mContext.getString( in handleUpdateState()
139 state.label = mContext.getString(R.string.quick_settings_dnd_none_label); in handleUpdateState()
140 state.contentDescription = mContext.getString( in handleUpdateState()
145 state.label = mContext.getString(R.string.quick_settings_dnd_alarms_label); in handleUpdateState()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java35 private Context mContext; field in GeofenceHardwareService
39 mContext = this; in onCreate()
40 mGeofenceHardwareImpl = GeofenceHardwareImpl.getInstance(mContext); in onCreate()
80 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
88 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
99 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
107 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
116 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
125 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
135 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
[all …]
/frameworks/base/core/java/android/transition/
DTransitionInflater.java54 private Context mContext; field in TransitionInflater
57 mContext = context; in TransitionInflater()
77 XmlResourceParser parser = mContext.getResources().getXml(resource); in inflateTransition()
106 XmlResourceParser parser = mContext.getResources().getXml(resource); in inflateTransitionManager()
149 transition = new Fade(mContext, attrs); in createTransitionFromXml()
151 transition = new ChangeBounds(mContext, attrs); in createTransitionFromXml()
153 transition = new Slide(mContext, attrs); in createTransitionFromXml()
155 transition = new Explode(mContext, attrs); in createTransitionFromXml()
157 transition = new ChangeImageTransform(mContext, attrs); in createTransitionFromXml()
159 transition = new ChangeTransform(mContext, attrs); in createTransitionFromXml()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecents.java129 RecentsTaskLoadPlan plan = loader.createLoadPlan(mContext); in run()
142 loader.loadTasks(mContext, plan, launchOpts); in run()
211 sInstance.mContext = ctx; in getInstanceAndStartIfNeeded()
234 RecentsTaskLoader.initialize(mContext); in start()
235 mInflater = LayoutInflater.from(mContext); in start()
236 mSystemServicesProxy = new SystemServicesProxy(mContext); in start()
239 mAppWidgetHost = new RecentsAppWidgetHost(mContext, Constants.Values.App.AppWidgetHostId); in start()
253 mContext.registerReceiverAsUser(mProxyBroadcastReceiver, UserHandle.CURRENT, filter, in start()
265 RecentsTaskLoadPlan plan = loader.createLoadPlan(mContext); in start()
271 loader.loadTasks(mContext, plan, launchOpts); in start()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java119 Context mContext; field in GsmMmiCode
547 mContext = phone.getContext(); in GsmMmiCode()
981 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
990 sb.append(mContext.getText(res)); in handlePasswordError()
1008 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1032 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1145 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getErrorMessage()
1148 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_dial); in getErrorMessage()
1151 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ss); in getErrorMessage()
1154 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ussd); in getErrorMessage()
[all …]
/frameworks/base/core/java/android/widget/
DShareActionProvider.java122 private final Context mContext; field in ShareActionProvider
140 mContext = context; in ShareActionProvider()
164 ActivityChooserView activityChooserView = new ActivityChooserView(mContext); in onCreateActionView()
166 … ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName); in onCreateActionView()
172 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true); in onCreateActionView()
173 Drawable drawable = mContext.getDrawable(outTypedValue.resourceId); in onCreateActionView()
202 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName); in onPrepareSubMenu()
203 PackageManager packageManager = mContext.getPackageManager(); in onPrepareSubMenu()
220 mContext.getString(R.string.activity_chooser_view_see_all)); in onPrepareSubMenu()
286 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, in setShareIntent()
[all …]

12345678910>>...37