Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/native/android/
Dstorage_manager.cpp40 ObbActionListener(AStorageManager* mgr) : in ObbActionListener()
41 mStorageManager(mgr) in ObbActionListener()
172 sp<AStorageManager> mgr = new AStorageManager(); in AStorageManager_new() local
173 if (mgr == NULL || !mgr->initialize()) { in AStorageManager_new()
176 mgr->incStrong((void*)AStorageManager_new); in AStorageManager_new()
177 return static_cast<AStorageManager*>(mgr.get()); in AStorageManager_new()
180 void AStorageManager_delete(AStorageManager* mgr) { in AStorageManager_delete() argument
181 if (mgr) { in AStorageManager_delete()
182 mgr->decStrong((void*)AStorageManager_new); in AStorageManager_delete()
186 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, in AStorageManager_mountObb() argument
[all …]
Dasset_manager.cpp107 AssetManager* mgr = static_cast<AssetManager*>(amgr); in AAssetManager_open() local
108 Asset* asset = mgr->open(filename, amMode); in AAssetManager_open()
118 AssetManager* mgr = static_cast<AssetManager*>(amgr); in AAssetManager_openDir() local
119 return new AAssetDir(mgr->openDir(dirName)); in AAssetManager_openDir()
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp103 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ in ACameraManager_getCameraCharacteristics() argument
105 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { in ACameraManager_getCameraCharacteristics()
107 __FUNCTION__, mgr, cameraId, chars); in ACameraManager_getCameraCharacteristics()
110 return mgr->getCameraCharacteristics(cameraId, chars); in ACameraManager_getCameraCharacteristics()
115 ACameraManager* mgr, const char* cameraId, in ACameraManager_openCamera() argument
119 if (mgr == nullptr || cameraId == nullptr || callback == nullptr || device == nullptr) { in ACameraManager_openCamera()
121 __FUNCTION__, mgr, cameraId, callback, device); in ACameraManager_openCamera()
124 return mgr->openCamera(cameraId, callback, device); in ACameraManager_openCamera()
/frameworks/native/include/android/
Dstorage_manager.h108 void AStorageManager_delete(AStorageManager* mgr);
128 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key,
134 void AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force,
140 int AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename);
145 const char* AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename);
Dasset_manager.h88 AAssetDir* AAssetManager_openDir(AAssetManager* mgr, const char* dirName);
95 AAsset* AAssetManager_open(AAssetManager* mgr, const char* filename, int mode);
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main() local
68 ssize_t count = mgr.getSensorList(&list); in main()
71 sp<SensorEventQueue> q = mgr.createEventQueue(); in main()
74 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/frameworks/base/core/java/android/bluetooth/
DBluetoothPbap.java148 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothPbap() local
149 if (mgr != null) { in BluetoothPbap()
151 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothPbap()
186 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
187 if (mgr != null) { in close()
189 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothPbapClient.java100 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothPbapClient() local
101 if (mgr != null) { in BluetoothPbapClient()
103 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothPbapClient()
138 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
139 if (mgr != null) { in close()
141 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothA2dpSink.java167 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothA2dpSink() local
168 if (mgr != null) { in BluetoothA2dpSink()
170 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothA2dpSink()
193 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
194 if (mgr != null) { in close()
196 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothSap.java129 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothSap() local
130 if (mgr != null) { in BluetoothSap()
132 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothSap()
168 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
169 if (mgr != null) { in close()
171 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothMap.java92 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothMap() local
93 if (mgr != null) { in BluetoothMap()
95 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothMap()
130 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
131 if (mgr != null) { in close()
133 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothAvrcpController.java167 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothAvrcpController() local
168 if (mgr != null) { in BluetoothAvrcpController()
170 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothAvrcpController()
193 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
194 if (mgr != null) { in close()
196 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothHealth.java474 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothHealth() local
475 if (mgr != null) { in BluetoothHealth()
477 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothHealth()
500 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
501 if (mgr != null) { in close()
503 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothA2dp.java163 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothA2dp() local
164 if (mgr != null) { in BluetoothA2dp()
166 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothA2dp()
189 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
190 if (mgr != null) { in close()
192 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothInputDevice.java246 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothInputDevice() local
247 if (mgr != null) { in BluetoothInputDevice()
249 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothInputDevice()
272 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
273 if (mgr != null) { in close()
275 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothHeadset.java303 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothHeadset() local
304 if (mgr != null) { in BluetoothHeadset()
306 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothHeadset()
347 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
348 if (mgr != null) { in close()
350 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
/frameworks/base/core/java/android/os/
DSystemClock.java144 IAlarmManager mgr = IAlarmManager.Stub.asInterface(b); in setCurrentTimeMillis() local
145 if (mgr == null) { in setCurrentTimeMillis()
150 return mgr.setTime(millis); in setCurrentTimeMillis()
/frameworks/base/core/jni/
Dandroid_hardware_location_ContextHubService.cpp166 txnManager_s *mgr = &db.txnManager; in initTxnManager() local
168 mgr->txnData = nullptr; in initTxnManager()
169 mgr->txnPending = false; in initTxnManager()
174 txnManager_s *mgr = &db.txnManager; in addTxn() local
176 std::lock_guard<std::mutex>lock(mgr->m); in addTxn()
178 mgr->txnPending = true; in addTxn()
179 mgr->txnData = txnData; in addTxn()
180 mgr->txnIdentifier = txnIdentifier; in addTxn()
186 txnManager_s *mgr = &db.txnManager; in closeTxn() local
187 std::lock_guard<std::mutex>lock(mgr->m); in closeTxn()
[all …]
Dandroid_hardware_SensorManager.cpp212 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetSensorAtIndex() local
215 ssize_t count = mgr->getSensorList(&sensorList); in nativeGetSensorAtIndex()
226 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetDynamicSensors() local
231 mgr->getDynamicSensorList(nativeList); in nativeGetDynamicSensors()
242 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeIsDataInjectionEnabled() local
243 return mgr->isDataInjectionEnabled(); in nativeIsDataInjectionEnabled()
380 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeInitSensorEventQueue() local
383 sp<SensorEventQueue> queue(mgr->createEventQueue(clientName, mode)); in nativeInitSensorEventQueue()
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java88 public boolean addFontFromAsset(AssetManager mgr, String path) { in addFontFromAsset() argument
89 return nAddFontFromAsset(mNativePtr, mgr, path); in addFontFromAsset()
98 private static native boolean nAddFontFromAsset(long nativeFamily, AssetManager mgr, in nAddFontFromAsset() argument
DTypeface.java190 public static Typeface createFromAsset(AssetManager mgr, String path) { in createFromAsset() argument
193 final String key = createAssetUid(mgr, path); in createFromAsset()
198 if (fontFamily.addFontFromAsset(mgr, path)) { in createFromAsset()
216 private static String createAssetUid(final AssetManager mgr, String path) { in createAssetUid() argument
217 final SparseArray<String> pkgs = mgr.getAssignedPackageIdentifiers(); in createAssetUid()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java206 ImsManager mgr = new ImsManager(context, phoneId); in getInstance()
207 sImsManagerInstances.put(phoneId, mgr); in getInstance()
209 return mgr; in getInstance()
288 ImsManager mgr = ImsManager.getInstance(context, in isVolteProvisionedOnDevice() local
290 if (mgr != null) { in isVolteProvisionedOnDevice()
291 return mgr.isVolteProvisioned(); in isVolteProvisionedOnDevice()
304 ImsManager mgr = ImsManager.getInstance(context, in isWfcProvisionedOnDevice() local
306 if (mgr != null) { in isWfcProvisionedOnDevice()
307 return mgr.isWfcProvisioned(); in isWfcProvisionedOnDevice()
320 ImsManager mgr = ImsManager.getInstance(context, in isVtProvisionedOnDevice() local
[all …]
/frameworks/base/core/java/android/content/
DBroadcastReceiver.java369 final IActivityManager mgr = ActivityManagerNative.getDefault(); in finish() local
385 sendFinished(mgr); in finish()
391 sendFinished(mgr); in finish()
396 final IActivityManager mgr = ActivityManagerNative.getDefault(); in finish() local
397 sendFinished(mgr); in finish()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java25 StorageManager mgr = (StorageManager) getSystemService(Context.STORAGE_SERVICE); in onCreate() local
26 if (mgr != null) { in onCreate()
27 mVolumes = mgr.getVolumeList(); in onCreate()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedActionAdapterGroup.java128 InputMethodManager mgr = (InputMethodManager) in openIme() local
134 mgr.showSoftInput(v, 0); in openIme()
144 InputMethodManager mgr = (InputMethodManager) in closeIme() local
146 mgr.hideSoftInputFromWindow(v.getWindowToken(), 0); in closeIme()

12