Skip to content

Let AndroidComponentAddress specify a target UserHandle #11670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark new targetUser methods as experimental
  • Loading branch information
jdcormie committed Nov 9, 2024
commit a087bde88fad4c83636243397d32e02c2d7b670d
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import android.net.Uri;
import android.os.UserHandle;
import com.google.common.base.Objects;
import io.grpc.ExperimentalApi;
import java.net.SocketAddress;
import javax.annotation.Nullable;

Expand Down Expand Up @@ -214,6 +215,7 @@ public String toString() {
* <p>Returns the {@link UserHandle}, or null which means that the Android user hosting the
* current process will be used.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10173")
@Nullable
public UserHandle getTargetUser() {
return targetUser;
Expand Down Expand Up @@ -273,6 +275,7 @@ public Builder setData(Uri data) {
/**
* See {@link AndroidComponentAddress#getTargetUser()}.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10173")
public Builder setTargetUser(@Nullable UserHandle targetUser) {
this.targetUser = targetUser;
return this;
Expand Down
Loading