/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/base/graphics/java/android/renderscript/ |
D | RenderScript.java | 132 rsnContextDestroy(mContext); in nContextDestroy() 137 rsnContextSetSurface(mContext, w, h, sur); in nContextSetSurface() 142 rsnContextSetSurfaceTexture(mContext, w, h, sur); in nContextSetSurfaceTexture() 147 rsnContextSetPriority(mContext, p); in nContextSetPriority() 152 rsnContextDump(mContext, bits); in nContextDump() 157 rsnContextFinish(mContext); in nContextFinish() 163 rsnContextBindRootScript(mContext, script); in nContextBindRootScript() 168 rsnContextBindSampler(mContext, sampler, slot); in nContextBindSampler() 173 rsnContextBindProgramStore(mContext, pfs); in nContextBindProgramStore() 178 rsnContextBindProgramFragment(mContext, pf); in nContextBindProgramFragment() [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/telephony/java/com/android/internal/telephony/ |
D | PhoneSubInfo.java | 32 private Context mContext; field in PhoneSubInfo 43 mContext = phone.getContext(); in PhoneSubInfo() 62 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceId() 71 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceSvn() 79 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getSubscriberId() 87 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getIccSerialNumber() 95 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1Number() 103 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1AlphaTag() 111 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getMsisdn() 119 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getVoiceMailNumber() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 32 private Context mContext; field in ActionBarPolicy 39 mContext = context; in ActionBarPolicy() 43 return mContext.getResources().getInteger(R.integer.max_action_buttons); in getMaxActionButtons() 47 return !ViewConfiguration.get(mContext).hasPermanentMenuKey(); in showsOverflowMenuButton() 51 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 55 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs() 57 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs() 62 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb); in hasEmbeddedTabs() 66 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar, in getTabContainerHeight() 69 Resources r = mContext.getResources(); in getTabContainerHeight() [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/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/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | TestService.java | 579 Context mContext; field in TestService.OpenXmlResOp 586 mContext = context; in onInit() 590 XmlResourceParser parser = mContext.getResources().getLayout(R.xml.simple); in onRun() 597 Context mContext; field in TestService.ReadXmlAttrsOp 606 mContext = context; in onInit() 607 mParser = mContext.getResources().getLayout(R.xml.simple); in onInit() 636 TypedArray a = mContext.obtainStyledAttributes(mAttrs, in onRun() 644 Context mContext; field in TestService.ParseXmlResOp 651 mContext = context; in onInit() 655 SimpleInflater inf = new SimpleInflater(mContext); in onRun() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ShareActionProvider.java | 127 private final Context mContext; field in ShareActionProvider 145 mContext = context; in ShareActionProvider() 169 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName); in onCreateActionView() 170 ActivityChooserView activityChooserView = new ActivityChooserView(mContext); in onCreateActionView() 175 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true); in onCreateActionView() 176 Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId); in onCreateActionView() 205 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName); in onPrepareSubMenu() 206 PackageManager packageManager = mContext.getPackageManager(); in onPrepareSubMenu() 223 mContext.getString(R.string.activity_chooser_view_see_all)); in onPrepareSubMenu() 289 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, in setShareIntent() [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/services/java/com/android/server/ |
D | NetworkManagementService.java | 129 private Context mContext; field in NetworkManagementService 162 mContext = context; in NetworkManagementService() 194 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in registerObserver() 200 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in unregisterObserver() 419 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in listInterfaces() 430 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in getInterfaceConfig() 474 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceConfig() 496 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceDown() 504 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceUp() 512 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceIpv6PrivacyExtensions() [all …]
|
/frameworks/rs/cpp/ |
D | RenderScript.cpp | 34 mContext = NULL; in RenderScript() 45 rsContextDeinitToClient(mContext); in ~RenderScript() 50 rsContextDestroy(mContext); in ~RenderScript() 51 mContext = NULL; in ~RenderScript() 63 mContext = rsContextCreate(mDev, 0, targetApi); in init() 64 if (mContext == 0) { in init() 97 rsContextInitToClient(rs->mContext); in threadProc() 104 RsMessageToClientType r = rsContextPeekMessage(rs->mContext, in threadProc() 116 rsContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen), in threadProc()
|
D | Allocation.cpp | 132 const void *typeID = rsaAllocationGetType(mRS->mContext, getID()); in updateFromNative() 152 rsAllocationSyncAll(mRS->mContext, getIDSafe(), srcLocation); in syncAll() 159 rsAllocationIoSend(mRS->mContext, getID()); in ioSendOutput() 166 rsAllocationIoReceive(mRS->mContext, getID()); in ioGetInput() 224 rsAllocationGenerateMipmaps(mRS->mContext, getID()); in generateMipmaps() 243 rsAllocation1DData(mRS->mContext, getIDSafe(), off, mSelectedLOD, count, data, dataLen); in copy1DRangeFromUnchecked() 269 rsAllocationCopy2DRange(mRS->mContext, getIDSafe(), off, 0, in copy1DRangeFrom() 288 rsAllocation2DData(mRS->mContext, getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace, in copy2DRangeFrom() 295 rsAllocation2DData(mRS->mContext, getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace, in copy2DRangeFrom() 302 rsAllocation2DData(mRS->mContext, getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace, in copy2DRangeFrom() [all …]
|
/frameworks/base/services/java/com/android/server/usb/ |
D | UsbService.java | 40 private final Context mContext; field in UsbService 47 mContext = context; in UsbService() 49 PackageManager pm = mContext.getPackageManager(); in UsbService() 102 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setDevicePackage() 107 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setAccessoryPackage() 130 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantDevicePermission() 135 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantAccessoryPermission() 140 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in hasDefaults() 145 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in clearDefaults() 150 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setCurrentFunction() [all …]
|
/frameworks/base/core/java/android/server/search/ |
D | SearchManagerService.java | 48 private final Context mContext; field in SearchManagerService 62 mContext = context; in SearchManagerService() 63 mContext.registerReceiver(new BootCompletedReceiver(), in SearchManagerService() 66 mContext.getContentResolver()); in SearchManagerService() 72 new MyPackageMonitor().register(mContext, null, true); in getSearchables() 73 mSearchables = new Searchables(mContext); in getSearchables() 89 mContext.unregisterReceiver(BootCompletedReceiver.this); in onReceive() 117 mContext.sendBroadcast(intent); in updateSearchables() 138 mContext.sendBroadcast(intent); in onChange()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | EriManager.java | 97 private Context mContext; field in EriManager 104 this.mContext = context; in EriManager() 159 Resources r = mContext.getResources(); in loadEriFileFromXml() 308 mContext.getText(com.android.internal.R.string.roamingText0).toString()); in getEriDisplayInformation() 315 mContext.getText(com.android.internal.R.string.roamingText1).toString()); in getEriDisplayInformation() 322 mContext.getText(com.android.internal.R.string.roamingText2).toString()); in getEriDisplayInformation() 331 mContext.getText(com.android.internal.R.string.roamingText3).toString()); in getEriDisplayInformation() 338 mContext.getText(com.android.internal.R.string.roamingText4).toString()); in getEriDisplayInformation() 345 mContext.getText(com.android.internal.R.string.roamingText5).toString()); in getEriDisplayInformation() 352 mContext.getText(com.android.internal.R.string.roamingText6).toString()); in getEriDisplayInformation() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 67 private BridgeContext mContext; field in RenderAction 118 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init() 150 if (mContext == null) { in acquire() 195 if (mContext != sCurrentContext) { in acquireLock() 227 mContext.initResources(); in setUp() 228 sCurrentContext = mContext; in setUp() 235 mContext.getRenderResources().setFrameworkResourceIdProvider(this); in setUp() 236 mContext.getRenderResources().setLogger(currentLog); in setUp() 246 mContext.disposeResources(); in tearDown() 260 mContext.getRenderResources().setFrameworkResourceIdProvider(null); in tearDown() [all …]
|
/frameworks/base/core/java/android/server/ |
D | BluetoothService.java | 105 private final Context mContext; field in BluetoothService 209 mContext = context; in BluetoothService() 234 mA2dpProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.A2DP); in BluetoothService() 235 mHfpProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.HFP); in BluetoothService() 244 mContext.registerReceiver(mReceiver, filter); in BluetoothService() 245 mBluetoothInputProfileHandler = BluetoothInputProfileHandler.getInstance(mContext, this); in BluetoothService() 246 mBluetoothPanProfileHandler = BluetoothPanProfileHandler.getInstance(mContext, this); in BluetoothService() 247 mBluetoothHealthProfileHandler = BluetoothHealthProfileHandler.getInstance(mContext, this); in BluetoothService() 322 mBluetoothState = new BluetoothAdapterStateMachine(mContext, this, mAdapter); in initAfterRegistration() 324 if (mContext.getResources().getBoolean in initAfterRegistration() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AutoRotateController.java | 25 private final Context mContext; field in AutoRotateController 41 mContext = context; in AutoRotateController() 54 RotationPolicy.setRotationLock(mContext, !checked); in onCheckedChanged() 59 RotationPolicy.unregisterRotationPolicyListener(mContext, in release() 64 mAutoRotation = !RotationPolicy.isRotationLocked(mContext); in updateState() 67 boolean visible = RotationPolicy.isRotationLockToggleVisible(mContext); in updateState()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupManager.java | 61 private Context mContext; field in BackupManager 80 mContext = context; in BackupManager() 93 sService.dataChanged(mContext.getPackageName()); in dataChanged() 146 IRestoreSession binder = sService.beginRestoreSession(mContext.getPackageName(), in requestRestore() 149 session = new RestoreSession(mContext, binder); in requestRestore() 150 result = session.restorePackage(mContext.getPackageName(), observer); in requestRestore() 176 session = new RestoreSession(mContext, binder); in beginRestoreSession()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AccessibilityManagerServiceTest.java | 95 ensureAccessibilityEnabled(mContext, false); in testAddClient_AccessibilityDisabledThenEnabled() 110 ensureAccessibilityEnabled(mContext, true); in testAddClient_AccessibilityDisabledThenEnabled() 126 ensureAccessibilityEnabled(mContext, true); in testAddClient_AccessibilityEnabledThenDisabled() 141 ensureAccessibilityEnabled(mContext, false); in testAddClient_AccessibilityEnabledThenDisabled() 183 ensureAccessibilityEnabled(mContext, true); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType() 186 ensureOnlyMockServicesEnabled(mContext, true, false); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType() 213 ensureAccessibilityEnabled(mContext, true); in testSendAccessibilityEvent_OneService_NotMatchingPackage() 216 ensureOnlyMockServicesEnabled(mContext, true, false); in testSendAccessibilityEvent_OneService_NotMatchingPackage() 243 ensureAccessibilityEnabled(mContext, true); in testSendAccessibilityEvent_OneService_NotMatchingEventType() 246 ensureOnlyMockServicesEnabled(mContext, true, false); in testSendAccessibilityEvent_OneService_NotMatchingEventType() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PhoneFallbackEventHandler.java | 42 Context mContext; field in PhoneFallbackEventHandler 51 mContext = context; in PhoneFallbackEventHandler() 124 mContext.startActivity(intent); in onKeyDown() 145 mContext.sendOrderedBroadcast(intent, null); in onKeyDown() 157 Configuration config = mContext.getResources().getConfiguration(); in onKeyDown() 167 mContext.startActivity(intent); in onKeyDown() 198 AudioManager audioManager = (AudioManager)mContext.getSystemService( in onKeyUp() 250 mContext.startActivity(intent); in startCallActivity() 258 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in getSearchManager() 265 mTelephonyManager = (TelephonyManager)mContext.getSystemService( in getTelephonyManager() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 41 private Context mContext; field in StorageNotification 68 mContext = context; in StorageNotification() 137 intent.setClass(mContext, com.android.systemui.usb.UsbStorageActivity.class); in onStorageStateChangedAsync() 138 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in onStorageStateChangedAsync() 205 intent.setClass(mContext, com.android.internal.app.ExternalMediaFormatActivity.class); in onStorageStateChangedAsync() 206 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in onStorageStateChangedAsync() 219 intent.setClass(mContext, com.android.internal.app.ExternalMediaFormatActivity.class); in onStorageStateChangedAsync() 220 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in onStorageStateChangedAsync() 261 intent.setClass(mContext, com.android.systemui.usb.UsbStorageActivity.class); in updateUsbMassStorageNotification() 264 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in updateUsbMassStorageNotification() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | SearchManagerTest.java | 76 Context mContext; field in SearchManagerTest 90 mContext = testActivity; in setUp() 115 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerAvailable() 118 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerAvailable() 129 mContext.getSystemService(Context.SEARCH_SERVICE); in testStartSearchIdempotent() 143 mContext.getSystemService(Context.SEARCH_SERVICE); in testStopSearchIdempotent() 158 mContext.getSystemService(Context.SEARCH_SERVICE); in testSearchManagerInvocations()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PasswordEntryKeyboardHelper.java | 52 private final Context mContext; field in PasswordEntryKeyboardHelper 64 mContext = context; in PasswordEntryKeyboardHelper() 86 mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric, in createKeyboardsWithSpecificSize() 88 mQwertyKeyboard = new PasswordEntryKeyboard(mContext, in createKeyboardsWithSpecificSize() 92 mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, in createKeyboardsWithSpecificSize() 98 mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_symbols, in createKeyboardsWithSpecificSize() 102 mSymbolsKeyboardShifted = new PasswordEntryKeyboard(mContext, in createKeyboardsWithSpecificSize() 109 mNumericKeyboard = new PasswordEntryKeyboard(mContext, R.xml.password_kbd_numeric); in createKeyboards() 110 mQwertyKeyboard = new PasswordEntryKeyboard(mContext, in createKeyboards() 114 mQwertyKeyboardShifted = new PasswordEntryKeyboard(mContext, in createKeyboards() [all …]
|