/aosp12/frameworks/base/core/java/android/hardware/location/ |
H A D | ContextHubIntentEvent.java | 36 @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 D | ContextHubClientCallback.java | 137 @ContextHubManager.AuthorizationState int authorization) {} in onClientAuthorizationChanged()
|
H A D | ContextHubManager.java | 59 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 D | ContextHubClientBroker.java | 20 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 D | ChreTestUtil.java | 22 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 D | ContextHubTrivialNanoAppsTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 33 private final ContextHubManager mContextHubManager; 37 public ContextHubTrivialNanoAppsTestExecutor(ContextHubManager manager, ContextHubInfo info) { in ContextHubTrivialNanoAppsTestExecutor()
|
H A D | ContextHubBadNanoAppsTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 37 private final ContextHubManager mContextHubManager; 41 public ContextHubBadNanoAppsTestExecutor(ContextHubManager manager, ContextHubInfo info) { in ContextHubBadNanoAppsTestExecutor()
|
H A D | ContextHubBusyStartupTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 31 public ContextHubBusyStartupTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubBusyStartupTestExecutor()
|
H A D | ContextHubSimpleGeneralTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 27 public ContextHubSimpleGeneralTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubSimpleGeneralTestExecutor()
|
H A D | ContextHubSimpleHeapAllocTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 38 public ContextHubSimpleHeapAllocTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubSimpleHeapAllocTestExecutor()
|
H A D | ContextHubEstimatedHostTimeTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 37 public ContextHubEstimatedHostTimeTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubEstimatedHostTimeTestExecutor()
|
H A D | ContextHubInfoByIdTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 39 public ContextHubInfoByIdTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubInfoByIdTestExecutor()
|
H A D | ContextHubGeneralTestExecutor.java | 21 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 D | ContextHubGetTimeTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 66 public ContextHubGetTimeTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubGetTimeTestExecutor()
|
H A D | ContextHubNanoAppInfoEventsTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 47 public ContextHubNanoAppInfoEventsTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubNanoAppInfoEventsTestExecutor()
|
H A D | ContextHubEventBetweenAppsTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 58 public ContextHubEventBetweenAppsTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubEventBetweenAppsTestExecutor()
|
H A D | ContextHubSendMessageToHostTestExecutor.java | 19 import android.hardware.location.ContextHubManager; 68 public ContextHubSendMessageToHostTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubSendMessageToHostTestExecutor()
|
/aosp12/system/chre/doc/ |
H A D | nanoapp_clients.md | 21 [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 D | ContextHubFrameworkPermissionsTestExecutor.java | 23 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 D | ContextHubChrePermissionsTestExecutor.java | 22 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 D | ChreCrossValidatorBase.java | 22 import android.hardware.location.ContextHubManager; 46 private final ContextHubManager mContextHubManager; 66 ChreCrossValidatorBase(ContextHubManager contextHubManager, ContextHubInfo contextHubInfo, in ChreCrossValidatorBase()
|
H A D | ChreCrossValidatorWifi.java | 24 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 D | ContextHubSettingsTestExecutor.java | 22 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 D | ContextHubAudioConcurrencyTestExecutor.java | 21 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 D | ContextHubStressTestExecutor.java | 23 import android.hardware.location.ContextHubManager; 62 private final ContextHubManager mContextHubManager; 77 public ContextHubStressTestExecutor(ContextHubManager manager, ContextHubInfo info, in ContextHubStressTestExecutor()
|