Home
last modified time | relevance | path

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

12

/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/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/native/services/sensorservice/tests/
Dsensorservicetest.cpp63 void testInvalidSharedMem_NoCrash(SensorManager &mgr) { in testInvalidSharedMem_NoCrash() argument
87 int ret = mgr.createDirectChannel( in testInvalidSharedMem_NoCrash()
95 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main() local
97 testInvalidSharedMem_NoCrash(mgr); in main()
100 ssize_t count = mgr.getSensorList(&list); in main()
103 sp<SensorEventQueue> q = mgr.createEventQueue(); in main()
106 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/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()
283 final IAlarmManager mgr = IAlarmManager.Stub
285 if (mgr != null) {
287 return mgr.currentNetworkTimeMillis();
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java538 ImsManager mgr = ImsManager.getInstance(context, p.getDefaultVoicePhoneId()); in isEnhanced4gLteModeSettingEnabledByUser() local
539 if (mgr != null) { in isEnhanced4gLteModeSettingEnabledByUser()
540 return mgr.isEnhanced4gLteModeSettingEnabledByUser(); in isEnhanced4gLteModeSettingEnabledByUser()
586 ImsManager mgr = ImsManager.getInstance(context, p.getDefaultVoicePhoneId()); in setEnhanced4gLteModeSetting() local
587 if (mgr != null) { in setEnhanced4gLteModeSetting()
588 mgr.setEnhanced4gLteModeSetting(enabled); in setEnhanced4gLteModeSetting()
662 ImsManager mgr = ImsManager.getInstance(context, p.getDefaultVoicePhoneId()); in isNonTtyOrTtyOnVolteEnabled() local
663 if (mgr != null) { in isNonTtyOrTtyOnVolteEnabled()
664 return mgr.isNonTtyOrTtyOnVolteEnabled(); in isNonTtyOrTtyOnVolteEnabled()
699 ImsManager mgr = ImsManager.getInstance(context, p.getDefaultVoicePhoneId()); in isVolteEnabledByPlatform() local
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothProfileConnector.java138 IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager(); in connect() local
149 if (mgr != null) { in connect()
151 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in connect()
161 IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager(); in disconnect() local
162 if (mgr != null) { in disconnect()
164 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in disconnect()
DBluetoothPbap.java151 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothPbap() local
152 if (mgr != null) { in BluetoothPbap()
154 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothPbap()
219 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
220 if (mgr != null) { in close()
222 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
DBluetoothHeadset.java382 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in BluetoothHeadset() local
383 if (mgr != null) { in BluetoothHeadset()
385 mgr.registerStateChangeCallback(mBluetoothStateChangeCallback); in BluetoothHeadset()
436 IBluetoothManager mgr = mAdapter.getBluetoothManager(); in close() local
437 if (mgr != null) { in close()
439 mgr.unregisterStateChangeCallback(mBluetoothStateChangeCallback); in close()
/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/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java85 private static Typeface createFromNonAsset(AssetManager mgr, String path) { in createFromNonAsset() argument
87 Preconditions.checkNotNull(mgr); in createFromNonAsset()
89 Typeface typeface = new Typeface.Builder(mgr, path).build(); in createFromNonAsset()
93 try (InputStream inputStream = mgr.openNonAsset(path)) { in createFromNonAsset()
/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.java293 FamilyResourceEntry entry, AssetManager mgr, String path) { in createFromResources() argument
322 Typeface typeface = findFromCache(mgr, path); in createFromResources()
331 final Font.Builder fontBuilder = new Font.Builder(mgr, fontFile.getFileName(), in createFromResources()
376 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, in createFromResources()
388 public static Typeface findFromCache(AssetManager mgr, String path) { in findFromCache() argument
390 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, null /* axes */, in findFromCache()
618 private static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
620 final SparseArray<String> pkgs = mgr.getAssignedPackageIdentifiers(); in createAssetUid()
1035 public static Typeface createFromAsset(AssetManager mgr, String path) {
1037 Preconditions.checkNotNull(mgr);
[all …]
DFontFamily.java193 public boolean addFontFromAssetManager(AssetManager mgr, String path, int cookie, in addFontFromAssetManager() argument
201 ByteBuffer buffer = Font.Builder.createBuffer(mgr, path, isAsset, cookie); in addFontFromAssetManager()
/frameworks/base/rs/java/android/renderscript/
DFileA3D.java238 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset() argument
240 long fileId = rs.nFileA3DCreateFromAsset(mgr, path); in createFromAsset()
DFont.java188 AssetManager mgr = res.getAssets(); in createFromAsset() local
191 long fontId = rs.nFontCreateFromAsset(mgr, path, pointSize, dpi); in createFromAsset()
DRenderScript.java698 native long rsnFileA3DCreateFromAsset(long con, AssetManager mgr, String path); in rsnFileA3DCreateFromAsset() argument
699 synchronized long nFileA3DCreateFromAsset(AssetManager mgr, String path) { in nFileA3DCreateFromAsset() argument
701 return rsnFileA3DCreateFromAsset(mContext, mgr, path); in nFileA3DCreateFromAsset()
729 … native long rsnFontCreateFromAsset(long con, AssetManager mgr, String path, float size, int dpi); in rsnFontCreateFromAsset() argument
730 synchronized long nFontCreateFromAsset(AssetManager mgr, String path, float size, int dpi) { in nFontCreateFromAsset() argument
732 return rsnFontCreateFromAsset(mContext, mgr, path, size, dpi); in nFontCreateFromAsset()
/frameworks/base/core/tests/coretests/src/android/provider/
DMockFontProvider.java193 final AssetManager mgr = context.getAssets(); in prepareFontFiles() local
195 try (InputStream is = mgr.open("fonts/" + file)) { in prepareFontFiles()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraAgent.java148 public void onReconnectionFailure(final CameraAgent mgr, final String info) { in onReconnectionFailure() argument
152 mCallback.onReconnectionFailure(mgr, info); in onReconnectionFailure()
272 public void onReconnectionFailure(CameraAgent mgr, String info); in onReconnectionFailure() argument
/frameworks/native/libs/sensor/
DSensorManager.cpp157 explicit DeathObserver(SensorManager& mgr) : mSensorManager(mgr) { } in assertStateLocked() argument
/frameworks/base/core/java/android/app/
DLoadedApk.java1597 IActivityManager mgr = ActivityManager.getService(); in performReceive() local
1602mgr.finishReceiver(this, resultCode, data, extras, false, intent.getFlags()); in performReceive()
1650 final IActivityManager mgr = ActivityManager.getService(); in getRunnable() local
1664 sendFinished(mgr); in getRunnable()
1684 sendFinished(mgr); in getRunnable()
1772 IActivityManager mgr = ActivityManager.getService(); in performReceive() local
1775 args.sendFinished(mgr); in performReceive()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsManagerTest.java875 ImsManager mgr = new ImsManager(mContext, mPhoneId, in getImsManagerAndInitProvisionedValues() local
880 mgr.associate(c); in getImsManagerAndInitProvisionedValues()
883 return mgr; in getImsManagerAndInitProvisionedValues()

12