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

Commit 08e916ca authored by Yu Shan's avatar Yu Shan Committed by Android (Google) Code Review
Browse files

Merge "Rename to getAllPendingScheduledTasks." into main

parents aa2d5720 59f33e4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,5 +46,5 @@ interface IRemoteAccess {
  void unscheduleTask(String clientId, String scheduleId);
  void unscheduleAllTasks(String clientId);
  boolean isTaskScheduled(String clientId, String scheduleId);
  List<android.hardware.automotive.remoteaccess.ScheduleInfo> getAllScheduledTasks(String clientId);
  List<android.hardware.automotive.remoteaccess.ScheduleInfo> getAllPendingScheduledTasks(String clientId);
}
+1 −1
Original line number Diff line number Diff line
@@ -201,5 +201,5 @@ interface IRemoteAccess {
     *
     * <p>The finished scheduled tasks will not be included.
     */
    List<ScheduleInfo> getAllScheduledTasks(String clientId);
    List<ScheduleInfo> getAllPendingScheduledTasks(String clientId);
}
+11 −8
Original line number Diff line number Diff line
@@ -75,8 +75,9 @@ class MockGrpcClientStub : public WakeupClient::StubInterface {
        return Status::OK;
    }

    Status GetAllScheduledTasks(ClientContext* context, const GetAllScheduledTasksRequest& request,
                                GetAllScheduledTasksResponse* response) {
    Status GetAllPendingScheduledTasks(ClientContext* context,
                                       const GetAllPendingScheduledTasksRequest& request,
                                       GetAllPendingScheduledTasksResponse* response) {
        return Status::OK;
    }

@@ -165,16 +166,18 @@ class MockGrpcClientStub : public WakeupClient::StubInterface {
        return nullptr;
    }

    ClientAsyncResponseReaderInterface<GetAllScheduledTasksResponse>* AsyncGetAllScheduledTasksRaw(
    ClientAsyncResponseReaderInterface<GetAllPendingScheduledTasksResponse>*
    AsyncGetAllPendingScheduledTasksRaw(
            [[maybe_unused]] ClientContext* context,
            [[maybe_unused]] const GetAllScheduledTasksRequest& request,
            [[maybe_unused]] const GetAllPendingScheduledTasksRequest& request,
            [[maybe_unused]] CompletionQueue* cq) {
        return nullptr;
    }

    ClientAsyncResponseReaderInterface<GetAllScheduledTasksResponse>*
    PrepareAsyncGetAllScheduledTasksRaw([[maybe_unused]] ClientContext* context,
                                        [[maybe_unused]] const GetAllScheduledTasksRequest& request,
    ClientAsyncResponseReaderInterface<GetAllPendingScheduledTasksResponse>*
    PrepareAsyncGetAllPendingScheduledTasksRaw(
            [[maybe_unused]] ClientContext* context,
            [[maybe_unused]] const GetAllPendingScheduledTasksRequest& request,
            [[maybe_unused]] CompletionQueue* c) {
        return nullptr;
    }
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ class RemoteAccessService
    ndk::ScopedAStatus isTaskScheduled(const std::string& clientId, const std::string& scheduleId,
                                       bool* out) override;

    ndk::ScopedAStatus getAllScheduledTasks(
    ndk::ScopedAStatus getAllPendingScheduledTasks(
            const std::string& clientId,
            std::vector<aidl::android::hardware::automotive::remoteaccess::ScheduleInfo>* out)
            override;
+4 −3
Original line number Diff line number Diff line
@@ -99,7 +99,8 @@ service WakeupClient {
     *
     * <p>The finished scheduled tasks will not be included.
     */
    rpc GetAllScheduledTasks(GetAllScheduledTasksRequest) returns (GetAllScheduledTasksResponse) {}
    rpc GetAllPendingScheduledTasks(GetAllPendingScheduledTasksRequest)
            returns (GetAllPendingScheduledTasksResponse) {}
}

message GetRemoteTasksRequest {}
@@ -154,10 +155,10 @@ message IsTaskScheduledResponse {
    bool isTaskScheduled = 1;
}

message GetAllScheduledTasksRequest {
message GetAllPendingScheduledTasksRequest {
    string clientId = 1;
}

message GetAllScheduledTasksResponse {
message GetAllPendingScheduledTasksResponse {
    repeated GrpcScheduleInfo allScheduledTasks = 1;
}
Loading