Home
last modified time | relevance | path

Searched refs:port (Results 1 – 10 of 10) sorted by relevance

/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/utility/
DPortUtility.java48 int port; in nextAvailablePort() local
55 port = ThreadLocalRandom.current().nextInt(START_PORT, END_PORT); in nextAvailablePort()
56 if (isPortFree(port)) { in nextAvailablePort()
57 LOGGER.finest(String.format("Found open port (%d) after %d tries", port, count)); in nextAvailablePort()
58 return port; in nextAvailablePort()
71 private static boolean isPortFree(int port) { in isPortFree() argument
75 new ServerSocket(port).close(); in isPortFree()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/utility/
DPortUtilityTests.java34 int port = PortUtility.nextAvailablePort(); in nextAvailablePort_returnsAvailablePortWithinRange_fuzz() local
36 assertTrue(port >= PortUtility.START_PORT); in nextAvailablePort_returnsAvailablePortWithinRange_fuzz()
37 assertTrue(port < PortUtility.END_PORT); in nextAvailablePort_returnsAvailablePortWithinRange_fuzz()
40 new ServerSocket(port).close(); in nextAvailablePort_returnsAvailablePortWithinRange_fuzz()
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/
DAudioTestHarnessGrpcServer.java67 AudioTestHarnessGrpcServer(int port, ExecutorService executor, Injector injector) { in AudioTestHarnessGrpcServer() argument
68 LOGGER.finest(String.format("new AudioTestHarnessGrpcServer on Port (%d)", port)); in AudioTestHarnessGrpcServer()
70 this.mPort = port; in AudioTestHarnessGrpcServer()
DAudioTestHarnessGrpcServerFactory.java127 int port, @Nullable SharedHostConfiguration sharedHostConfiguration) { in createOnPort() argument
128 LOGGER.finest(String.format("createOnPort(%d, %s)", port, sharedHostConfiguration)); in createOnPort()
155 return new AudioTestHarnessGrpcServer(port, mExecutorService, injector); in createOnPort()
/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioTestHarnessClient.java107 public Builder setAddress(String hostname, int port) { in setAddress() argument
110 port >= MIN_PORT && port <= MAX_PORT, in setAddress()
118 mPort = port; in setAddress()
/platform_testing/tools/automotive/proxy/include/libProxyConfig/
DlibProxyConfig.h26 unsigned port; member
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ghidra/
DGhidraFunctionOffsets.java89 int port = serverSocket.getLocalPort(); in getFunctionOffsets() local
123 String.valueOf(port)))); in getFunctionOffsets()
/platform_testing/tools/automotive/proxy/
Dproxy.cpp137 addr.svm_port = service.port; in setupRoute()
140 int fwd_port = service.port; in setupRoute()
DlibProxyConfig.cpp41 vmService.port = service["port"].asInt(); in readVmService()
/platform_testing/libraries/motion/golden_updater/
Dwatch_local_tests.py137 ("localhost", args.port), WatchWebAppRequestHandler, golden_watcher