public class android.hardware.location.ContextHubTransaction<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: android.hardware.location.ContextHubTransaction
super_class: java.lang.Object
{
private static final java.lang.String TAG;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ContextHubTransaction"
public static final int TYPE_LOAD_NANOAPP;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int TYPE_UNLOAD_NANOAPP;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int TYPE_ENABLE_NANOAPP;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
public static final int TYPE_DISABLE_NANOAPP;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 3
public static final int TYPE_QUERY_NANOAPPS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 4
public static final int RESULT_SUCCESS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int RESULT_FAILED_UNKNOWN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int RESULT_FAILED_BAD_PARAMS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
public static final int RESULT_FAILED_UNINITIALIZED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 3
public static final int RESULT_FAILED_BUSY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 4
public static final int RESULT_FAILED_AT_HUB;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 5
public static final int RESULT_FAILED_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 6
public static final int RESULT_FAILED_SERVICE_INTERNAL_FAILURE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 7
public static final int RESULT_FAILED_HAL_UNAVAILABLE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private int mTransactionType;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private android.hardware.location.ContextHubTransaction$Response<T> mResponse;
descriptor: Landroid/hardware/location/ContextHubTransaction$Response;
flags: (0x0002) ACC_PRIVATE
Signature: Landroid/hardware/location/ContextHubTransaction$Response<TT;>;
private java.util.concurrent.Executor mExecutor;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0002) ACC_PRIVATE
private android.hardware.location.ContextHubTransaction$OnCompleteListener<T> mListener;
descriptor: Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
flags: (0x0002) ACC_PRIVATE
Signature: Landroid/hardware/location/ContextHubTransaction$OnCompleteListener<TT;>;
private final java.util.concurrent.CountDownLatch mDoneSignal;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean mIsResponseSet;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield android.hardware.location.ContextHubTransaction.mExecutor:Ljava/util/concurrent/Executor;
2: aload 0
aconst_null
putfield android.hardware.location.ContextHubTransaction.mListener:Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
3: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield android.hardware.location.ContextHubTransaction.mDoneSignal:Ljava/util/concurrent/CountDownLatch;
4: aload 0
iconst_0
putfield android.hardware.location.ContextHubTransaction.mIsResponseSet:Z
5: aload 0
iload 1
putfield android.hardware.location.ContextHubTransaction.mTransactionType:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
0 7 1 type I
MethodParameters:
Name Flags
type
public static java.lang.String typeToString(int, boolean);
descriptor: (IZ)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 0
tableswitch { // 0 - 4
0: 1
1: 4
2: 7
3: 10
4: 13
default: 16
}
1: StackMap locals:
StackMap stack:
iload 1
ifeq 2
ldc "Load"
goto 3
StackMap locals:
StackMap stack:
2: ldc "load"
StackMap locals:
StackMap stack: java.lang.String
3: areturn
4: StackMap locals:
StackMap stack:
iload 1
ifeq 5
ldc "Unload"
goto 6
StackMap locals:
StackMap stack:
5: ldc "unload"
StackMap locals:
StackMap stack: java.lang.String
6: areturn
7: StackMap locals:
StackMap stack:
iload 1
ifeq 8
ldc "Enable"
goto 9
StackMap locals:
StackMap stack:
8: ldc "enable"
StackMap locals:
StackMap stack: java.lang.String
9: areturn
10: StackMap locals:
StackMap stack:
iload 1
ifeq 11
ldc "Disable"
goto 12
StackMap locals:
StackMap stack:
11: ldc "disable"
StackMap locals:
StackMap stack: java.lang.String
12: areturn
13: StackMap locals:
StackMap stack:
iload 1
ifeq 14
ldc "Query"
goto 15
StackMap locals:
StackMap stack:
14: ldc "query"
StackMap locals:
StackMap stack: java.lang.String
15: areturn
16: StackMap locals:
StackMap stack:
iload 1
ifeq 17
ldc "Unknown"
goto 18
StackMap locals:
StackMap stack:
17: ldc "unknown"
StackMap locals:
StackMap stack: java.lang.String
18: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 type I
0 19 1 upperCase Z
MethodParameters:
Name Flags
type
upperCase
public int getType();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield android.hardware.location.ContextHubTransaction.mTransactionType:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
public android.hardware.location.ContextHubTransaction$Response<T> waitForResponse(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Landroid/hardware/location/ContextHubTransaction$Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield android.hardware.location.ContextHubTransaction.mDoneSignal:Ljava/util/concurrent/CountDownLatch;
lload 1
aload 3
invokevirtual java.util.concurrent.CountDownLatch.await:(JLjava/util/concurrent/TimeUnit;)Z
istore 4
start local 4 1: iload 4
ifne 3
2: new java.util.concurrent.TimeoutException
dup
ldc "Timed out while waiting for transaction"
invokespecial java.util.concurrent.TimeoutException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getfield android.hardware.location.ContextHubTransaction.mResponse:Landroid/hardware/location/ContextHubTransaction$Response;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
0 4 1 timeout J
0 4 3 unit Ljava/util/concurrent/TimeUnit;
1 4 4 success Z
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
Signature: (JLjava/util/concurrent/TimeUnit;)Landroid/hardware/location/ContextHubTransaction$Response<TT;>;
MethodParameters:
Name Flags
timeout
unit
public void setOnCompleteListener(android.hardware.location.ContextHubTransaction$OnCompleteListener<T>, java.util.concurrent.Executor);
descriptor: (Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;Ljava/util/concurrent/Executor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
dup
astore 3
monitorenter
1: aload 1
ldc "OnCompleteListener cannot be null"
invokestatic com.android.internal.util.Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
ldc "Executor cannot be null"
invokestatic com.android.internal.util.Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
getfield android.hardware.location.ContextHubTransaction.mListener:Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
ifnull 7
4: new java.lang.IllegalStateException
dup
5: ldc "Cannot set ContextHubTransaction listener multiple times"
6: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: android.hardware.location.ContextHubTransaction
StackMap stack:
aload 0
aload 1
putfield android.hardware.location.ContextHubTransaction.mListener:Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
8: aload 0
aload 2
putfield android.hardware.location.ContextHubTransaction.mExecutor:Ljava/util/concurrent/Executor;
9: aload 0
getfield android.hardware.location.ContextHubTransaction.mDoneSignal:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.getCount:()J
lconst_0
lcmp
ifne 11
10: aload 0
getfield android.hardware.location.ContextHubTransaction.mExecutor:Ljava/util/concurrent/Executor;
aload 0
invokedynamic run(Landroid/hardware/location/ContextHubTransaction;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
android/hardware/location/ContextHubTransaction.lambda$0()V (7)
()V
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
11: StackMap locals:
StackMap stack:
aload 3
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 3
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
0 16 1 listener Landroid/hardware/location/ContextHubTransaction$OnCompleteListener<TT;>;
0 16 2 executor Ljava/util/concurrent/Executor;
Exception table:
from to target type
1 12 13 any
13 14 13 any
Signature: (Landroid/hardware/location/ContextHubTransaction$OnCompleteListener<TT;>;Ljava/util/concurrent/Executor;)V
MethodParameters:
Name Flags
listener
executor
public void setOnCompleteListener(android.hardware.location.ContextHubTransaction$OnCompleteListener<T>);
descriptor: (Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new android.os.HandlerExecutor
dup
invokestatic android.os.Handler.getMain:()Landroid/os/Handler;
invokespecial android.os.HandlerExecutor.<init>:(Landroid/os/Handler;)V
invokevirtual android.hardware.location.ContextHubTransaction.setOnCompleteListener:(Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;Ljava/util/concurrent/Executor;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
0 2 1 listener Landroid/hardware/location/ContextHubTransaction$OnCompleteListener<TT;>;
Signature: (Landroid/hardware/location/ContextHubTransaction$OnCompleteListener<TT;>;)V
MethodParameters:
Name Flags
listener
void setResponse(android.hardware.location.ContextHubTransaction$Response<T>);
descriptor: (Landroid/hardware/location/ContextHubTransaction$Response;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 1
ldc "Response cannot be null"
invokestatic com.android.internal.util.Preconditions.checkNotNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield android.hardware.location.ContextHubTransaction.mIsResponseSet:Z
ifeq 6
3: new java.lang.IllegalStateException
dup
4: ldc "Cannot set response of ContextHubTransaction multiple times"
5: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: android.hardware.location.ContextHubTransaction
StackMap stack:
aload 0
aload 1
putfield android.hardware.location.ContextHubTransaction.mResponse:Landroid/hardware/location/ContextHubTransaction$Response;
7: aload 0
iconst_1
putfield android.hardware.location.ContextHubTransaction.mIsResponseSet:Z
8: aload 0
getfield android.hardware.location.ContextHubTransaction.mDoneSignal:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
9: aload 0
getfield android.hardware.location.ContextHubTransaction.mListener:Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
ifnull 11
10: aload 0
getfield android.hardware.location.ContextHubTransaction.mExecutor:Ljava/util/concurrent/Executor;
aload 0
invokedynamic run(Landroid/hardware/location/ContextHubTransaction;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
android/hardware/location/ContextHubTransaction.lambda$1()V (7)
()V
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
11: StackMap locals:
StackMap stack:
aload 2
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 2
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
0 16 1 response Landroid/hardware/location/ContextHubTransaction$Response<TT;>;
Exception table:
from to target type
1 12 13 any
13 14 13 any
Signature: (Landroid/hardware/location/ContextHubTransaction$Response<TT;>;)V
MethodParameters:
Name Flags
response
private void lambda$0();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield android.hardware.location.ContextHubTransaction.mListener:Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
aload 0
aload 0
getfield android.hardware.location.ContextHubTransaction.mResponse:Landroid/hardware/location/ContextHubTransaction$Response;
invokeinterface android.hardware.location.ContextHubTransaction$OnCompleteListener.onComplete:(Landroid/hardware/location/ContextHubTransaction;Landroid/hardware/location/ContextHubTransaction$Response;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
private void lambda$1();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield android.hardware.location.ContextHubTransaction.mListener:Landroid/hardware/location/ContextHubTransaction$OnCompleteListener;
aload 0
aload 0
getfield android.hardware.location.ContextHubTransaction.mResponse:Landroid/hardware/location/ContextHubTransaction$Response;
invokeinterface android.hardware.location.ContextHubTransaction$OnCompleteListener.onComplete:(Landroid/hardware/location/ContextHubTransaction;Landroid/hardware/location/ContextHubTransaction$Response;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Landroid/hardware/location/ContextHubTransaction<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ContextHubTransaction.java"
NestMembers:
android.hardware.location.ContextHubTransaction$OnCompleteListener android.hardware.location.ContextHubTransaction$Response android.hardware.location.ContextHubTransaction$Result android.hardware.location.ContextHubTransaction$Type
InnerClasses:
public abstract OnCompleteListener = android.hardware.location.ContextHubTransaction$OnCompleteListener of android.hardware.location.ContextHubTransaction
public Response = android.hardware.location.ContextHubTransaction$Response of android.hardware.location.ContextHubTransaction
public abstract Result = android.hardware.location.ContextHubTransaction$Result of android.hardware.location.ContextHubTransaction
public abstract Type = android.hardware.location.ContextHubTransaction$Type of android.hardware.location.ContextHubTransaction
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
RuntimeVisibleAnnotations:
android.annotation.SystemApi()