Home
last modified time | relevance | path

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

123

/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareSession.java72 WifiAwareManager mgr = mMgr.get(); in close() local
73 if (mgr == null) { in close()
77 mgr.disconnect(mClientId, mBinder); in close()
132 WifiAwareManager mgr = mMgr.get(); in publish() local
133 if (mgr == null) { in publish()
141 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish()
178 WifiAwareManager mgr = mMgr.get(); in subscribe() local
179 if (mgr == null) { in subscribe()
187 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
221 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen() local
[all …]
DDiscoverySession.java101 WifiAwareManager mgr = mMgr.get(); in close() local
102 if (mgr == null) { in close()
106 mgr.terminateSession(mClientId, mSessionId); in close()
185 WifiAwareManager mgr = mMgr.get(); in sendMessage() local
186 if (mgr == null) { in sendMessage()
191 mgr.sendMessage(mClientId, mSessionId, peerHandle, message, messageId, retryCount); in sendMessage()
248 WifiAwareManager mgr = mMgr.get(); in startRanging() local
249 if (mgr == null) { in startRanging()
254 mgr.startRanging(mClientId, mSessionId, params, listener); in startRanging()
296 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen() local
[all …]
DPublishDiscoverySession.java59 WifiAwareManager mgr = mMgr.get(); in updatePublish() local
60 if (mgr == null) { in updatePublish()
65 mgr.updatePublish(mClientId, mSessionId, publishConfig); in updatePublish()
DSubscribeDiscoverySession.java64 WifiAwareManager mgr = mMgr.get(); in updateSubscribe() local
65 if (mgr == null) { in updateSubscribe()
70 mgr.updateSubscribe(mClientId, mSessionId, subscribeConfig); in updateSubscribe()
DWifiAwareManager.java513 WifiAwareManager mgr = mAwareManager.get(); in getAndRemoveRangingListener() local
514 if (mgr == null) { in getAndRemoveRangingListener()
519 synchronized (mgr.mLock) { in getAndRemoveRangingListener()
520 RttManager.RttListener listener = mgr.mRangingListeners.get(rangingId); in getAndRemoveRangingListener()
521 mgr.mRangingListeners.delete(rangingId); in getAndRemoveRangingListener()
532 WifiAwareEventCallbackProxy(WifiAwareManager mgr, Looper looper, Binder binder, in WifiAwareEventCallbackProxy() argument
535 mAwareManager = new WeakReference<>(mgr); in WifiAwareEventCallbackProxy()
548 WifiAwareManager mgr = mAwareManager.get(); in WifiAwareEventCallbackProxy()
549 if (mgr == null) { in WifiAwareEventCallbackProxy()
557 new WifiAwareSession(mgr, mBinder, msg.arg1)); in WifiAwareEventCallbackProxy()
[all …]
/frameworks/base/native/android/
Dstorage_manager.cpp40 explicit 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);
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp201 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetSensorAtIndex() local
204 ssize_t count = mgr->getSensorList(&sensorList); in nativeGetSensorAtIndex()
215 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetDynamicSensors() local
220 mgr->getDynamicSensorList(nativeList); in nativeGetDynamicSensors()
231 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeIsDataInjectionEnabled() local
232 return mgr->isDataInjectionEnabled(); in nativeIsDataInjectionEnabled()
256 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeCreateDirectChannel() local
257 return mgr->createDirectChannel(size, channelType, nativeHandle); in nativeCreateDirectChannel()
262 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeDestroyDirectChannel() local
263 mgr->destroyDirectChannel(channelHandle); in nativeDestroyDirectChannel()
[all …]
/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()
DBluetoothAvrcpController.java125 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothAvrcpController() local
126 if (mgr != null) { in BluetoothAvrcpController()
128 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothAvrcpController()
151 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
152 if (mgr != null) { in close()
154 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothPbapClient.java102 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothPbapClient() local
103 if (mgr != null) { in BluetoothPbapClient()
105 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothPbapClient()
140 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
141 if (mgr != null) { in close()
143 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothMap.java95 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothMap() local
96 if (mgr != null) { in BluetoothMap()
98 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothMap()
133 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
134 if (mgr != null) { in close()
136 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()
DBluetoothA2dpSink.java168 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothA2dpSink() local
169 if (mgr != null) { in BluetoothA2dpSink()
171 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothA2dpSink()
194 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
195 if (mgr != null) { in close()
197 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothMapClient.java112 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothMapClient() local
113 if (mgr != null) { in BluetoothMapClient()
115 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothMapClient()
150 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
151 if (mgr != null) { in close()
153 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothInputHost.java223 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothInputHost() local
224 if (mgr != null) { in BluetoothInputHost()
226 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothInputHost()
251 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
252 if (mgr != null) { in close()
254 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
/frameworks/base/core/java/android/os/
DSystemClock.java146 IAlarmManager mgr = IAlarmManager.Stub.asInterface(b); in setCurrentTimeMillis() local
147 if (mgr == null) { in setCurrentTimeMillis()
152 return mgr.setTime(millis); in setCurrentTimeMillis()
/frameworks/base/core/java/android/content/
DBroadcastReceiver.java205 final IActivityManager mgr = ActivityManager.getService(); in finish() local
221 sendFinished(mgr); in finish()
227 sendFinished(mgr); in finish()
232 final IActivityManager mgr = ActivityManager.getService(); in finish() local
233 sendFinished(mgr); in finish()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java165 public static Typeface createFromResources(AssetManager mgr, String path, int cookie) { in createFromResources() argument
169 mgr, path, 0 /* ttcIndex */, null /* axes */, in createFromResources()
176 if (fontFamily.addFontFromAssetManager(mgr, path, cookie, false /* isAsset */, in createFromResources()
199 FamilyResourceEntry entry, AssetManager mgr, String path) { in createFromResources() argument
224 Typeface typeface = findFromCache(mgr, path); in createFromResources()
234 if (!fontFamily.addFontFromAssetManager(mgr, fontFile.getFileName(), in createFromResources()
247 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, in createFromResources()
261 public static Typeface findFromCache(AssetManager mgr, String path) { in findFromCache() argument
263 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, null /* axes */, in findFromCache()
500 private static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
[all …]
DFontFamily.java138 public boolean addFontFromAssetManager(AssetManager mgr, String path, int cookie, in addFontFromAssetManager() argument
149 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, in addFontFromAssetManager()
196 private static native boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, in nAddFontFromAssetManager() argument
/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.java127 InputMethodManager mgr = (InputMethodManager) in openIme() local
133 mgr.showSoftInput(v, 0); in openIme()
143 InputMethodManager mgr = (InputMethodManager) in closeIme() local
145 mgr.hideSoftInputFromWindow(v.getWindowToken(), 0); in closeIme()

123