Home
last modified time | relevance | path

Searched refs:ContextHubTransaction (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/hardware/location/
DContextHubTransaction.java48 public class ContextHubTransaction<T> { class
131 @ContextHubTransaction.Result
139 Response(@ContextHubTransaction.Result int result, R contents) { in Response()
144 @ContextHubTransaction.Result
168 ContextHubTransaction<L> transaction, ContextHubTransaction.Response<L> response); in onComplete()
180 private ContextHubTransaction.Response<T> mResponse;
190 private ContextHubTransaction.OnCompleteListener<T> mListener = null;
202 ContextHubTransaction(@Type int type) { in ContextHubTransaction() method in ContextHubTransaction
215 case ContextHubTransaction.TYPE_LOAD_NANOAPP: in typeToString()
217 case ContextHubTransaction.TYPE_UNLOAD_NANOAPP: in typeToString()
[all …]
DContextHubManager.java327 ContextHubTransaction<Void> transaction) { in createTransactionCallback()
332 transaction.setResponse(new ContextHubTransaction.Response<Void>( in createTransactionCallback()
333 ContextHubTransaction.RESULT_FAILED_SERVICE_INTERNAL_FAILURE, null)); in createTransactionCallback()
338 transaction.setResponse(new ContextHubTransaction.Response<Void>(result, null)); in createTransactionCallback()
353 ContextHubTransaction<List<NanoAppState>> transaction) {
357 transaction.setResponse(new ContextHubTransaction.Response<List<NanoAppState>>(
364 transaction.setResponse(new ContextHubTransaction.Response<List<NanoAppState>>(
365 ContextHubTransaction.RESULT_FAILED_SERVICE_INTERNAL_FAILURE, null));
386 @NonNull public ContextHubTransaction<Void> loadNanoApp(
391 ContextHubTransaction<Void> transaction =
[all …]
DContextHubClient.java118 @ContextHubTransaction.Result
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceTransaction.java19 import android.hardware.location.ContextHubTransaction;
32 @ContextHubTransaction.Type
64 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) { in onTransactionComplete()
76 @ContextHubTransaction.Result int result, List<NanoAppState> nanoAppStateList) { in onQueryResponse()
90 @ContextHubTransaction.Type
102 case ContextHubTransaction.TYPE_LOAD_NANOAPP: in getTimeout()
104 case ContextHubTransaction.TYPE_UNLOAD_NANOAPP: in getTimeout()
105 case ContextHubTransaction.TYPE_ENABLE_NANOAPP: in getTimeout()
106 case ContextHubTransaction.TYPE_DISABLE_NANOAPP: in getTimeout()
107 case ContextHubTransaction.TYPE_QUERY_NANOAPPS: in getTimeout()
[all …]
DContextHubTransactionManager.java22 import android.hardware.location.ContextHubTransaction;
106 mNextAvailableId.getAndIncrement(), ContextHubTransaction.TYPE_LOAD_NANOAPP) { in createLoadTransaction()
122 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) { in createLoadTransaction()
123 if (result == ContextHubTransaction.RESULT_SUCCESS) { in createLoadTransaction()
133 if (result == ContextHubTransaction.RESULT_SUCCESS) { in createLoadTransaction()
154 mNextAvailableId.getAndIncrement(), ContextHubTransaction.TYPE_UNLOAD_NANOAPP) {
168 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) {
169 if (result == ContextHubTransaction.RESULT_SUCCESS) {
174 if (result == ContextHubTransaction.RESULT_SUCCESS) {
195 mNextAvailableId.getAndIncrement(), ContextHubTransaction.TYPE_ENABLE_NANOAPP) {
[all …]
DContextHubServiceUtil.java27 import android.hardware.location.ContextHubTransaction;
213 @ContextHubTransaction.Result
218 return ContextHubTransaction.RESULT_SUCCESS; in toTransactionResult()
220 return ContextHubTransaction.RESULT_FAILED_BAD_PARAMS; in toTransactionResult()
222 return ContextHubTransaction.RESULT_FAILED_UNINITIALIZED; in toTransactionResult()
224 return ContextHubTransaction.RESULT_FAILED_BUSY; in toTransactionResult()
228 return ContextHubTransaction.RESULT_FAILED_UNKNOWN; in toTransactionResult()
DContextHubService.java30 import android.hardware.location.ContextHubTransaction;
485 ContextHubTransaction.RESULT_SUCCESS);
639 contextHubId, transactionCallback, ContextHubTransaction.TYPE_LOAD_NANOAPP)) {
645 ContextHubTransaction.RESULT_FAILED_BAD_PARAMS);
669 contextHubId, transactionCallback, ContextHubTransaction.TYPE_UNLOAD_NANOAPP)) {
693 contextHubId, transactionCallback, ContextHubTransaction.TYPE_ENABLE_NANOAPP)) {
717 contextHubId, transactionCallback, ContextHubTransaction.TYPE_DISABLE_NANOAPP)) {
739 contextHubId, transactionCallback, ContextHubTransaction.TYPE_QUERY_NANOAPPS)) {
816 @ContextHubTransaction.Type int transactionType) {
820 ContextHubTransaction.RESULT_FAILED_HAL_UNAVAILABLE);
[all …]
DContextHubClientBroker.java23 import android.hardware.location.ContextHubTransaction;
105 @ContextHubTransaction.Result
/frameworks/base/api/
Dsystem-current.txt1617 …method public android.hardware.location.ContextHubTransaction<java.lang.Void> disableNanoApp(andro…
1618 …method public android.hardware.location.ContextHubTransaction<java.lang.Void> enableNanoApp(androi…
1625 …method public android.hardware.location.ContextHubTransaction<java.lang.Void> loadNanoApp(android.…
1626 …method public android.hardware.location.ContextHubTransaction<java.util.List<android.hardware.loca…
1631 …method public android.hardware.location.ContextHubTransaction<java.lang.Void> unloadNanoApp(androi…
1653 public class ContextHubTransaction<T> {
1655 …method public void setOnCompleteListener(android.hardware.location.ContextHubTransaction.OnComplet…
1656 …method public void setOnCompleteListener(android.hardware.location.ContextHubTransaction.OnComplet…
1658 …method public android.hardware.location.ContextHubTransaction.Response<T> waitForResponse(long, ja…
1675 public static abstract interface ContextHubTransaction.OnCompleteListener<L> {
[all …]
/frameworks/base/config/
Dhiddenapi-public-dex.txt14047 …noApp(Landroid/hardware/location/ContextHubInfo;J)Landroid/hardware/location/ContextHubTransaction;
14048 …noApp(Landroid/hardware/location/ContextHubInfo;J)Landroid/hardware/location/ContextHubTransaction;
14055 …HubInfo;Landroid/hardware/location/NanoAppBinary;)Landroid/hardware/location/ContextHubTransaction;
14056 …noApps(Landroid/hardware/location/ContextHubInfo;)Landroid/hardware/location/ContextHubTransaction;
14061 …noApp(Landroid/hardware/location/ContextHubInfo;J)Landroid/hardware/location/ContextHubTransaction;
14075 Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
14076 …/ContextHubTransaction$OnCompleteListener;->onComplete(Landroid/hardware/location/ContextHubTransa…
14077 Landroid/hardware/location/ContextHubTransaction$Response;
14078 Landroid/hardware/location/ContextHubTransaction$Response;->getContents()Ljava/lang/Object;
14079 Landroid/hardware/location/ContextHubTransaction$Response;->getResult()I
[all …]