/frameworks/base/tests/CoreTests/android/core/ |
D | ProxyTest.java | 29 private Context mContext; field in ProxyTest 36 mContext = getContext(); in setUp() 38 String proxyHost = Proxy.getHost(mContext); in setUp() 39 int proxyPort = Proxy.getPort(mContext); in setUp() 54 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, null)); in testProxyGetPreferredHttpHost_UrlBad() 55 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "")); in testProxyGetPreferredHttpHost_UrlBad() 56 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:")); in testProxyGetPreferredHttpHost_UrlBad() 57 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad")); in testProxyGetPreferredHttpHost_UrlBad() 58 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:\\")); in testProxyGetPreferredHttpHost_UrlBad() 59 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad://#")); in testProxyGetPreferredHttpHost_UrlBad() [all …]
|
/frameworks/support/v4/java/android/support/v4/provider/ |
D | TreeDocumentFile.java | 23 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 …]
|
D | SingleDocumentFile.java | 24 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/ |
D | CreateViewTest.java | 41 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/base/rs/java/android/renderscript/ |
D | RenderScript.java | 225 long curCon = mContext; in nContextDestroy() 227 mContext = 0; in nContextDestroy() 235 rsnContextSetSurface(mContext, w, h, sur); in nContextSetSurface() 240 rsnContextSetSurfaceTexture(mContext, w, h, sur); in nContextSetSurfaceTexture() 245 rsnContextSetPriority(mContext, p); in nContextSetPriority() 250 rsnContextDump(mContext, bits); in nContextDump() 255 rsnContextFinish(mContext); in nContextFinish() 261 rsnContextSendMessage(mContext, id, data); in nContextSendMessage() 267 rsnContextBindRootScript(mContext, script); in nContextBindRootScript() 272 rsnContextBindSampler(mContext, sampler, slot); in nContextBindSampler() [all …]
|
/frameworks/support/tests/java/android/support/v4/content/ |
D | FileProviderTest.java | 62 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSubInfo.java | 38 private Context mContext; field in PhoneSubInfo 49 mContext = phone.getContext(); in PhoneSubInfo() 69 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceId() 77 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getImei() 85 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getNai() 94 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceSvn() 102 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getSubscriberId() 110 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getGroupIdLevel1() 118 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getIccSerialNumber() 126 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1Number() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
D | ActionBarPolicy.java | 35 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/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | RenderScript.java | 233 int curCon = mContext; in nContextDestroy() 235 mContext = 0; in nContextDestroy() 243 rsnContextSetPriority(mContext, p); in nContextSetPriority() 248 rsnContextDump(mContext, bits); in nContextDump() 253 rsnContextFinish(mContext); in nContextFinish() 259 rsnContextSendMessage(mContext, id, data); in nContextSendMessage() 268 if (mContext != 0) { in nObjDestroy() 269 rsnObjDestroy(mContext, id); in nObjDestroy() 276 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate() 281 return rsnElementCreate2(mContext, elements, names, arraySizes); in nElementCreate2() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 31 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/ |
D | MffEnvironment.java | 34 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/ |
D | RotationLockControllerImpl.java | 28 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/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 59 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/libs/hwui/renderthread/ |
D | DrawFrameTask.cpp | 36 , mContext(NULL) in DrawFrameTask() 48 mContext = context; in setContext() 52 …LOG_ALWAYS_FATAL_IF(!mContext, "Lifecycle violation, there's no context to pushLayerUpdate with!"); in pushLayerUpdate() 72 LOG_ALWAYS_FATAL_IF(!mContext, "Cannot drawFrame with no CanvasContext!"); in drawFrame() 95 mContext->profiler().setDensity(mDensity); in run() 96 mContext->profiler().startFrame(mRecordDurationNanos); in run() 107 CanvasContext* context = mContext; in run() 126 mContext->makeCurrent(); in syncFrameState() 130 mContext->processLayerUpdate(mLayers[i].get()); in syncFrameState() 133 mContext->prepareTree(info); in syncFrameState() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | NotificationController.java | 60 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.getResources().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.getResources().getColor( in createFailedNotification() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | TransitionInflater.java | 53 private Context mContext; field in TransitionInflater 56 mContext = context; in TransitionInflater() 75 XmlResourceParser parser = mContext.getResources().getXml(resource); in inflateTransition() 102 XmlResourceParser parser = mContext.getResources().getXml(resource); in inflateTransitionManager() 145 transition = new Fade(mContext, attrs); in createTransitionFromXml() 147 transition = new ChangeBounds(mContext, attrs); in createTransitionFromXml() 149 transition = new Slide(mContext, attrs); in createTransitionFromXml() 151 transition = new Explode(mContext, attrs); in createTransitionFromXml() 153 transition = new ChangeImageTransform(mContext, attrs); in createTransitionFromXml() 155 transition = new ChangeTransform(mContext, attrs); in createTransitionFromXml() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 59 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/ex/variablespeed/src/com/android/ex/variablespeed/ |
D | MediaPlayerDataSource.java | 37 private final Context mContext; field in MediaPlayerDataSource 42 mContext = context; in MediaPlayerDataSource() 48 mContext = null; in MediaPlayerDataSource() 54 if (mContext != null) { in setAsSourceFor() 55 mediaPlayer.setDataSource(mContext, mUri); in setAsSourceFor() 62 if (mContext != null) { in playNative() 63 VariableSpeedNative.playFromContext(mContext, mUri); in playNative()
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareService.java | 35 private Context mContext; field in GeofenceHardwareService 39 mContext = this; in onCreate() 40 mGeofenceHardwareImpl = GeofenceHardwareImpl.getInstance(mContext); in onCreate() 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.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ShareActionProvider.java | 122 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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSFooter.java | 46 private final Context mContext; field in QSFooter 65 mContext = context; in QSFooter() 138 mDialog = new SystemUIDialog(mContext); in createDialog() 150 return mContext.getString(R.string.disconnect_vpn); in getNegativeButton() 152 return mContext.getString(R.string.disable_vpn); in getNegativeButton() 157 return mContext.getString(R.string.quick_settings_done); in getPositiveButton() 165 return mContext.getString( in getMessage() 171 return mContext.getString( in getMessage() 178 return mContext.getString( in getMessage() 186 return mContext.getString( in getMessage() [all …]
|
D | UsageTracker.java | 33 private final Context mContext; field in UsageTracker 41 mContext = context; in UsageTracker() 43 mTimeToShowTile = MILLIS_PER_DAY * mContext.getResources().getInteger(timeoutResource); in UsageTracker() 50 mContext.registerReceiver(mReceiver, new IntentFilter(mResetAction)); in setListening() 53 mContext.unregisterReceiver(mReceiver); in setListening() 72 final SystemUIDialog d = new SystemUIDialog(mContext); in showResetConfirmation() 74 d.setMessage(mContext.getString(R.string.quick_settings_reset_confirmation_message)); in showResetConfirmation() 91 return mContext.getSharedPreferences(mContext.getPackageName(), 0); in getSharedPrefs()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | AlternateRecentsComponent.java | 119 RecentsTaskLoadPlan plan = loader.createLoadPlan(mContext); in run() 132 loader.loadTasks(mContext, plan, launchOpts); in run() 154 Context mContext; field in AlternateRecentsComponent 185 mContext = context; in AlternateRecentsComponent() 201 mContext.registerReceiverAsUser(mProxyBroadcastReceiver, UserHandle.CURRENT, filter, in AlternateRecentsComponent() 226 RecentsTaskLoadPlan plan = loader.createLoadPlan(mContext); in onStart() 232 loader.loadTasks(mContext, plan, launchOpts); in onStart() 245 Intent intent = createLocalBroadcastIntent(mContext, in onShowRecents() 248 mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT); in onShowRecents() 267 Intent intent = createLocalBroadcastIntent(mContext, in onHideRecents() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmMmiCode.java | 119 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/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 72 private final Context mContext; field in UsbService 88 settings = new UsbSettingsManager(mContext, new UserHandle(userId)); in getSettingsForUser() 96 mContext = context; in UsbService() 98 final PackageManager pm = mContext.getPackageManager(); in UsbService() 111 mContext.registerReceiver(mUserReceiver, userFilter, null, null); in UsbService() 188 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setDevicePackage() 194 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setAccessoryPackage() 225 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantDevicePermission() 232 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantAccessoryPermission() 239 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in hasDefaults() [all …]
|