Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f719ebc9 authored by sandeepbandaru's avatar sandeepbandaru Committed by Sandeep Bandaru
Browse files

Make all aidl callbacks oneway to avoid blocking binder threads

Bug: n/a
Test: cts passing
Change-Id: I80f3464b699c329f13539bc57295e6163263055a
parent 6aa9aeb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ import android.os.PersistableBundle;
 *
 * @hide
 */
interface IDownloadCallback {
oneway interface IDownloadCallback {
  void onDownloadStarted(long bytesToDownload) = 1;
  void onDownloadProgress(long bytesDownloaded) = 2;
  void onDownloadFailed(int failureStatus, String errorMessage, in PersistableBundle errorParams) = 3;
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ import android.os.PersistableBundle;
  *
  * @hide
  */
interface IFeatureCallback {
oneway interface IFeatureCallback {
    void onSuccess(in Feature result) = 1;
    void onFailure(int errorCode, in String errorMessage, in PersistableBundle errorParams) = 2;
}
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ import android.os.PersistableBundle;
  *
  * @hide
  */
interface IFeatureDetailsCallback {
oneway interface IFeatureDetailsCallback {
    void onSuccess(in FeatureDetails result) = 1;
    void onFailure(int errorCode, in String errorMessage, in PersistableBundle errorParams) = 2;
}
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ import android.os.PersistableBundle;
  *
  * @hide
  */
interface IListFeaturesCallback {
oneway interface IListFeaturesCallback {
    void onSuccess(in List<Feature> result) = 1;
    void onFailure(int errorCode, in String errorMessage, in PersistableBundle errorParams) = 2;
}
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ import android.os.RemoteCallback;
  *
  * @hide
  */
interface IResponseCallback {
oneway interface IResponseCallback {
    void onSuccess(in Bundle resultBundle) = 1;
    void onFailure(int errorCode, in String errorMessage, in PersistableBundle errorParams) = 2;
    void onDataAugmentRequest(in Bundle processedContent, in RemoteCallback responseCallback) = 3;
Loading