Home
last modified time | relevance | path

Searched refs:manager (Results 1 – 25 of 217) sorted by relevance

123456789

/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java54 private MtpStorageManager manager; field in MtpStorageManagerTest
143 manager = new MtpStorageManager(new MtpStorageManager.MtpNotifier() { in before()
163 mainMtpStorage = manager.addMtpStorage(mainStorage); in before()
164 secondaryMtpStorage = manager.addMtpStorage(secondaryStorage); in before()
169 manager.close(); in after()
179 MtpStorageManager.MtpObject obj = manager.getStorageRoot(mainMtpStorage.getStorageId()); in testMtpObjectGetNameRoot()
188 List<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetNameNonRoot()
197 MtpStorageManager.MtpObject obj = manager.getStorageRoot(mainMtpStorage.getStorageId()); in testMtpObjectGetIdRoot()
206 List<MtpStorageManager.MtpObject> stream = manager.getObjects(0xFFFFFFFF, 0, in testMtpObjectGetIdNonRoot()
215 MtpStorageManager.MtpObject obj = manager.getStorageRoot(mainMtpStorage.getStorageId()); in testMtpObjectIsDirTrue()
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DAutoConditionLock.cpp26 AutoConditionLock::AutoConditionLock(const std::shared_ptr<WaitableMutexWrapper>& manager) : in AutoConditionLock() argument
27 mManager{manager}, mAutoLock{manager->mMutex}, mAcquired(false) {} in AutoConditionLock()
39 const std::shared_ptr<WaitableMutexWrapper>& manager, nsecs_t waitTime) { in waitAndAcquire() argument
41 if (manager == nullptr || manager->mMutex == nullptr) { in waitAndAcquire()
47 std::unique_ptr<AutoConditionLock> scopedLock(new AutoConditionLock(manager)); in waitAndAcquire()
53 while(manager->mState) { in waitAndAcquire()
54 status_t ret = manager->mCondition.waitRelative(*(manager->mMutex), waitTime); in waitAndAcquire()
63 manager->mState = true; in waitAndAcquire()
69 const std::shared_ptr<WaitableMutexWrapper>& manager) { in waitAndAcquire() argument
71 if (manager == nullptr || manager->mMutex == nullptr) { in waitAndAcquire()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/
DLightsServiceTest.java92 LightsManager manager = new LightsManager(mContext, service.mManagerService); in testGetLights_filtersSystemLights() local
95 assertThat(manager.getLights().size()).isEqualTo(4); in testGetLights_filtersSystemLights()
101 LightsManager manager = new LightsManager(mContext, service.mManagerService); in testControlMultipleLights() local
104 LightsManager.LightsSession session = manager.openSession(); in testControlMultipleLights()
106 .setLight(manager.getLights().get(0), new LightState(0xf1)) in testControlMultipleLights()
107 .setLight(manager.getLights().get(1), new LightState(0xf2)) in testControlMultipleLights()
108 .setLight(manager.getLights().get(2), new LightState(0xf3)) in testControlMultipleLights()
112 assertThat(manager.getLightState(manager.getLights().get(0)).getColor()).isEqualTo(0xf1); in testControlMultipleLights()
113 assertThat(manager.getLightState(manager.getLights().get(1)).getColor()).isEqualTo(0xf2); in testControlMultipleLights()
114 assertThat(manager.getLightState(manager.getLights().get(2)).getColor()).isEqualTo(0xf3); in testControlMultipleLights()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DNetIdManagerTest.kt33 val manager = NetIdManager(MIN_NET_ID + 4) in testReserveReleaseNetId() constant
34 assertEquals(MIN_NET_ID, manager.reserveNetId()) in testReserveReleaseNetId()
35 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()
36 assertEquals(MIN_NET_ID + 2, manager.reserveNetId()) in testReserveReleaseNetId()
37 assertEquals(MIN_NET_ID + 3, manager.reserveNetId()) in testReserveReleaseNetId()
39 manager.releaseNetId(MIN_NET_ID + 1) in testReserveReleaseNetId()
40 manager.releaseNetId(MIN_NET_ID + 3) in testReserveReleaseNetId()
42 assertEquals(MIN_NET_ID + 4, manager.reserveNetId()) in testReserveReleaseNetId()
43 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()
44 assertEquals(MIN_NET_ID + 3, manager.reserveNetId()) in testReserveReleaseNetId()
[all …]
/frameworks/base/cmds/statsd/tests/
DConfigManager_test.cpp74 sp<ConfigManager> manager = new ConfigManager(); in TEST() local
75 manager->AddListener(listener); in TEST()
89 manager->StartupForTest(); in TEST()
95 manager->UpdateConfig(ConfigKey(1, StringToId("zzz")), config91); in TEST()
101 manager->UpdateConfig(ConfigKey(1, StringToId("zzz")), config92); in TEST()
107 manager->UpdateConfig(ConfigKey(1, StringToId("yyy")), config93); in TEST()
113 manager->UpdateConfig(ConfigKey(2, StringToId("zzz")), config94); in TEST()
118 manager->RemoveConfig(ConfigKey(1, StringToId("yyy"))); in TEST()
123 manager->RemoveConfig(ConfigKey(2, StringToId("zzz"))); in TEST()
128 manager->RemoveConfig(ConfigKey(1, StringToId("zzz"))); in TEST()
[all …]
/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java86 NsdManager manager = mManager; in testResolveService() local
92 manager.resolveService(request, listener); in testResolveService()
98 manager.resolveService(request, listener); in testResolveService()
106 NsdManager manager = mManager; in testParallelResolveService() local
114 manager.resolveService(request, listener1); in testParallelResolveService()
117 manager.resolveService(request, listener2); in testParallelResolveService()
129 NsdManager manager = mManager; in testRegisterService() local
139 manager.registerService(request1, PROTOCOL, listener1); in testRegisterService()
142 manager.registerService(request2, PROTOCOL, listener2); in testRegisterService()
154 manager.registerService(request1, PROTOCOL, listener1); in testRegisterService()
[all …]
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java141 ILocationProviderManager manager = mManager; in setEnabled() local
142 if (manager != null) { in setEnabled()
144 manager.onSetEnabled(mEnabled); in setEnabled()
161 ILocationProviderManager manager = mManager; in setProperties() local
162 if (manager != null) { in setProperties()
164 manager.onSetProperties(mProperties); in setProperties()
185 ILocationProviderManager manager = mManager; in setAdditionalProviderPackages() local
186 if (manager != null) { in setAdditionalProviderPackages()
188 manager.onSetAdditionalProviderPackages(mAdditionalProviderPackages); in setAdditionalProviderPackages()
208 ILocationProviderManager manager = mManager; in reportLocation() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerTest.java85 AccessibilityManager manager = in createManager() local
89 mHandler.setCallback(manager.getCallback()); in createManager()
91 return manager; in createManager()
107 AccessibilityManager manager = createManager(true); in testGetAccessibilityServiceList() local
109 manager.getInstalledAccessibilityServiceList(); in testGetAccessibilityServiceList()
118 AccessibilityManager manager = createManager(WITH_A11Y_ENABLED); in testInterrupt() local
119 manager.interrupt(); in testInterrupt()
127 AccessibilityManager manager = createManager(WITH_A11Y_ENABLED); in testIsEnabled() local
128 assertTrue("Must be enabled since the mock service is enabled", manager.isEnabled()); in testIsEnabled()
131 manager.getClient().setState(0); in testIsEnabled()
[all …]
/frameworks/av/camera/ndk/include/camera/
DNdkCameraManager.h75 void ACameraManager_delete(ACameraManager* manager) __INTRODUCED_IN(24);
103 camera_status_t ACameraManager_getCameraIdList(ACameraManager* manager,
171 ACameraManager* manager,
189 ACameraManager* manager,
215 ACameraManager* manager, const char* cameraId,
274 ACameraManager* manager, const char* cameraId,
355 ACameraManager* manager,
374 ACameraManager* manager,
389 camera_status_t ACameraManager_getTagFromName(ACameraManager *manager, const char* cameraId,
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java209 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRelease() local
219 manager.requestNetwork(request, callback, handler); in testCallbackRelease()
227 manager.unregisterNetworkCallback(callback); in testCallbackRelease()
237 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRecycling() local
248 manager.requestNetwork(req1, callback, handler); in testCallbackRecycling()
256 manager.unregisterNetworkCallback(callback); in testCallbackRecycling()
267 manager.requestNetwork(req2, callback, handler); in testCallbackRecycling()
274 manager.unregisterNetworkCallback(callback); in testCallbackRecycling()
281 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in noDoubleCallbackRegistration() local
293 manager.requestNetwork(request, callback, handler); in noDoubleCallbackRegistration()
[all …]
/frameworks/base/native/android/
Dsensor.cpp46 if (manager == nullptr) { \
76 int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list) { in ASensorManager_getSensorList() argument
79 int c = static_cast<SensorManager*>(manager)->getSensorList(&l); in ASensorManager_getSensorList()
86 ASensor const* ASensorManager_getDefaultSensor(ASensorManager* manager, int type) { in ASensorManager_getDefaultSensor() argument
88 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor()
91 ASensor const* ASensorManager_getDefaultSensorEx(ASensorManager* manager, int type, bool wakeUp) { in ASensorManager_getDefaultSensorEx() argument
94 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx()
104 ASensorEventQueue* ASensorManager_createEventQueue(ASensorManager* manager, in ASensorManager_createEventQueue() argument
114 static_cast<SensorManager*>(manager)->createEventQueue(); in ASensorManager_createEventQueue()
119 queue->incStrong(manager); in ASensorManager_createEventQueue()
[all …]
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationManagerTest.java32 private LocationManager manager; field in LocationManagerTest
37 manager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
38 assertNotNull(manager); in setUp()
42 LocationProvider p = manager.getProvider("bogus"); in testGetBogusProvider()
47 LocationProvider p = manager.getProvider("network"); in testGetNetworkProvider()
52 LocationProvider p = manager.getProvider("gps"); in testGetGpsProvider()
57 String p = manager.getBestProvider(new Criteria(), true); in testGetBestProviderEmptyCriteria()
64 String p = manager.getBestProvider(c, true); in testGetBestProviderPowerCriteria()
68 p = manager.getBestProvider(c, true); in testGetBestProviderPowerCriteria()
72 p = manager.getBestProvider(c, true); in testGetBestProviderPowerCriteria()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DNV12Compressor.cpp242 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in initDestination() local
245 manager->mBuffer.resize(16 * 1024); in initDestination()
246 manager->next_output_byte = &manager->mBuffer[0]; in initDestination()
247 manager->free_in_buffer = manager->mBuffer.size(); in initDestination()
252 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in emptyOutputBuffer() local
256 size_t oldSize = manager->mBuffer.size(); in emptyOutputBuffer()
257 manager->mBuffer.resize(oldSize * 2); in emptyOutputBuffer()
258 manager->next_output_byte = &manager->mBuffer[oldSize]; in emptyOutputBuffer()
259 manager->free_in_buffer = manager->mBuffer.size() - oldSize; in emptyOutputBuffer()
260 return manager->free_in_buffer != 0; in emptyOutputBuffer()
[all …]
/frameworks/native/cmds/servicemanager/
Dmain.cpp71 …c sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& manager) { in setupTo() argument
72 sp<ClientCallbackCallback> cb = new ClientCallbackCallback(manager); in setupTo()
112 ClientCallbackCallback(const sp<ServiceManager>& manager) : mManager(manager) {} in ClientCallbackCallback() argument
127 sp<ServiceManager> manager = new ServiceManager(std::make_unique<Access>()); in main() local
128 …if (!manager->addService("manager", manager, false /*allowIsolated*/, IServiceManager::DUMP_FLAG_P… in main()
132 IPCThreadState::self()->setTheContextObject(manager); in main()
138 ClientCallbackCallback::setupTo(looper, manager); in main()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerTest.java62 TestIconManager manager = new TestIconManager(layout); in testSetCalledOnAdd_IconManager() local
63 testCallOnAdd_forManager(manager); in testSetCalledOnAdd_IconManager()
69 TestDarkIconManager manager = new TestDarkIconManager(layout); in testSetCalledOnAdd_DarkIconManager() local
70 testCallOnAdd_forManager(manager); in testSetCalledOnAdd_DarkIconManager()
74 private <T extends IconManager & TestableIconManager> void testCallOnAdd_forManager(T manager) { in testCallOnAdd_forManager() argument
76 manager.onIconAdded(0, "test_slot", false, holder); in testCallOnAdd_forManager()
78 (manager.getViewAt(0) instanceof StatusBarIconView)); in testCallOnAdd_forManager()
81 manager.onIconAdded(1, "test_wifi", false, holder); in testCallOnAdd_forManager()
82 assertTrue(manager.getViewAt(1) instanceof StatusBarWifiView); in testCallOnAdd_forManager()
85 manager.onIconAdded(2, "test_mobile", false, holder); in testCallOnAdd_forManager()
[all …]
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorManager.cpp210 if (manager == NULL) { \
229 int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list) { in ASensorManager_getSensorList() argument
231 return manager->getSensorList(list); in ASensorManager_getSensorList()
235 ASensorManager* manager, int type) { in ASensorManager_getDefaultSensor() argument
238 return manager->getDefaultSensor(type); in ASensorManager_getDefaultSensor()
243 ASensorManager* manager, int type, bool wakeUp) {
246 return manager->getDefaultSensorEx(type, wakeUp);
251 ASensorManager* manager, in ASensorManager_createEventQueue() argument
262 return manager->createEventQueue(looper, ident, callback, data); in ASensorManager_createEventQueue()
266 ASensorManager* manager, ASensorEventQueue* queue) { in ASensorManager_destroyEventQueue() argument
[all …]
/frameworks/native/cmds/lshal/
DLshal.h39 sp<hidl::manager::V1_0::IServiceManager> serviceManager,
40 sp<hidl::manager::V1_0::IServiceManager> passthroughManager);
46 const sp<hidl::manager::V1_0::IServiceManager> &serviceManager() const;
47 const sp<hidl::manager::V1_0::IServiceManager> &passthroughManager() const;
68 sp<hidl::manager::V1_0::IServiceManager> mServiceManager;
69 sp<hidl::manager::V1_0::IServiceManager> mPassthroughManager;
DListCommand.h98 Status fetchPassthrough(const sp<::android::hidl::manager::V1_0::IServiceManager> &manager);
99 Status fetchBinderized(const sp<::android::hidl::manager::V1_0::IServiceManager> &manager);
100 Status fetchAllLibraries(const sp<::android::hidl::manager::V1_0::IServiceManager> &manager);
104 Status fetchBinderizedEntry(const sp<::android::hidl::manager::V1_0::IServiceManager> &manager,
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestUtil.java52 MtpManager manager) { in setupMtpDevice() argument
55 final UsbDevice device = findMtpDevice(usbManager, manager); in setupMtpDevice()
56 waitForStorages(instrumentation, manager, device.getDeviceId()); in setupMtpDevice()
87 MtpManager manager) throws IOException { in findMtpDevice() argument
104 manager.openDevice(device.getDeviceId()); in findMtpDevice()
110 MtpManager manager, in waitForStorages() argument
114 for (final MtpDeviceRecord deviceCandidate : manager.getDevices()) { in waitForStorages()
/frameworks/native/include/android/
Dsensor.h575 int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list);
581 ASensor const* ASensorManager_getDefaultSensor(ASensorManager* manager, int type);
590 ASensor const* ASensorManager_getDefaultSensorEx(ASensorManager* manager, int type, bool wakeUp) __…
600 ASensorEventQueue* ASensorManager_createEventQueue(ASensorManager* manager,
606 int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue* queue);
627 int ASensorManager_createSharedMemoryDirectChannel(ASensorManager* manager, int fd, size_t size) __…
647 ASensorManager* manager, AHardwareBuffer const * buffer, size_t size) __INTRODUCED_IN(26);
664 void ASensorManager_destroyDirectChannel(ASensorManager* manager, int channelId) __INTRODUCED_IN(26…
703 int ASensorManager_configureDirectReport(ASensorManager* manager,
/frameworks/native/include_sensor/android/
Dsensor.h575 int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list);
581 ASensor const* ASensorManager_getDefaultSensor(ASensorManager* manager, int type);
590 ASensor const* ASensorManager_getDefaultSensorEx(ASensorManager* manager, int type, bool wakeUp) __…
600 ASensorEventQueue* ASensorManager_createEventQueue(ASensorManager* manager,
606 int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue* queue);
627 int ASensorManager_createSharedMemoryDirectChannel(ASensorManager* manager, int fd, size_t size) __…
647 ASensorManager* manager, AHardwareBuffer const * buffer, size_t size) __INTRODUCED_IN(26);
664 void ASensorManager_destroyDirectChannel(ASensorManager* manager, int channelId) __INTRODUCED_IN(26…
703 int ASensorManager_configureDirectReport(ASensorManager* manager,
/frameworks/av/services/audiopolicy/tests/
Daudio_health_tests.cpp66 AudioPolicyTestManager manager(&client); in TEST() local
67 manager.loadConfig(); in TEST()
68 ASSERT_NE("AudioPolicyConfig::setDefault", manager.getConfig().getSource()); in TEST()
70 for (auto desc : manager.getConfig().getInputDevices()) { in TEST()
73 for (auto desc : manager.getConfig().getOutputDevices()) { in TEST()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsCallbackAdapterManager.java66 SubscriptionManager manager = mContext.getSystemService(SubscriptionManager.class); in ImsCallbackAdapterManager()
67 if (manager == null) { in ImsCallbackAdapterManager()
73 List<SubscriptionInfo> subInfos = manager.getActiveSubscriptionInfoList(false); in ImsCallbackAdapterManager()
223 SubscriptionManager manager = mContext.getSystemService(SubscriptionManager.class); in registerForSubscriptionsChanged() local
224 if (manager != null) { in registerForSubscriptionsChanged()
225 manager.addOnSubscriptionsChangedListener(mSubChangedListener); in registerForSubscriptionsChanged()
233 SubscriptionManager manager = mContext.getSystemService(SubscriptionManager.class); in unregisterForSubscriptionsChanged() local
234 if (manager != null) { in unregisterForSubscriptionsChanged()
235 manager.removeOnSubscriptionsChangedListener(mSubChangedListener); in unregisterForSubscriptionsChanged()
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp42 void ACameraManager_delete(ACameraManager* manager) { in ACameraManager_delete() argument
44 if (manager != nullptr) { in ACameraManager_delete()
45 delete manager; in ACameraManager_delete()
51 ACameraManager* manager, ACameraIdList** cameraIdList) { in ACameraManager_getCameraIdList() argument
53 if (manager == nullptr || cameraIdList == nullptr) { in ACameraManager_getCameraIdList()
55 __FUNCTION__, manager, cameraIdList); in ACameraManager_getCameraIdList()
58 return manager->getCameraIdList(cameraIdList); in ACameraManager_getCameraIdList()
/frameworks/base/core/java/android/nfc/dta/
DNfcDta.java58 NfcDta manager = sNfcDtas.get(context); in getInstance() local
59 if (manager == null) { in getInstance()
65 manager = new NfcDta(context, service); in getInstance()
66 sNfcDtas.put(context, manager); in getInstance()
68 return manager; in getInstance()

123456789