本文整理汇总了Java中org.chromium.content.common.IChildProcessService类的典型用法代码示例。如果您正苦于以下问题:Java IChildProcessService类的具体用法?Java IChildProcessService怎么用?Java IChildProcessService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IChildProcessService类属于org.chromium.content.common包,在下文中一共展示了IChildProcessService类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onServiceConnected
import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
synchronized(mLock) {
// A flag from the parent class ensures we run the post-connection logic only once
// (instead of once per each ChildServiceConnection).
if (mServiceConnectComplete) {
return;
}
TraceEvent.begin();
mServiceConnectComplete = true;
mService = IChildProcessService.Stub.asInterface(service);
// Make sure that the connection parameters have already been provided. If not,
// doConnectionSetup() will be called from setupConnection().
if (mConnectionParams != null) {
doConnectionSetup();
}
TraceEvent.end();
}
}
示例2: onServiceConnected
import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
synchronized (mLock) {
// A flag from the parent class ensures we run the post-connection logic only once
// (instead of once per each ChildServiceConnection).
if (mServiceConnectComplete) {
return;
}
TraceEvent.begin();
mServiceConnectComplete = true;
mService = IChildProcessService.Stub.asInterface(service);
// Make sure that the connection parameters have already been provided. If not,
// doConnectionSetup() will be called from setupConnection().
if (mConnectionParams != null) {
doConnectionSetup();
}
TraceEvent.end();
}
}
示例3: getService
import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
IChildProcessService getService() {
synchronized(mLock) {
return mService;
}
}
示例4: getService
import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
@Override
public IChildProcessService getService() {
synchronized (mLock) {
return mService;
}
}
示例5: getChildService
import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
/**
* Returns the child process service interface for the given pid. This may be called on
* any thread, but the caller must assume that the service can disconnect at any time. All
* service calls should catch and handle android.os.RemoteException.
*
* @param pid The pid (process handle) of the service obtained from {@link #start}.
* @return The IChildProcessService or null if the service no longer exists.
*/
public static IChildProcessService getChildService(int pid) {
ChildProcessConnection connection = sServiceMap.get(pid);
if (connection != null) {
return connection.getService();
}
return null;
}
示例6: getService
import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
IChildProcessService getService();