Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/java/android/hardware/location/
H A DContextHubIntentEvent.java36 @ContextHubManager.Event private final int mEventType;
109 case ContextHubManager.EVENT_NANOAPP_LOADED: in fromIntent()
110 case ContextHubManager.EVENT_NANOAPP_UNLOADED: in fromIntent()
111 case ContextHubManager.EVENT_NANOAPP_ENABLED: in fromIntent()
112 case ContextHubManager.EVENT_NANOAPP_DISABLED: in fromIntent()
113 case ContextHubManager.EVENT_NANOAPP_ABORTED: in fromIntent()
114 case ContextHubManager.EVENT_NANOAPP_MESSAGE: in fromIntent()
140 case ContextHubManager.EVENT_HUB_RESET: in fromIntent()
154 @ContextHubManager.Event
173 if (mEventType == ContextHubManager.EVENT_HUB_RESET) { in getNanoAppId()
[all …]
H A DContextHubClientCallback.java137 @ContextHubManager.AuthorizationState int authorization) {} in onClientAuthorizationChanged()
H A DContextHubManager.java59 public final class ContextHubManager { class
805 long nanoAppId, @ContextHubManager.AuthorizationState int authorization) {
1046 synchronized (ContextHubManager.this) {
1061 public ContextHubManager(Context context, Looper mainLooper) throws ServiceNotFoundException {
/aosp12/frameworks/base/services/core/java/com/android/server/location/contexthub/
H A DContextHubClientBroker.java20 import static android.hardware.location.ContextHubManager.AUTHORIZATION_DENIED;
21 import static android.hardware.location.ContextHubManager.AUTHORIZATION_DENIED_GRACE_PERIOD;
22 import static android.hardware.location.ContextHubManager.AUTHORIZATION_GRANTED;
36 import android.hardware.location.ContextHubManager;
518 () -> createIntent(ContextHubManager.EVENT_NANOAPP_MESSAGE, nanoAppId) in sendMessageToClient()
519 .putExtra(ContextHubManager.EXTRA_MESSAGE, message); in sendMessageToClient()
554 sendPendingIntent(() -> createIntent(ContextHubManager.EVENT_HUB_RESET)); in onHubReset()
567 () -> createIntent(ContextHubManager.EVENT_NANOAPP_ABORTED, nanoAppId) in onNanoAppAborted()
787 intent.putExtra(ContextHubManager.EXTRA_EVENT_TYPE, eventType); in createIntent()
802 intent.putExtra(ContextHubManager.EXTRA_NANOAPP_ID, nanoAppId); in createIntent()
[all …]
/aosp12/system/chre/java/test/utils/src/com/google/android/utils/chre/
H A DChreTestUtil.java22 import android.hardware.location.ContextHubManager;
98 ContextHubManager manager, ContextHubInfo info, NanoAppBinary nanoAppBinary) { in loadNanoApp()
114 ContextHubManager manager, ContextHubInfo info, NanoAppBinary nanoAppBinary) { in loadNanoAppAssertSuccess()
129 ContextHubManager manager, ContextHubInfo info, long nanoAppId) { in unloadNanoApp()
144 ContextHubManager manager, ContextHubInfo info, long nanoAppId) { in unloadNanoAppAssertSuccess()
203 ContextHubManager contextHubManager, ContextHubInfo contextHubInfo) { in queryNanoAppsAssertSuccess()
227 public static int getNanoAppVersion(ContextHubManager contextHubManager, in getNanoAppVersion()
/aosp12/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
H A DContextHubTrivialNanoAppsTestExecutor.java19 import android.hardware.location.ContextHubManager;
33 private final ContextHubManager mContextHubManager;
37 public ContextHubTrivialNanoAppsTestExecutor(ContextHubManager manager, ContextHubInfo info) { in ContextHubTrivialNanoAppsTestExecutor()
H A DContextHubBadNanoAppsTestExecutor.java19 import android.hardware.location.ContextHubManager;
37 private final ContextHubManager mContextHubManager;
41 public ContextHubBadNanoAppsTestExecutor(ContextHubManager manager, ContextHubInfo info) { in ContextHubBadNanoAppsTestExecutor()
H A DContextHubBusyStartupTestExecutor.java19 import android.hardware.location.ContextHubManager;
31 public ContextHubBusyStartupTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubBusyStartupTestExecutor()
H A DContextHubSimpleGeneralTestExecutor.java19 import android.hardware.location.ContextHubManager;
27 public ContextHubSimpleGeneralTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubSimpleGeneralTestExecutor()
H A DContextHubSimpleHeapAllocTestExecutor.java19 import android.hardware.location.ContextHubManager;
38 public ContextHubSimpleHeapAllocTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubSimpleHeapAllocTestExecutor()
H A DContextHubEstimatedHostTimeTestExecutor.java19 import android.hardware.location.ContextHubManager;
37 public ContextHubEstimatedHostTimeTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubEstimatedHostTimeTestExecutor()
H A DContextHubInfoByIdTestExecutor.java19 import android.hardware.location.ContextHubManager;
39 public ContextHubInfoByIdTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubInfoByIdTestExecutor()
H A DContextHubGeneralTestExecutor.java21 import android.hardware.location.ContextHubManager;
65 private final ContextHubManager mContextHubManager;
139 public ContextHubGeneralTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubGeneralTestExecutor()
322 protected ContextHubManager getContextHubManager() { in getContextHubManager()
H A DContextHubGetTimeTestExecutor.java19 import android.hardware.location.ContextHubManager;
66 public ContextHubGetTimeTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubGetTimeTestExecutor()
H A DContextHubNanoAppInfoEventsTestExecutor.java19 import android.hardware.location.ContextHubManager;
47 public ContextHubNanoAppInfoEventsTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubNanoAppInfoEventsTestExecutor()
H A DContextHubEventBetweenAppsTestExecutor.java19 import android.hardware.location.ContextHubManager;
58 public ContextHubEventBetweenAppsTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubEventBetweenAppsTestExecutor()
H A DContextHubSendMessageToHostTestExecutor.java19 import android.hardware.location.ContextHubManager;
68 public ContextHubSendMessageToHostTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubSendMessageToHostTestExecutor()
/aosp12/system/chre/doc/
H A Dnanoapp_clients.md21 [ContextHubManager](https://android.googlesource.com/platform/frameworks/base/+/master/core/java/an…
37 1. Retrieve the ContextHubManager object via
38 `Context.getSystemService(ContextHubManager.class)` - this will produce a
42 `ContextHubManager.getContextHubs()`
44 `ContextHubManager.queryNanoApps()`
46 `ContextHubManager.createClient()`. This can be used to communicate with your
/aosp12/system/chre/java/test/permissions/src/com/google/android/chre/test/permissions/
H A DContextHubFrameworkPermissionsTestExecutor.java23 import android.hardware.location.ContextHubManager;
54 private final ContextHubManager mContextHubManager;
69 ContextHubManager manager, ContextHubInfo info, NanoAppBinary binary) { in ContextHubFrameworkPermissionsTestExecutor()
140 Assert.assertEquals(authorization, ContextHubManager.AUTHORIZATION_DENIED); in permissionsDisabledTest()
H A DContextHubChrePermissionsTestExecutor.java22 import android.hardware.location.ContextHubManager;
55 private final ContextHubManager mContextHubManager;
64 ContextHubManager manager, ContextHubInfo info, NanoAppBinary binary) { in ContextHubChrePermissionsTestExecutor()
/aosp12/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
H A DChreCrossValidatorBase.java22 import android.hardware.location.ContextHubManager;
46 private final ContextHubManager mContextHubManager;
66 ChreCrossValidatorBase(ContextHubManager contextHubManager, ContextHubInfo contextHubInfo, in ChreCrossValidatorBase()
H A DChreCrossValidatorWifi.java24 import android.hardware.location.ContextHubManager;
82 ContextHubManager contextHubManager, ContextHubInfo contextHubInfo, in ChreCrossValidatorWifi()
/aosp12/system/chre/java/test/settings/src/com/google/android/chre/test/setting/
H A DContextHubSettingsTestExecutor.java22 import android.hardware.location.ContextHubManager;
61 private final ContextHubManager mContextHubManager;
76 (ContextHubManager) context.getSystemService(Context.CONTEXTHUB_SERVICE); in ContextHubSettingsTestExecutor()
/aosp12/system/chre/java/test/audio_concurrency/src/com/google/android/chre/test/audioconcurrency/
H A DContextHubAudioConcurrencyTestExecutor.java21 import android.hardware.location.ContextHubManager;
59 private final ContextHubManager mContextHubManager;
72 ContextHubManager manager, ContextHubInfo info, NanoAppBinary binary) { in ContextHubAudioConcurrencyTestExecutor()
/aosp12/system/chre/java/test/stress/src/com/google/android/chre/test/stress/
H A DContextHubStressTestExecutor.java23 import android.hardware.location.ContextHubManager;
62 private final ContextHubManager mContextHubManager;
77 public ContextHubStressTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubStressTestExecutor()

12