Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareSession.java74 WifiAwareManager mgr = mMgr.get(); in close() local
75 if (mgr == null) { in close()
79 mgr.disconnect(mClientId, mBinder); in close()
148 WifiAwareManager mgr = mMgr.get(); in publish() local
149 if (mgr == null) { in publish()
157 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish()
194 WifiAwareManager mgr = mMgr.get(); in subscribe() local
195 if (mgr == null) { in subscribe()
203 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
236 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen() local
[all …]
DDiscoverySession.java102 WifiAwareManager mgr = mMgr.get(); in close() local
103 if (mgr == null) { in close()
107 mgr.terminateSession(mClientId, mSessionId); in close()
214 WifiAwareManager mgr = mMgr.get(); in sendMessage() local
215 if (mgr == null) { in sendMessage()
220 mgr.sendMessage(mClientId, mSessionId, peerHandle, message, messageId, retryCount); in sendMessage()
295 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen() local
296 if (mgr == null) { in createNetworkSpecifierOpen()
305 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, null, null); in createNetworkSpecifierOpen()
354 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierPassphrase() 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.java498 WifiAwareEventCallbackProxy(WifiAwareManager mgr, Looper looper, Binder binder, in WifiAwareEventCallbackProxy() argument
501 mAwareManager = new WeakReference<>(mgr); in WifiAwareEventCallbackProxy()
514 WifiAwareManager mgr = mAwareManager.get(); in WifiAwareEventCallbackProxy()
515 if (mgr == null) { in WifiAwareEventCallbackProxy()
523 new WifiAwareSession(mgr, mBinder, msg.arg1)); in WifiAwareEventCallbackProxy()
592 WifiAwareDiscoverySessionCallbackProxy(WifiAwareManager mgr, Looper looper, in WifiAwareDiscoverySessionCallbackProxy() argument
595 mAwareManager = new WeakReference<>(mgr); in WifiAwareDiscoverySessionCallbackProxy()
783 WifiAwareManager mgr = mAwareManager.get(); in onProxySessionStarted() local
784 if (mgr == null) { in onProxySessionStarted()
790 PublishDiscoverySession session = new PublishDiscoverySession(mgr, in onProxySessionStarted()
[all …]
/frameworks/base/native/android/
Dstorage_manager.cpp41 explicit ObbActionListener(AStorageManager* mgr) : in ObbActionListener()
42 mStorageManager(mgr) in ObbActionListener()
194 sp<AStorageManager> mgr = new AStorageManager(); in AStorageManager_new() local
195 if (mgr == NULL || !mgr->initialize()) { in AStorageManager_new()
198 mgr->incStrong((void*)AStorageManager_new); in AStorageManager_new()
199 return static_cast<AStorageManager*>(mgr.get()); in AStorageManager_new()
202 void AStorageManager_delete(AStorageManager* mgr) { in AStorageManager_delete() argument
203 if (mgr) { in AStorageManager_delete()
204 mgr->decStrong((void*)AStorageManager_new); in AStorageManager_delete()
208 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, in AStorageManager_mountObb() argument
[all …]
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp163 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ in ACameraManager_getCameraCharacteristics() argument
165 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { in ACameraManager_getCameraCharacteristics()
167 __FUNCTION__, mgr, cameraId, chars); in ACameraManager_getCameraCharacteristics()
171 camera_status_t status = mgr->getCameraCharacteristics(cameraId, &spChars); in ACameraManager_getCameraCharacteristics()
182 ACameraManager* mgr, const char* cameraId, in ACameraManager_openCamera() argument
186 if (mgr == nullptr || cameraId == nullptr || callback == nullptr || device == nullptr) { in ACameraManager_openCamera()
188 __FUNCTION__, mgr, cameraId, callback, device); in ACameraManager_openCamera()
191 return mgr->openCamera(cameraId, callback, device); in ACameraManager_openCamera()
196 camera_status_t ACameraManager_getTagFromName(ACameraManager *mgr, const char* cameraId, in ACameraManager_getTagFromName() argument
199 if (mgr == nullptr || cameraId == nullptr || name == nullptr) { in ACameraManager_getTagFromName()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java287 ImsManager mgr = new ImsManager(context, phoneId); in getInstance() local
288 sImsManagerInstances.put(phoneId, mgr); in getInstance()
290 return mgr; in getInstance()
306 ImsManager mgr = ImsManager.getInstance(context, in isEnhanced4gLteModeSettingEnabledByUser() local
308 if (mgr != null) { in isEnhanced4gLteModeSettingEnabledByUser()
309 return mgr.isEnhanced4gLteModeSettingEnabledByUser(); in isEnhanced4gLteModeSettingEnabledByUser()
351 ImsManager mgr = ImsManager.getInstance(context, in setEnhanced4gLteModeSetting() local
353 if (mgr != null) { in setEnhanced4gLteModeSetting()
354 mgr.setEnhanced4gLteModeSetting(enabled); in setEnhanced4gLteModeSetting()
412 ImsManager mgr = ImsManager.getInstance(context, in isNonTtyOrTtyOnVolteEnabled() local
[all …]
/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.h95 AAssetDir* AAssetManager_openDir(AAssetManager* mgr, const char* dirName);
102 AAsset* AAssetManager_open(AAssetManager* mgr, const char* filename, int mode);
/frameworks/layoutlib/bridge/src/android/content/res/
DAssetManager_Delegate.java59 public static InputStream open(AssetManager mgr, String fileName) throws IOException { in open() argument
60 return mgr.open_Original(fileName); in open()
64 public static InputStream open(AssetManager mgr, String fileName, int accessMode) in open() argument
66 if (!(mgr instanceof BridgeAssetManager)) { in open()
67 return mgr.open_Original(fileName, accessMode); in open()
69 return ((BridgeAssetManager) mgr).getAssetRepository().openAsset(fileName, accessMode); in open()
/frameworks/base/core/java/android/bluetooth/
DBluetoothProfileConnector.java122 IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager(); in connect() local
123 if (mgr != null) { in connect()
125 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in connect()
135 IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager(); in disconnect() local
136 if (mgr != null) { in disconnect()
138 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in disconnect()
DBluetoothPbap.java133 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothPbap() local
134 if (mgr != null) { in BluetoothPbap()
136 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothPbap()
200 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
201 if (mgr != null) { in close()
203 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothHeadset.java355 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothHeadset() local
356 if (mgr != null) { in BluetoothHeadset()
358 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothHeadset()
408 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
409 if (mgr != null) { in close()
411 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
/frameworks/base/core/java/android/os/
DSystemClock.java154 final IAlarmManager mgr = IAlarmManager.Stub in setCurrentTimeMillis() local
156 if (mgr == null) { in setCurrentTimeMillis()
162 return mgr.setTime(millis); in setCurrentTimeMillis()
282 final IAlarmManager mgr = IAlarmManager.Stub
284 if (mgr != null) {
286 return mgr.currentNetworkTimeMillis();
/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/layoutlib/bridge/src/android/graphics/
DTypeface_Builder_Delegate.java38 public static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
40 return Builder.createAssetUid_Original(mgr, path, ttcIndex, axes, weight, italic, fallback); in createAssetUid()
/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/base/core/java/android/content/
DBroadcastReceiver.java223 final IActivityManager mgr = ActivityManager.getService(); in finish() local
239 sendFinished(mgr); in finish()
245 sendFinished(mgr); in finish()
250 final IActivityManager mgr = ActivityManager.getService(); in finish() local
251 sendFinished(mgr); in finish()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java219 FamilyResourceEntry entry, AssetManager mgr, String path) { in createFromResources() argument
243 Typeface typeface = findFromCache(mgr, path); in createFromResources()
252 final Font.Builder fontBuilder = new Font.Builder(mgr, fontFile.getFileName(), in createFromResources()
297 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, in createFromResources()
309 public static Typeface findFromCache(AssetManager mgr, String path) { in findFromCache() argument
311 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, null /* axes */, in findFromCache()
539 private static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
541 final SparseArray<String> pkgs = mgr.getAssignedPackageIdentifiers(); in createAssetUid()
956 public static Typeface createFromAsset(AssetManager mgr, String path) {
958 Preconditions.checkNotNull(mgr);
[all …]
DFontFamily.java185 public boolean addFontFromAssetManager(AssetManager mgr, String path, int cookie, in addFontFromAssetManager() argument
196 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, in addFontFromAssetManager()
221 private static native boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, in nAddFontFromAssetManager() argument
/frameworks/base/core/jni/android/graphics/fonts/
DFont.cpp87 Guarded<AssetManager2>* mgr = AssetManagerForJavaObject(env, assetMgr); in Font_Builder_getNativeAsset() local
88 if (mgr == nullptr) { in Font_Builder_getNativeAsset()
99 ScopedLock<AssetManager2> locked_mgr(*mgr); in Font_Builder_getNativeAsset()
/frameworks/base/rs/java/android/renderscript/
DFileA3D.java237 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset() argument
239 long fileId = rs.nFileA3DCreateFromAsset(mgr, path); in createFromAsset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DAirplaneModeTile.java84 final ConnectivityManager mgr = in setEnabled() local
86 mgr.setAirplaneMode(enabled); in setEnabled()

12