/external/tensorflow/tensorflow/core/grappler/ |
graph_view.h | 31 struct Port { 35 bool operator==(const Port& other) const { 39 struct InputPort : public Port {}; 40 struct OutputPort : public Port {}; 43 std::size_t operator()(const Port& port) const { 44 return reinterpret_cast<std::size_t>(port.node) + port.port_id; 51 // Get the specified input port. Note that the special '-1' port_id can be 55 // Get the specified output port. Note that the special '-1' port_id can b [all...] |
/external/tensorflow/tensorflow/stream_executor/ |
platform.h | 28 #include "tensorflow/stream_executor/platform/port.h" 131 virtual port::StatusOr<StreamExecutor*> ExecutorForDevice(int ordinal) = 0; 136 virtual port::StatusOr<StreamExecutor*> ExecutorForDeviceWithPluginConfig( 141 virtual port::StatusOr<StreamExecutor*> GetExecutor( 147 virtual port::StatusOr<std::unique_ptr<StreamExecutor>> GetUncachedExecutor( 159 virtual port::Status ForceExecutorShutdown(); 182 virtual port::Status EnablePeerAccess();
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SSLServerSocket.java | 77 * Create a TCP server socket on a port, using the default 82 * A port number of <code>0</code> creates a socket on any free port. 85 * method is called with the <code>port</code> argument as its 89 * @param port the port on which to listen 93 * @throws IllegalArgumentException if the port parameter is outside the 94 * specified range of valid port values, which is between 0 and 98 protected SSLServerSocket(int port) 100 { super(port); } [all...] |
/external/chromium-trace/catapult/devil/devil/android/ |
ports.py | 17 # The net test server is started from port 10201. 20 # A file to record next valid port of test server. 25 # The following two methods are used to allocate the port source for various 27 # same time, it's important to have a mechanism to allocate the port 28 # process-safe. In here, we implement the safe port allocation by leveraging 31 """Resets the port allocation to start from TEST_SERVER_PORT_FIRST. 41 logger.exception('Error while resetting port allocation') 46 """Allocates a port incrementally. 49 Returns a valid port which should be in between TEST_SERVER_PORT_FIRST and 50 TEST_SERVER_PORT_LAST. Returning 0 means no more valid port can be used [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLSocketFactoryImpl.java | 98 public Socket createSocket(String hostname, int port) throws IOException, UnknownHostException { 101 hostname, port, (SSLParametersImpl) sslParameters.clone()); 104 hostname, port, (SSLParametersImpl) sslParameters.clone()); 109 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) 112 return createEngineSocket(hostname, port, localHost, 115 return createFileDescriptorSocket(hostname, port, localHost, 121 public Socket createSocket(InetAddress address, int port) throws IOException { 124 address, port, (SSLParametersImpl) sslParameters.clone()); 127 address, port, (SSLParametersImpl) sslParameters.clone()); 132 public Socket createSocket(InetAddress address, int port, InetAddress localAddress [all...] |
OpenSSLSocketImpl.java | 39 OpenSSLSocketImpl(String hostname, int port) throws IOException { 40 super(hostname, port); 43 OpenSSLSocketImpl(InetAddress address, int port) throws IOException { 44 super(address, port); 47 OpenSSLSocketImpl(String hostname, int port, InetAddress clientAddress, int clientPort) 49 super(hostname, port, clientAddress, clientPort); 52 OpenSSLSocketImpl(InetAddress address, int port, InetAddress clientAddress, 55 super(address, port, clientAddress, clientPort); 58 OpenSSLSocketImpl(Socket socket, String hostname, int port, boolean autoClose) 60 super(socket, hostname, port, autoClose) [all...] |
/external/libmojo/third_party/catapult/devil/devil/android/ |
ports.py | 15 # The net test server is started from port 10201. 18 # A file to record next valid port of test server. 23 # The following two methods are used to allocate the port source for various 25 # same time, it's important to have a mechanism to allocate the port 26 # process-safe. In here, we implement the safe port allocation by leveraging 29 """Resets the port allocation to start from TEST_SERVER_PORT_FIRST. 41 logging.exception('Error while resetting port allocation') 46 """Allocates a port incrementally. 49 Returns a valid port which should be in between TEST_SERVER_PORT_FIRST and 50 TEST_SERVER_PORT_LAST. Returning 0 means no more valid port can be used [all...] |
/external/tensorflow/tensorflow/stream_executor/host/ |
host_gpu_executor.h | 50 port::Status Init(int device_ordinal, DeviceOptions device_options) override { 51 return port::Status::OK(); 98 port::Status SynchronousMemcpy(DeviceMemoryBase *gpu_dst, 100 port::Status SynchronousMemcpy(void *host_dst, 103 port::Status SynchronousMemcpyDeviceToDevice(DeviceMemoryBase *gpu_dst, 109 port::Status AllocateEvent(Event *event) override { 110 return port::Status{port::error::UNIMPLEMENTED, ""}; 113 port::Status DeallocateEvent(Event *event) override { 114 return port::Status{port::error::UNIMPLEMENTED, ""} [all...] |
/external/autotest/utils/ |
emulator_manager.py | 11 confirm process has stopped and port is free. 23 """Bad port, missing artifact or non-existant imagedir.""" 31 @param port: Port number for emulator's adbd. Note this port is one higher 32 than the port in the emulator's serial number. 35 def __init__(self, imagedir, port, run=utils.run): 36 if not port % 2 or port < 5555 or port > 5585 [all...] |
/external/vogar/src/vogar/ |
SshTarget.java | 36 private final int port; field in class:SshTarget 46 port = Integer.parseInt(hostAndPort.substring(colon + 1)); 49 port = 22; 51 sshCommandPrefixList = ImmutableList.of("ssh", "-p", Integer.toString(port), host, "-C"); 91 @Override public void forwardTcp(final int port) { 93 new Command(log, "ssh", "-p", Integer.toString(port), host, 94 "-L", port + ":" + host + ":" + port, "-N").start(); 101 new Command(log, "scp", "-r", "-P", Integer.toString(port), 110 new Command(log, "scp", "-r", "-P", Integer.toString(port), [all...] |
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
TestUtils.java | 36 public static void assertConnectionFails(SSLContext context, String host, int port) 39 Socket s = context.getSocketFactory().createSocket(host, port); 41 fail("Expected connection to " + host + ":" + port + " to fail."); 46 public static void assertConnectionSucceeds(SSLContext context, String host, int port) 48 Socket s = context.getSocketFactory().createSocket(host, port); 52 public static void assertUrlConnectionFails(SSLContext context, String host, int port) 54 URL url = new URL("https://" + host + ":" + port); 59 fail("Connection to " + host + ":" + port + " expected to fail"); 65 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) 67 URL url = new URL("https://" + host + ":" + port); [all...] |
/frameworks/opt/net/voip/src/jni/rtp/ |
RtpStream.cpp | 32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss); 59 uint16_t port = ntohs(*p); local 60 if ((port & 1) == 0) { 62 return port; 68 uint16_t delta = port << 1; 69 ++port; 73 port += delta; 74 } while (port < 1024); 75 *p = htons(port); 79 return port; [all...] |
/external/tensorflow/tensorflow/stream_executor/cuda/ |
cuda_driver.h | 22 #include "tensorflow/stream_executor/platform/port.h" 27 #include "tensorflow/stream_executor/platform/port.h" 65 static port::Status Init(); 70 static port::StatusOr<CUdevice> DeviceFromContext(CudaContext* context); 92 static port::Status CreateEvent(CudaContext* context, CUevent *result, 98 static port::Status DestroyEvent(CudaContext* context, CUevent *event); 137 static port::Status GetDevice(int device_ordinal, CUdevice *device); 150 static port::Status CreateContext(CUdevice device, 176 static port::StatusOr<CUsharedconfig> ContextGetSharedMemConfig( 182 static port::Status ContextSetSharedMemConfig [all...] |
/external/syslinux/gpxe/src/drivers/net/ |
sky2.c | 130 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val) 134 gma_write16(hw, port, GM_SMI_DATA, val); 135 gma_write16(hw, port, GM_SMI_CTRL, 139 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); 149 DBG(PFX "%s: phy write timeout\n", hw->dev[port]->name); 153 DBG(PFX "%s: phy I/O error\n", hw->dev[port]->name); 157 static int __gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg, u16 *val) 161 gma_write16(hw, port, GM_SMI_CTRL, GM_SMI_CT_PHY_AD(PHY_ADDR_MARV) 165 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); 170 *val = gma_read16(hw, port, GM_SMI_DATA) 1132 unsigned port = sky2->port; local 1315 unsigned port = sky2->port; local 1411 unsigned port = sky2->port; local 1442 unsigned port = sky2->port; local 1464 unsigned port = sky2->port; local 1650 unsigned port; local 2158 unsigned port = sky2->port; local [all...] |
/external/autotest/server/hosts/ |
rpc_server_tracker.py | 38 @param port: The host object associated with this instance of 45 def _setup_port(self, port, command_name, remote_pid=None): 49 We could open the port, but doing that would conflict with security 51 the port on the target we use an ssh tunnel. 55 a remote port. As such, it enforces a single proxy->remote port 56 policy, i.e if one starts a jsonrpc proxy/server from port A->B, 57 and then tries to start an xmlrpc proxy forwarded to the same port, 71 to the same remote port. If methods are invoked on the client 74 @param port: The remote forwarding port [all...] |
/external/iptables/extensions/ |
libipt_REDIRECT.c | 20 " --to-ports <port>[-<port>]\n" 21 " Port (range) to map to.\n" 44 unsigned int port, maxport; local 48 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX) && 49 (port = xtables_service_to_port(arg, NULL)) == (unsigned)-1) 54 mr->range[0].min.tcp.port 55 = mr->range[0].max.tcp.port 56 = htons(port); 63 if (maxport < port) [all...] |
/external/autotest/server/cros/network/rf_switch/ |
rf_mocks.py | 24 self.port = None 31 def connect(self, host, port): 33 self.port = port 47 def __init__(self, host='1.2.3.4', port=12345, test_interface=False): 50 self.socket.connect(host, port) 52 scpi.Scpi.__init__(self, host, port)
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
HopImpl.java | 55 protected int port; field in class:HopImpl 65 return host + ":" + port + "/" + transport; 69 * Create new hop given host, port and transport. 71 * @param portNumber port 83 port = portNumber; 90 * @param hop is a hop string in the form of host:port/Transport 114 port = Integer.parseInt(portstr); 116 throw new IllegalArgumentException("Bad port spec"); 122 this.port = transport.equalsIgnoreCase("TLS") ? 5061 : 5060; 126 this.port = 5060 [all...] |
/external/python/cpython2/Lib/ |
audiodev.py | 15 ## inited_nchannels, port, converter, classinited: private 54 self.port = None 58 if self.port: 66 if not self.port: 69 while self.port.getfilled() > 0: 74 if self.port: 75 self.port.closeport() 76 self.port = None 118 if not self.port: 120 self.port = al.openport('Python', 'w', self.config [all...] |
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/ |
IntentFilterData.java | 89 public void addAuthority(String host, String port) { 91 authorities.add(new DataAuthority(host, port)); 97 private String port; field in class:IntentFilterData.DataAuthority 99 public DataAuthority(String host, String port) { 101 this.port = port; 109 return port;
|
/external/webrtc/webrtc/p2p/base/ |
stunport_unittest.cc | 54 const cricket::Port* port() const { return stun_port_.get(); } function in class:StunPortTest 120 void OnPortComplete(cricket::Port* port) { 125 void OnPortError(cricket::Port* port) { 155 // Test that we can create a STUN port 158 EXPECT_EQ("stun", port()->Type()); 159 EXPECT_EQ(0U, port()->Candidates().size()); 167 ASSERT_EQ(1U, port()->Candidates().size()) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
RotateFilter.java | 52 public void onInputPortOpen(InputPort port) { 53 if (port.getName().equals("rotateAngle")) { 54 port.bindToFieldNamed("mRotateAngle"); 55 port.setAutoPullEnabled(true); 56 } else if (port.getName().equals("sourceRect")) { 57 port.bindToFieldNamed("mSourceRect"); 58 port.setAutoPullEnabled(true);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
audiodev.py | 15 ## inited_nchannels, port, converter, classinited: private 54 self.port = None 58 if self.port: 66 if not self.port: 69 while self.port.getfilled() > 0: 74 if self.port: 75 self.port.closeport() 76 self.port = None 118 if not self.port: 120 self.port = al.openport('Python', 'w', self.config [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
audiodev.py | 15 ## inited_nchannels, port, converter, classinited: private 54 self.port = None 58 if self.port: 66 if not self.port: 69 while self.port.getfilled() > 0: 74 if self.port: 75 self.port.closeport() 76 self.port = None 118 if not self.port: 120 self.port = al.openport('Python', 'w', self.config [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
audiodev.py | 15 ## inited_nchannels, port, converter, classinited: private 54 self.port = None 58 if self.port: 66 if not self.port: 69 while self.port.getfilled() > 0: 74 if self.port: 75 self.port.closeport() 76 self.port = None 118 if not self.port: 120 self.port = al.openport('Python', 'w', self.config [all...] |