Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
core
ext
transport
binder
java
io
grpc
binder
cpp
GrpcCppServerBuilder.java
Go to the documentation of this file.
1
// Copyright 2021 gRPC authors.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
package
io.grpc.binder.cpp;
16
17
import
android.os.IBinder;
18
import
android.util.Log;
19
20
/* EXPERIMENTAL. Provides a interface to get endpoint binder from C++ */
21
public
class
GrpcCppServerBuilder
{
22
private
static
final
String
logTag
=
"GrpcCppServerBuilder"
;
23
24
public
static
IBinder
GetEndpointBinder
(String uri) {
25
String scheme =
"binder:"
;
26
if
(uri.startsWith(scheme)) {
27
String
path
= uri.substring(scheme.length());
28
// TODO(mingcl): Consider if we would like to make sure the path only contain valid
29
// characters here
30
return
GetEndpointBinderInternal
(
path
);
31
}
else
{
32
Log
.e(
logTag
,
"URI "
+ uri +
" does not start with 'binder:'"
);
33
return
null
;
34
}
35
}
36
37
private
static
native IBinder
GetEndpointBinderInternal
(String conn_id);
38
}
io.grpc.binder.cpp.GrpcCppServerBuilder.GetEndpointBinderInternal
static native IBinder GetEndpointBinderInternal(String conn_id)
testing::internal::Log
GTEST_API_ void Log(LogSeverity severity, const std::string &message, int stack_frames_to_skip)
Definition:
bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:149
io.grpc.binder.cpp.GrpcCppServerBuilder.GetEndpointBinder
static IBinder GetEndpointBinder(String uri)
Definition:
GrpcCppServerBuilder.java:24
check_documentation.path
path
Definition:
check_documentation.py:57
io.grpc.binder.cpp.GrpcCppServerBuilder.logTag
static final String logTag
Definition:
GrpcCppServerBuilder.java:22
io.grpc.binder.cpp.GrpcCppServerBuilder
Definition:
GrpcCppServerBuilder.java:21
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:48