/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 | 30 private Context mContext; field in PhoneSubInfo 39 mContext = phone.getContext(); in PhoneSubInfo() 58 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceId() 67 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceSvn() 75 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getSubscriberId() 83 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getIccSerialNumber() 91 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1Number() 99 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1AlphaTag() 107 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getVoiceMailNumber() 119 mContext.enforceCallingOrSelfPermission(CALL_PRIVILEGED, in getCompleteVoiceMailNumber() [all …]
|
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 60 private BridgeContext mContext; field in RenderAction 107 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init() 138 if (mContext == null) { in acquire() 183 if (mContext != sCurrentContext) { in acquireLock() 215 mContext.initResources(); in setUp() 216 sCurrentContext = mContext; in setUp() 220 mContext.getRenderResources().setFrameworkResourceIdProvider(this); in setUp() 221 mContext.getRenderResources().setLogger(currentLog); in setUp() 231 mContext.disposeResources(); in tearDown() 239 mContext.getRenderResources().setFrameworkResourceIdProvider(null); in tearDown() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | FileLoader.java | 89 String errString = mContext.getString(R.string.httpErrorFileNotFound); in errString() 101 mDataStream = mContext.getAssets().open(mPath); in setupStreamAndSendStatus() 104 mDataStream = mContext.getAssets().openNonAsset(mPath); in setupStreamAndSendStatus() 112 mLoadListener.error(EventHandler.FILE_ERROR, mContext in setupStreamAndSendStatus() 121 mLoadListener.error(EventHandler.FILE_ERROR, mContext in setupStreamAndSendStatus() 129 final Class<?> d = mContext.getApplicationContext() in setupStreamAndSendStatus() 131 mContext.getPackageName() + ".R$" in setupStreamAndSendStatus() 136 mContext.getResources().getValue(id, value, true); in setupStreamAndSendStatus() 138 mDataStream = mContext.getAssets().openNonAsset( in setupStreamAndSendStatus() 146 + mContext.getPackageName() + ".R$" + subClassName; in setupStreamAndSendStatus() [all …]
|
/frameworks/base/vpn/java/android/net/vpn/ |
D | VpnManager.java | 99 private Context mContext; field in VpnManager 105 mContext = c; in VpnManager() 141 mContext.startService(new Intent(ACTION_VPN_SERVICE)); in startVpnService() 148 mContext.stopService(new Intent(ACTION_VPN_SERVICE)); in stopVpnService() 155 if (!mContext.bindService(new Intent(ACTION_VPN_SERVICE), c, 0)) { in bindVpnService() 178 mContext.sendBroadcast(intent); in broadcastConnectivity() 184 mContext.registerReceiver(r, filter); in registerConnectivityReceiver() 188 mContext.unregisterReceiver(r); in unregisterConnectivityReceiver() 195 mContext.startActivity(intent); in startSettingsActivity()
|
/frameworks/base/core/java/android/server/search/ |
D | SearchManagerService.java | 44 private final Context mContext; field in SearchManagerService 56 mContext = context; in SearchManagerService() 57 mContext.registerReceiver(new BootCompletedReceiver(), in SearchManagerService() 64 new MyPackageMonitor().register(mContext, true); in getSearchables() 65 mSearchables = new Searchables(mContext); in getSearchables() 81 mContext.unregisterReceiver(BootCompletedReceiver.this); in onReceive() 99 mContext.sendBroadcast(intent); in onSomePackagesChanged()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupManager.java | 56 private Context mContext; field in BackupManager 75 mContext = context; in BackupManager() 88 sService.dataChanged(mContext.getPackageName()); in dataChanged() 141 IRestoreSession binder = sService.beginRestoreSession(mContext.getPackageName(), in requestRestore() 143 session = new RestoreSession(mContext, binder); in requestRestore() 144 result = session.restorePackage(mContext.getPackageName(), observer); in requestRestore() 168 session = new RestoreSession(mContext, binder); in beginRestoreSession()
|
/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/services/java/com/android/server/ |
D | NetworkManagementService.java | 83 private Context mContext; field in NetworkManagementService 101 mContext = context; in NetworkManagementService() 250 mContext.enforceCallingOrSelfPermission( in listInterfaces() 325 if (mContext.checkCallingOrSelfPermission( in shutdown() 335 mContext.enforceCallingOrSelfPermission( in getIpForwardingEnabled() 365 mContext.enforceCallingOrSelfPermission( in setIpForwardingEnabled() 372 mContext.enforceCallingOrSelfPermission( in startTethering() 389 mContext.enforceCallingOrSelfPermission( in stopTethering() 399 mContext.enforceCallingOrSelfPermission( in isTetheringStarted() 427 mContext.enforceCallingOrSelfPermission( in tetherInterface() [all …]
|
D | DeviceStorageMonitorService.java | 78 private Context mContext; field in DeviceStorageMonitorService 303 mContext = context; in DeviceStorageMonitorService() 304 mContentResolver = mContext.getContentResolver(); in DeviceStorageMonitorService() 341 (NotificationManager)mContext.getSystemService( in sendNotification() 343 CharSequence title = mContext.getText( in sendNotification() 345 CharSequence details = mContext.getText( in sendNotification() 347 PendingIntent intent = PendingIntent.getActivity(mContext, 0, lowMemIntent, 0); in sendNotification() 352 notification.setLatestEventInfo(mContext, title, details, intent); in sendNotification() 354 mContext.sendStickyBroadcast(mStorageLowIntent); in sendNotification() 363 (NotificationManager)mContext.getSystemService( in cancelNotification() [all …]
|
D | UiModeManagerService.java | 79 private final Context mContext; field in UiModeManagerService 311 mContext = context; in UiModeManagerService() 316 (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in UiModeManagerService() 318 (LocationManager)mContext.getSystemService(Context.LOCATION_SERVICE); in UiModeManagerService() 319 mContext.registerReceiver(mTwilightUpdateReceiver, in UiModeManagerService() 321 mContext.registerReceiver(mDockModeReceiver, in UiModeManagerService() 323 mContext.registerReceiver(mBatteryReceiver, in UiModeManagerService() 327 mContext.registerReceiver(mUpdateLocationReceiver, filter); in UiModeManagerService() 339 mNightMode = Settings.Secure.getInt(mContext.getContentResolver(), in UiModeManagerService() 383 Settings.Secure.putInt(mContext.getContentResolver(), in setNightMode() [all …]
|
D | ThrottleService.java | 78 private Context mContext; field in ThrottleService 127 mContext = context; in ThrottleService() 131 mIface = mContext.getResources().getString(R.string.config_datause_iface); in ThrottleService() 132 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in ThrottleService() 134 mPendingPollIntent = PendingIntent.getBroadcast(mContext, POLL_REQUEST, pollIntent, 0); in ThrottleService() 136 mPendingResetIntent = PendingIntent.getBroadcast(mContext, RESET_REQUEST, resetIntent, 0); in ThrottleService() 141 mNotificationManager = (NotificationManager)mContext.getSystemService( in ThrottleService() 211 mContext.enforceCallingOrSelfPermission( in enforceAccessPermission() 265 return Settings.Secure.getString(mContext.getContentResolver(), in getHelpUri() 292 mContext.registerReceiver( in systemReady() [all …]
|
D | RecognitionManagerService.java | 38 final Context mContext; field in RecognitionManagerService 66 mContext = context; in RecognitionManagerService() 76 mContext.getPackageManager().getServiceInfo(comp, 0); in systemReady() 90 mContext.getPackageManager().queryIntentServices( in findAvailRecognizer() 117 mContext.getContentResolver(), in getCurRecognizer() 126 Settings.Secure.putString(mContext.getContentResolver(), in setCurRecognizer()
|
/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/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/java/com/android/internal/widget/ |
D | DigitalClock.java | 60 private Context mContext; field in DigitalClock.TimeChangedReceiver 64 mContext = clock.getContext(); in TimeChangedReceiver() 84 mContext.unregisterReceiver(this); in onReceive() 118 private Context mContext; field in DigitalClock.FormatChangeObserver 122 mContext = clock.getContext(); in FormatChangeObserver() 132 mContext.getContentResolver().unregisterContentObserver(this); in onChange() 173 mContext.registerReceiver(mIntentReceiver, filter); in onAttachedToWindow() 179 mContext.getContentResolver().registerContentObserver( in onAttachedToWindow() 193 mContext.unregisterReceiver(mIntentReceiver); in onDetachedFromWindow() 196 mContext.getContentResolver().unregisterContentObserver( in onDetachedFromWindow()
|
/frameworks/base/core/java/android/text/style/ |
D | ImageSpan.java | 33 private Context mContext; field in ImageSpan 62 mContext = context; in ImageSpan() 108 mContext = context; in ImageSpan() 123 mContext = context; in ImageSpan() 136 InputStream is = mContext.getContentResolver().openInputStream( in getDrawable() 139 drawable = new BitmapDrawable(mContext.getResources(), bitmap); in getDrawable() 148 drawable = mContext.getResources().getDrawable(mResourceId); in getDrawable()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 42 Context mContext; field in SimpleCursorAdapterTest 58 mContext = getContext(); in setUp() 89 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo); in testCreateLive() 100 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, null, mFrom, mTo); in testCreateNull() 111 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo); in testChangeCursorLive() 130 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo); in testChangeCursorNull() 149 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, mCursor2x2, in testChangeCursorColumns() 175 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, null, null, null); in testNullConstructor() 185 … TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, null, null, null); in testChangeNullToMapped() 208 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, mCursor2x2, in testChangeMapping()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeXmlPullAttributes.java | 35 private final BridgeContext mContext; field in BridgeXmlPullAttributes 41 mContext = context; in BridgeXmlPullAttributes() 72 if (mContext.getProjectCallback().getNamespace().equals(ns)) { in getAttributeNameResource() 73 Integer v = mContext.getProjectCallback().getResourceId(ResourceType.ATTR, name); in getAttributeNameResource() 106 RenderResources resources = mContext.getRenderResources(); in resolveResourceValue() 115 id = mContext.getProjectCallback().getResourceId( in resolveResourceValue()
|
/frameworks/base/packages/VpnServices/src/com/android/server/vpn/ |
D | VpnService.java | 61 transient VpnServiceBinder mContext; field in VpnService 114 mContext = context; in recover() 231 mContext.saveStates(); in saveSelf() 248 mContext.removeStates(); in onFinalCleanUp() 249 mContext.stopSelf(); in onFinalCleanUp() 305 VpnManager m = new VpnManager(mContext); in broadcastConnectivity() 424 n.setLatestEventInfo(mContext, title, in update() 436 n.setLatestEventInfo(mContext, title, in showDisconnect() 445 ((NotificationManager) mContext.getSystemService( in disableNotification() 450 ((NotificationManager) mContext.getSystemService( in enableNotification() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 78 mContext = context; in NotificationManager() 108 String pkg = mContext.getPackageName(); in notify() 137 String pkg = mContext.getPackageName(); in cancel() 152 String pkg = mContext.getPackageName(); in cancelAll() 160 private Context mContext; field in NotificationManager
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CallerInfoTest.java | 39 private Context mContext; field in CallerInfoTest 48 mContext = new MockContext(); in setUp() 67 mInfo = CallerInfo.getCallerInfo(mContext, "911"); in testEmergencyIsProperlySet() 70 mInfo = CallerInfo.getCallerInfo(mContext, "tel:911"); in testEmergencyIsProperlySet() 75 mInfo = CallerInfo.getCallerInfo(mContext, "18001234567"); in testEmergencyIsProperlySet() 106 mInfo = CallerInfo.getCallerInfo(mContext, "911"); in testEmergencyNumberAndPhotoAreSet() 191 CallerInfoAsyncQuery.startQuery(kToken, mContext, mNumber, this, null); in run()
|
/frameworks/base/core/java/android/server/ |
D | BluetoothService.java | 93 private final Context mContext; field in BluetoothService 181 mContext = context; in BluetoothService() 207 mA2dpProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.A2DP); in BluetoothService() 208 mHfpProfileState = new BluetoothProfileState(mContext, BluetoothProfileState.HFP); in BluetoothService() 217 mContext.registerReceiver(mReceiver, filter); in BluetoothService() 290 mEventLoop = new BluetoothEventLoop(mContext, mAdapter, this); in initAfterRegistration() 295 mContext.unregisterReceiver(mReceiver); in finalize() 304 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isEnabled() 313 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getBluetoothState() 331 … mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in disable() [all …]
|
/frameworks/base/services/java/com/android/server/location/ |
D | GeocoderProxy.java | 42 private final Context mContext; field in GeocoderProxy 48 mContext = context; in GeocoderProxy() 50 mContext.bindService(mIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in GeocoderProxy() 59 mContext.unbindService(mServiceConnection); in reconnect() 61 mContext.bindService(mIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in reconnect()
|