Home
last modified time | relevance | path

Searched refs:ServiceManager (Results 1 – 25 of 144) sorted by relevance

123456

/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DServiceManagerHelper.java23 import android.os.ServiceManager;
40 return ServiceManager.getService(name); in getService()
46 return ServiceManager.checkService(name); in checkService()
52 return ServiceManager.waitForDeclaredService(name); in waitForDeclaredService()
57 ServiceManager.addService(name, service); in addService()
63 return ServiceManager.getDeclaredInstances(iface); in getDeclaredInstances()
/packages/services/Car/cpp/watchdog/server/src/
DServiceManager.h37 class ServiceManager final : virtual public android::RefBase {
39 ServiceManager() : in ServiceManager() function
48 static android::sp<ServiceManager> getInstance() { in getInstance()
50 sServiceManager = android::sp<ServiceManager>::make(); in getInstance()
83 inline static android::sp<ServiceManager> sServiceManager = nullptr;
Dmain.cpp30 using ::android::automotive::watchdog::ServiceManager;
44 auto result = ServiceManager::getInstance()->startServices(mainLooper); in main()
47 ServiceManager::terminate(); in main()
57 ServiceManager::terminate(); in main()
DServiceManager.cpp38 Result<void> ServiceManager::startServices(const sp<Looper>& mainLooper) { in startServices()
81 void ServiceManager::terminateServices() { in terminateServices()
106 Result<void> ServiceManager::startWatchdogProcessService(const sp<Looper>& mainLooper) { in startWatchdogProcessService()
115 Result<void> ServiceManager::startPressureMonitor() { in startPressureMonitor()
126 Result<void> ServiceManager::startWatchdogPerfService( in startWatchdogPerfService()
DWatchdogServiceHelper.h41 class ServiceManager; variable
86 friend class ServiceManager;
143 friend class ServiceManager; variable
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DServiceManagerInterface.java21 import android.os.ServiceManager;
51 ServiceManager.waitForDeclaredService(serviceName)); in getBinder()
76 return Arrays.stream(ServiceManager.getDeclaredInstances(irpcInterface)) in getAllInstances()
/packages/apps/Stk/src/com/android/stk/
DStkAppInstaller.java29 import android.os.ServiceManager;
43 IPackageManager pm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in installOrUpdate()
67 IPackageManager pm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in uninstall()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DClearDefaultsPreference.java28 import android.os.ServiceManager;
47 final IBinder usbBinder = ServiceManager.getService(Context.USB_SERVICE); in ClearDefaultsPreference()
108 final IBinder usbBinder = ServiceManager.getService(Context.USB_SERVICE); in onOk()
/packages/apps/Settings/src/com/android/settings/backup/
DPrivacySettingsUtils.java25 import android.os.ServiceManager;
66 ServiceManager.getService(Context.BACKUP_SERVICE)); in getInvisibleKey()
90 ServiceManager.getService(Context.BACKUP_SERVICE)); in updatePrivacyBuffer()
/packages/modules/ImsMedia/test/imsmediahal/src/com/android/telephony/testimsmediahal/
DMediaBroadcastReceiver.java23 import android.os.ServiceManager;
32 ServiceManager.addService(IImsMedia.DESCRIPTOR + "/default", in onReceive()
/packages/apps/Settings/src/com/android/settings/development/
DEmulateDisplayCutoutPreferenceController.java22 import android.os.ServiceManager;
39 .asInterface(ServiceManager.getService(Context.OVERLAY_SERVICE))); in EmulateDisplayCutoutPreferenceController()
DAdbQrCodePreferenceController.java23 import android.os.ServiceManager;
45 mAdbManager = IAdbManager.Stub.asInterface(ServiceManager.getService( in AdbQrCodePreferenceController()
DShortcutManagerThrottlingPreferenceController.java22 import android.os.ServiceManager;
78 ServiceManager.getService(Context.SHORTCUT_SERVICE)); in getShortCutService()
DLocalBackupPasswordPreferenceController.java22 import android.os.ServiceManager;
45 ServiceManager.getService(Context.BACKUP_SERVICE)); in LocalBackupPasswordPreferenceController()
DStrictModePreferenceController.java21 import android.os.ServiceManager;
50 ServiceManager.getService(WINDOW_MANAGER_KEY)); in StrictModePreferenceController()
/packages/services/Car/tools/keventreader/client/src/com/android/car/keventreader/
DEventReaderService.java20 import android.os.ServiceManager;
35 return IEventProvider.Stub.asInterface(ServiceManager.getService(SERVICE_NAME)); in getService()
/packages/apps/Settings/src/com/android/settings/spa/notification/
DAppNotificationRepository.kt32 import android.os.ServiceManager in <lambda>()
65 ServiceManager.getService(Context.USAGE_STATS_SERVICE)
68 ServiceManager.getService(Context.NOTIFICATION_SERVICE)
71 ServiceManager.getService(Context.USER_SERVICE)
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetAppPrefFragmentTest.java36 import android.os.ServiceManager;
99 .mockStatic(ServiceManager.class, withSettings().lenient()) in setUp()
109 when(ServiceManager.getService(Context.NOTIFICATION_SERVICE)).thenReturn( in setUp()
111 when(ServiceManager.getService("package")).thenReturn(packageManagerBinder); in setUp()
/packages/apps/SecureElement/tests/unit/src/com/android/se/
DSecureElementVendorStableInterfaceFlagTest.java21 import android.os.ServiceManager;
56 IBinder binder = ServiceManager.getService(VSTABLE_SECURE_ELEMENT_SERVICE); in testIsVendorStableInterfaceEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DShadowServiceManagerExtend.java22 import android.os.ServiceManager;
32 @Implements(value = ServiceManager.class)
/packages/apps/Settings/src/com/android/settings/utils/
DContentCaptureUtils.java22 import android.os.ServiceManager;
50 IBinder service = ServiceManager.checkService(Context.CONTENT_CAPTURE_MANAGER_SERVICE); in isFeatureAvailable()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DBillingCycleRepository.kt21 import android.os.ServiceManager in <lambda>()
37 ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE) in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DResetAppsHelper.java33 import android.os.ServiceManager;
66 mIPm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in ResetAppsHelper()
68 ServiceManager.getService(Context.NOTIFICATION_SERVICE)); in ResetAppsHelper()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetAppPrefFragment.java30 import android.os.ServiceManager;
121 IBinder notificationManagerServiceBinder = ServiceManager.getService( in doInBackground()
156 IBinder packageManagerServiceBinder = ServiceManager.getService("package"); in doInBackground()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationApplication.java26 import android.os.ServiceManager;
82 ServiceManager.getService(Context.STATUS_BAR_SERVICE))); in onCreate()

123456