コード例 #1
0
 /** Sets service class for sandboxed service and privileged service. */
 public static void setChildProcessClass(
     Class<? extends SandboxedProcessService> sandboxedServiceClass,
     Class<? extends PrivilegedProcessService> privilegedServiceClass) {
   // We should guarantee this is called before allocating connection.
   assert !sConnectionAllocated;
   sSandboxedChildConnectionAllocator.setServiceClass(sandboxedServiceClass);
   sPrivilegedChildConnectionAllocator.setServiceClass(privilegedServiceClass);
 }
コード例 #2
0
 /** @return the count of sandboxed connections managed by the allocator */
 @VisibleForTesting
 static int allocatedConnectionsCountForTesting(Context context) {
   initConnectionAllocatorsIfNecessary(context);
   return sSandboxedChildConnectionAllocator.allocatedConnectionsCountForTesting();
 }
コード例 #3
0
 /** @return the count of sandboxed connections managed by the allocator */
 @VisibleForTesting
 static int allocatedConnectionsCountForTesting() {
   return sSandboxedChildConnectionAllocator.allocatedConnectionsCountForTesting();
 }