/frameworks/base/core/tests/coretests/src/com/android/internal/infra/ |
D | AndroidFutureTest.java | 45 AndroidFuture<Integer> future = new AndroidFuture<>(); in testGet() 52 AndroidFuture<Integer> future = new AndroidFuture<>(); in testWhenComplete_AlreadyComplete() 65 AndroidFuture<Integer> future = new AndroidFuture<>(); in testWhenComplete_NotYetComplete() 80 AndroidFuture<Integer> future = new AndroidFuture<>(); in testCompleteExceptionally() 90 AndroidFuture<Integer> future = new AndroidFuture<>(); in testCompleteExceptionally_Listener() 105 AndroidFuture<Integer> future1 = new AndroidFuture<>(); in testWriteToParcel() 110 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel() 117 AndroidFuture<Integer> future1 = new AndroidFuture<>(); in testWriteToParcel_Exception() 122 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Exception() 136 AndroidFuture<Integer> future1 = new AndroidFuture<>(); in testWriteToParcel_Incomplete() [all …]
|
/frameworks/base/core/java/android/permission/ |
D | IPermissionController.aidl | 24 import com.android.internal.infra.AndroidFuture; 33 String callerPackageName, in AndroidFuture callback); in revokeRuntimePermissions() 37 in AndroidFuture callback); in applyStagedRuntimePermissionBackup() 38 void getAppPermissions(String packageName, in AndroidFuture callback); in getAppPermissions() 41 in AndroidFuture callback); in countPermissionApps() 42 void getPermissionUsages(boolean countSystem, long numMillis, in AndroidFuture callback); in getPermissionUsages() 44 in AdminPermissionControlParams params, in AndroidFuture callback); in setRuntimePermissionGrantStateByDeviceAdminFromParams() 45 void grantOrUpgradeDefaultRuntimePermissions(in AndroidFuture callback); in grantOrUpgradeDefaultRuntimePermissions() 47 void updateUserSensitiveForApp(int uid, in AndroidFuture callback); in updateUserSensitiveForApp() 50 in AndroidFuture<String> callback); in getPrivilegesDescriptionStringForProfile() [all …]
|
D | PermissionControllerManager.java | 53 import com.android.internal.infra.AndroidFuture; 346 AndroidFuture<Map<String, List<String>>> revokeRuntimePermissionsResult = in revokeRuntimePermissions() 347 new AndroidFuture<>(); in revokeRuntimePermissions() 393 AndroidFuture<Boolean> setRuntimePermissionGrantStateResult = new AndroidFuture<>(); in setRuntimePermissionGrantStateByDeviceAdmin() 513 AndroidFuture<Boolean> applyStagedRuntimePermissionBackupResult = in applyStagedRuntimePermissionBackup() 514 new AndroidFuture<>(); in applyStagedRuntimePermissionBackup() 542 return AndroidFuture.runAsync(uncheckExceptions(() -> { in dump() 569 AndroidFuture<List<RuntimePermissionPresentationInfo>> getAppPermissionsResult = in getAppPermissions() 570 new AndroidFuture<>(); in getAppPermissions() 623 AndroidFuture<Integer> countPermissionAppsResult = new AndroidFuture<>(); in countPermissionApps() [all …]
|
D | PermissionControllerService.java | 55 import com.android.internal.infra.AndroidFuture; 459 String callerPackageName, AndroidFuture callback) { in onBind() 557 AndroidFuture callback) { in onBind() 569 public void getAppPermissions(String packageName, AndroidFuture callback) { in onBind() 598 AndroidFuture callback) { in onBind() 610 AndroidFuture callback) { in onBind() 622 AndroidFuture callback) { in onBind() 643 public void grantOrUpgradeDefaultRuntimePermissions(@NonNull AndroidFuture callback) { in onBind() 653 public void updateUserSensitiveForApp(int uid, @NonNull AndroidFuture callback) { in onBind() 688 @NonNull AndroidFuture<String> callback) { in onBind() [all …]
|
/frameworks/base/core/java/com/android/internal/backup/ |
D | IBackupTransport.aidl | 27 import com.android.internal.infra.AndroidFuture; 38 void name(in AndroidFuture<String> result); in name() 54 void configurationIntent(in AndroidFuture<Intent> resultFuture); in configurationIntent() 65 void currentDestinationString(in AndroidFuture<String> resultFuture); in currentDestinationString() 87 void dataManagementIntent(in AndroidFuture<Intent> resultFuture); in dataManagementIntent() 98 void dataManagementIntentLabel(in AndroidFuture<CharSequence> resultFuture); in dataManagementIntentLabel() 112 void transportDirName(in AndroidFuture<String> resultFuture); in transportDirName() 126 void requestBackupTime(in AndroidFuture<long> resultFuture); in requestBackupTime() 189 void getAvailableRestoreSets(in AndroidFuture<List<RestoreSet>> resultFuture); in getAvailableRestoreSets() 200 void getCurrentRestoreSet(in AndroidFuture<long> resultFuture); in getCurrentRestoreSet() [all …]
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | IInputMethodPrivilegedOperations.aidl | 23 import com.android.internal.infra.AndroidFuture; 33 in AndroidFuture future /* T=IBinder */); in createInputContentUriToken() 35 void setInputMethod(String id, in AndroidFuture future /* T=Void */); in setInputMethod() 37 in AndroidFuture future /* T=Void */); in setInputMethodAndSubtype() 39 in AndroidFuture future /* T=Void */); in hideMySoftInput() 41 in AndroidFuture future /* T=Void */); in showMySoftInput() 43 void switchToPreviousInputMethod(in AndroidFuture future /* T=Boolean */); in switchToPreviousInputMethod() 44 void switchToNextInputMethod(boolean onlyCurrentIme, in AndroidFuture future /* T=Boolean */); in switchToNextInputMethod() 45 void shouldOfferSwitchingToNextInputMethod(in AndroidFuture future /* T=Boolean */); in shouldOfferSwitchingToNextInputMethod()
|
D | InputMethodPrivilegedOperations.java | 33 import com.android.internal.infra.AndroidFuture; 180 final AndroidFuture<IBinder> future = new AndroidFuture<>(); in createInputContentUriToken() 241 final AndroidFuture<Void> future = new AndroidFuture<>(); in setInputMethod() 264 final AndroidFuture<Void> future = new AndroidFuture<>(); in setInputMethodAndSubtype() 286 final AndroidFuture<Void> future = new AndroidFuture<>(); in hideMySoftInput() 308 final AndroidFuture<Void> future = new AndroidFuture<>(); in showMySoftInput() 328 final AndroidFuture<Boolean> value = new AndroidFuture<>(); in switchToPreviousInputMethod() 351 final AndroidFuture<Boolean> future = new AndroidFuture<>(); in switchToNextInputMethod() 372 final AndroidFuture<Boolean> future = new AndroidFuture<>(); in shouldOfferSwitchingToNextInputMethod()
|
D | IRemoteInputConnection.aidl | 32 import com.android.internal.infra.AndroidFuture; 41 in AndroidFuture future /* T=CharSequence */); in getTextBeforeCursor() 44 in AndroidFuture future /* T=CharSequence */); in getTextAfterCursor() 47 in AndroidFuture future /* T=Integer */); in getCursorCapsMode() 50 int flags, in AndroidFuture future /* T=ExtractedText */); in getExtractedText() 106 in AndroidFuture future /* T=CharSequence */); in getSelectedText() 109 int imeDisplayId, in AndroidFuture future /* T=Boolean */); in requestCursorUpdates() 113 in AndroidFuture future /* T=Boolean */); in requestCursorUpdatesWithFilter() 119 int flags, in Bundle opts, in AndroidFuture future /* T=Boolean */); in commitContent() 122 int afterLength, int flags, in AndroidFuture future /* T=SurroundingText */); in getSurroundingText()
|
D | IRemoteAccessibilityInputConnectionInvoker.java | 27 import com.android.internal.infra.AndroidFuture; 129 public AndroidFuture<SurroundingText> getSurroundingText(int beforeLength, int afterLength, in getSurroundingText() 131 final AndroidFuture<SurroundingText> future = new AndroidFuture<>(); in getSurroundingText() 208 public AndroidFuture<Integer> getCursorCapsMode(int reqModes) { in getCursorCapsMode() 209 final AndroidFuture<Integer> future = new AndroidFuture<>(); in getCursorCapsMode()
|
D | IRemoteAccessibilityInputConnection.aidl | 22 import com.android.internal.infra.AndroidFuture; 36 int afterLength, int flags, in AndroidFuture future /* T=SurroundingText */); in getSurroundingText() 48 in AndroidFuture future /* T=Integer */); in getCursorCapsMode()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | FakeServiceConnector.java | 23 import com.android.internal.infra.AndroidFuture; 47 AndroidFuture<Void> unusedFuture = post(job); in run() 52 public AndroidFuture<Void> post(VoidJob<T> job) { in post() 59 public <R> AndroidFuture<R> postForResult(Job<T, R> job) { in postForResult() 62 AndroidFuture<R> androidFuture = new AndroidFuture(); in postForResult() 73 public <R> AndroidFuture<R> postAsync(Job<T, CompletableFuture<R>> job) { in postAsync() 75 AndroidFuture<R> androidFuture = new AndroidFuture(); in postAsync() 94 public AndroidFuture<T> connect() { in connect() 96 return AndroidFuture.completedFuture(mService); in connect()
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | AndroidFuture.java | 71 public class AndroidFuture<T> extends CompletableFuture<T> implements Parcelable { class 74 private static final String LOG_TAG = AndroidFuture.class.getSimpleName(); 87 public AndroidFuture() { in AndroidFuture() method in AndroidFuture 92 AndroidFuture(Parcel in) { in AndroidFuture() method in AndroidFuture 127 public static <U> AndroidFuture<U> completedFuture(U value) { in completedFuture() 128 AndroidFuture<U> future = new AndroidFuture<>(); in completedFuture() 196 public AndroidFuture<T> whenComplete(@NonNull BiConsumer<? super T, ? super Throwable> action) { in whenComplete() 201 public AndroidFuture<T> whenCompleteAsync( in whenCompleteAsync() 281 public AndroidFuture<T> orTimeout(long timeout, @NonNull TimeUnit unit) { in orTimeout() 298 public AndroidFuture<T> cancelTimeout() { in cancelTimeout() [all …]
|
D | RemoteStream.java | 80 extends AndroidFuture<RES> 96 public static <R> AndroidFuture<R> receiveBytes( in receiveBytes() 114 public static AndroidFuture<byte[]> receiveBytes(ThrowingConsumer<ParcelFileDescriptor> ipc) { 147 public static <R> AndroidFuture<R> sendBytes( 162 public static AndroidFuture<Void> sendBytes( 174 public static AndroidFuture<Void> sendBytes(
|
D | ServiceConnector.java | 98 AndroidFuture<Void> post(@NonNull VoidJob<I> job); in post() 109 <R> AndroidFuture<R> postForResult(@NonNull Job<I, R> job); in postForResult() 126 <R> AndroidFuture<R> postAsync(@NonNull Job<I, CompletableFuture<R>> job); in postAsync() 139 AndroidFuture<I> connect(); in connect() 399 public AndroidFuture<Void> post(@NonNull VoidJob<I> job) { in post() 412 public <R> AndroidFuture<R> postAsync(@NonNull Job<I, CompletableFuture<R>> job) { in postAsync() 421 public synchronized AndroidFuture<I> connect() { in connect() 742 class CompletionAwareJob<II, R> extends AndroidFuture<R> 814 class NoOp<T extends IInterface> extends AndroidFuture<Object> implements ServiceConnector<T> { 825 public AndroidFuture<Void> post(@NonNull VoidJob<T> job) { in post() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/transport/ |
D | BackupTransportClientTest.java | 39 import com.android.internal.infra.AndroidFuture; 56 public AndroidFuture<String> mNameCompletedInFuture; 58 @Override public void name(AndroidFuture<String> name) throws RemoteException { in name() 61 @Override public void transportDirName(AndroidFuture<String> name) throws RemoteException { in transportDirName() 216 @Override public void name(AndroidFuture<String> f) throws RemoteException {} in name() 217 @Override public void transportDirName(AndroidFuture<String> f) throws RemoteException {} in transportDirName() 218 @Override public void configurationIntent(AndroidFuture<Intent> f) throws RemoteException {} in configurationIntent() 219 @Override public void currentDestinationString(AndroidFuture<String> f) in currentDestinationString() 221 @Override public void dataManagementIntent(AndroidFuture<Intent> f) in dataManagementIntent() 223 @Override public void dataManagementIntentLabel(AndroidFuture<CharSequence> f) in dataManagementIntentLabel() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | BackupTransportClient.java | 32 import com.android.internal.infra.AndroidFuture; 66 AndroidFuture<String> resultFuture = mTransportFutures.newFuture(); in name() 75 AndroidFuture<Intent> resultFuture = mTransportFutures.newFuture(); in configurationIntent() 84 AndroidFuture<String> resultFuture = mTransportFutures.newFuture(); in currentDestinationString() 93 AndroidFuture<Intent> resultFuture = mTransportFutures.newFuture(); in dataManagementIntent() 103 AndroidFuture<CharSequence> resultFuture = mTransportFutures.newFuture(); in dataManagementIntentLabel() 112 AndroidFuture<String> resultFuture = mTransportFutures.newFuture(); in transportDirName() 160 AndroidFuture<Long> resultFuture = mTransportFutures.newFuture(); in requestBackupTime() 184 AndroidFuture<List<RestoreSet>> resultFuture = mTransportFutures.newFuture(); in getAvailableRestoreSets() 194 AndroidFuture<Long> resultFuture = mTransportFutures.newFuture(); in getCurrentRestoreSet() [all …]
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IRemoteInputConnectionInvoker.java | 46 import com.android.internal.infra.AndroidFuture; 196 public AndroidFuture<CharSequence> getTextAfterCursor(int length, int flags) { in getTextAfterCursor() 197 final AndroidFuture<CharSequence> future = new AndroidFuture<>(); in getTextAfterCursor() 217 public AndroidFuture<CharSequence> getTextBeforeCursor(int length, int flags) { in getTextBeforeCursor() 218 final AndroidFuture<CharSequence> future = new AndroidFuture<>(); in getTextBeforeCursor() 237 public AndroidFuture<CharSequence> getSelectedText(int flags) { in getSelectedText() 238 final AndroidFuture<CharSequence> future = new AndroidFuture<>(); in getSelectedText() 260 public AndroidFuture<SurroundingText> getSurroundingText(int beforeLength, int afterLength, in getSurroundingText() 262 final AndroidFuture<SurroundingText> future = new AndroidFuture<>(); in getSurroundingText() 282 public AndroidFuture<Integer> getCursorCapsMode(int reqModes) { in getCursorCapsMode() [all …]
|
/frameworks/base/core/java/android/service/ondeviceintelligence/ |
D | IOnDeviceSandboxedInferenceService.aidl | 28 import com.android.internal.infra.AndroidFuture; 41 in AndroidFuture cancellationSignal, in requestTokenInfo() 44 in AndroidFuture cancellationSignal, in processRequest() 45 in AndroidFuture processingSignal, in processRequest() 48 in AndroidFuture cancellationSignal, in processRequestStreaming() 49 in AndroidFuture processingSignal, in processRequestStreaming()
|
D | IOnDeviceIntelligenceService.aidl | 28 import com.android.internal.infra.AndroidFuture; 42 … void getReadOnlyFileDescriptor(in String fileName, in AndroidFuture<ParcelFileDescriptor> future); in getReadOnlyFileDescriptor() 45 in AndroidFuture cancellationSignal, in requestFeatureDownload()
|
/frameworks/base/core/java/android/app/ondeviceintelligence/ |
D | IOnDeviceIntelligenceManager.aidl | 19 import com.android.internal.infra.AndroidFuture; 58 …void requestFeatureDownload(in Feature feature, in AndroidFuture cancellationSignalFuture, in IDo… in requestFeatureDownload() 61 …void requestTokenInfo(in Feature feature, in Bundle requestBundle, in AndroidFuture cancellationS… in requestTokenInfo() 66 in AndroidFuture cancellationSignalFuture, in processRequest() 67 in AndroidFuture processingSignalFuture, in processRequest() 72 … in Bundle requestBundle, int requestType, in AndroidFuture cancellationSignalFuture, in processRequestStreaming() 73 in AndroidFuture processingSignalFuture, in processRequestStreaming()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 29 import com.android.internal.infra.AndroidFuture; 682 public void name(AndroidFuture<String> resultFuture) throws RemoteException { in name() 692 public void configurationIntent(AndroidFuture<Intent> resultFuture) in configurationIntent() 703 public void currentDestinationString(AndroidFuture<String> resultFuture) in currentDestinationString() 714 public void dataManagementIntent(AndroidFuture<Intent> resultFuture) in dataManagementIntent() 725 public void dataManagementIntentLabel(AndroidFuture<CharSequence> resultFuture) in dataManagementIntentLabel() 736 public void transportDirName(AndroidFuture<String> resultFuture) throws RemoteException { in transportDirName() 746 public void requestBackupTime(AndroidFuture<Long> resultFuture) throws RemoteException { in requestBackupTime() 798 public void getAvailableRestoreSets(AndroidFuture<List<RestoreSet>> resultFuture) in getAvailableRestoreSets() 809 public void getCurrentRestoreSet(AndroidFuture<Long> resultFuture) in getCurrentRestoreSet() [all …]
|
/frameworks/base/services/core/java/com/android/server/ondeviceintelligence/ |
D | OnDeviceIntelligenceManagerService.java | 85 import com.android.internal.infra.AndroidFuture; 250 AndroidFuture future = new AndroidFuture(); in getOnDeviceIntelligenceManagerService() 279 AndroidFuture future = new AndroidFuture(); in getOnDeviceIntelligenceManagerService() 317 AndroidFuture future = new AndroidFuture(); in getOnDeviceIntelligenceManagerService() 361 AndroidFuture future = new AndroidFuture(); in getOnDeviceIntelligenceManagerService() 386 AndroidFuture cancellationSignalFuture, in getOnDeviceIntelligenceManagerService() 404 AndroidFuture future = new AndroidFuture(); in getOnDeviceIntelligenceManagerService() 422 AndroidFuture cancellationSignalFuture, in getOnDeviceIntelligenceManagerService() 425 AndroidFuture<Void> result = null; in getOnDeviceIntelligenceManagerService() 444 AndroidFuture future = new AndroidFuture(); in getOnDeviceIntelligenceManagerService() [all …]
|
/frameworks/base/core/java/android/service/games/ |
D | GameSessionTrampolineActivity.java | 28 import com.android.internal.infra.AndroidFuture; 70 @NonNull AndroidFuture<GameSessionActivityResult> resultFuture) { in createIntent() 104 AndroidFuture<GameSessionActivityResult> future = getIntent().getParcelableExtra( in onCreate() 105 FUTURE_KEY, com.android.internal.infra.AndroidFuture.class); in onCreate() 125 AndroidFuture<GameSessionActivityResult> future = getIntent().getParcelableExtra( in onActivityResult() 126 FUTURE_KEY, com.android.internal.infra.AndroidFuture.class); in onActivityResult()
|
/frameworks/base/services/tests/mockingservicestests/src/android/service/games/ |
D | GameSessionTrampolineActivityTest.java | 48 import com.android.internal.infra.AndroidFuture; 82 AndroidFuture<GameSessionActivityResult> unusedResultFuture = in launch_launchesTargetActivity() 91 AndroidFuture<GameSessionActivityResult> resultFuture = in launch_targetActivityFinishesSuccessfully_futureCompletedWithSameResults() 110 AndroidFuture<GameSessionActivityResult> resultFuture = in launch_trampolineActivityProcessDeath_futureCompletedWithSameResults() 125 AndroidFuture<GameSessionActivityResult> actualFuture, in assertEquals() 149 private static AndroidFuture<GameSessionActivityResult> 162 private static AndroidFuture<GameSessionActivityResult> startGameSessionTrampolineActivity( in startGameSessionTrampolineActivity() 164 AndroidFuture<GameSessionActivityResult> resultFuture = new AndroidFuture<>(); in startGameSessionTrampolineActivity()
|
/frameworks/base/core/java/android/security/attestationverification/ |
D | IAttestationVerificationManagerService.aidl | 23 import com.android.internal.infra.AndroidFuture; 37 in AndroidFuture resultCallback); in verifyAttestation() 42 in AndroidFuture resultCallback); in verifyToken()
|