| /expo/packages/@expo/cli/src/utils/ |
| H A D | getRunningProcess.ts | 17 const pid = Number(results); constant 18 debug(`pid: ${pid} for port: ${port}`); 19 return pid; 37 function getProcessCommand(pid: number, procDirectory: string): string { 43 return execSync(`ps -o command -p ${pid} | sed -n 2p`, defaultOptions).replace(/\n$/, '').trim(); 57 pid: number; 64 const pid = getPID(port); constant 65 if (!pid) { 71 const directory = getDirectoryOfProcessById(pid); 73 const command = getProcessCommand(pid, directory); [all …]
|
| /expo/packages/@expo/cli/src/start/platforms/android/ |
| H A D | adb.ts | 28 pid?: string; 103 device.pid, 131 device.pid, 157 device.pid, 207 if (pid) { 208 args.push('-s', pid); 236 .filter(({ props: [pid] }) => !!pid); 241 props: [pid, ...deviceInfo], 259 name = `Device ${pid}`; 263 name = (await getAdbNameForDeviceIdAsync({ pid })) ?? ''; [all …]
|
| H A D | activateWindow.ts | 22 debug(`Activating window for device (pid: ${device.pid}, type: ${device.type})`); 33 const androidPid = device.pid!.match(/-(\d+)/)?.[1]; 38 const pid = getUnixPID(androidPid); constant 40 if (!pid) { 43 debug(`Activate window for pid:`, pid); 47 set frontmost of the first process whose unix id is ${pid} to true
|
| H A D | AndroidDeviceManager.ts | 52 return this.device.pid ?? 'unknown'; 150 { pid: this.device.pid }, 155 await AndroidDebugBridge.openUrlAsync({ pid: this.device.pid }, { url });
|
| H A D | adbReverse.ts | 55 await getServer().runAsync(adbArgs(device.pid, 'reverse', `tcp:${port}`, `tcp:${port}`)); 69 await getServer().runAsync(adbArgs(device.pid, 'reverse', '--remove', `tcp:${port}`));
|
| /expo/packages/expo-test-runner/src/ |
| H A D | BundlerController.ts | 24 const killProcess: (pid: number, timeout: number) => Promise<void> = (pid, timeout) => 27 process.kill(pid, signal); 31 process.kill(pid, 0); 44 await killProcess(this.process?.pid!, 2000);
|
| /expo/packages/@expo/cli/src/start/platforms/android/__tests__/ |
| H A D | adbReverse-test.ts | 29 pid: 'FA8251A00720', 36 pid: 'emulator-5554', 57 pid: 'emulator-5554', 79 pid: 'FA8251A00719', 94 pid: 'FA8251A00719', 112 pid: 'FA8251A00720', 120 pid: 'emulator-5554',
|
| H A D | activateWindow-test.ts | 22 await activateWindowAsync({ type: 'emulator', pid: 'emulator-5554' }); 28 await activateWindowAsync({ type: 'device', pid: 'emulator-5554' }); 35 await activateWindowAsync({ type: 'emulator', pid: 'emulator-5554' }); 44 await activateWindowAsync({ type: 'emulator', pid: 'emulator-5554' });
|
| H A D | adb-test.ts | 28 const device = asDevice({ name: 'Pixel 5', pid: '123' }); 121 expect(await getAdbNameForDeviceIdAsync(asDevice({ pid: 'emulator-5554' }))).toBe( 131 getAdbNameForDeviceIdAsync(asDevice({ pid: 'emulator-5554' })) 155 pid: 'emulator-5554', 193 pid: 'FA8251A00719', 200 pid: 'FA8251A00720', 208 pid: 'emulator-5554', 250 await expect(getPropertyDataForDeviceAsync(asDevice({ pid: '123' }))).resolves.toStrictEqual({
|
| H A D | AndroidDeviceManager-test.ts | 26 return new AndroidDeviceManager(asDevice({ name: 'Pixel 5', pid: '123' })); 63 expect(openAppIdAsync).toBeCalledWith({ pid: '123' }, { applicationId: 'host.exp.exponent' }); 64 expect(openUrlAsync).toBeCalledWith({ pid: '123' }, { url: 'exp://foobar' }); 70 expect(openUrlAsync).toBeCalledWith({ pid: '123' }, { url: 'http://foobar' });
|
| /expo/packages/expo-test-runner/build/ |
| H A D | BundlerController.js | 27 const killProcess = (pid, timeout) => new Promise((resolve, reject) => { argument 29 process.kill(pid, signal); 33 process.kill(pid, 0); 46 await killProcess(this.process?.pid, 2000);
|
| H A D | BundlerController.js.map | 1 …pid: number, timeout: number) => Promise<void> = (pid, timeout) =>\n new Promise<void>((res…
|
| /expo/packages/@expo/cli/src/utils/__tests__/ |
| H A D | port.test.ts | 22 pid: 1, 31 pid: 1, 50 pid: 1, 62 pid: 1, 74 pid: 1,
|
| H A D | getRunningProcess-test.ts | 10 const pid = getPID(63828); constant 11 expect(pid).toBe(63828);
|
| /expo/packages/@expo/cli/src/run/android/__tests__/ |
| H A D | resolveOptions-test.ts | 12 pid: '123', 31 pid: '123', 64 pid: '123',
|
| H A D | resolveDevice-test.ts | 8 resolveAsync: jest.fn(async () => ({ device: { name: 'mock', pid: '123' } })), 9 resolveFromNameAsync: jest.fn(async () => ({ device: { name: 'mock', pid: '123' } })),
|
| /expo/packages/@expo/cli/src/start/platforms/ios/ |
| H A D | simctlLogging.ts | 81 pid: string; 110 return this.resolver.pid; 118 const pid = await this.resolvePidAsync(); constant 120 if (!pid) { 132 pid,
|
| /expo/packages/@expo/cli/__mocks__/@expo/ |
| H A D | spawn-async.ts | 5 pid: 1,
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/ |
| H A D | run-ci-e2e-tests.js | 148 APPIUM_PID = appiumProcess.pid; 162 SERVER_PID = packagerProcess.pid; 192 SERVER_PID = packagerProcess.pid;
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/ |
| H A D | run-ci-e2e-tests.js | 163 APPIUM_PID = appiumProcess.pid; 175 SERVER_PID = packagerProcess.pid; 205 SERVER_PID = packagerProcess.pid;
|
| H A D | setup-verdaccio.js | 41 const VERDACCIO_PID = verdaccioProcess.pid;
|
| /expo/packages/@expo/cli/src/run/android/ |
| H A D | resolveDevice.ts | 10 debug(`Resolved default device (name: ${manager.device.name}, pid: ${manager.device.pid})`);
|
| /expo/packages/jest-expo/bin/ |
| H A D | jest.js | 29 process.kill(process.pid, result.signal);
|
| /expo/packages/expo-yarn-workspaces/bin/ |
| H A D | expo-yarn-workspaces.js | 32 process.kill(process.pid, result.signal);
|
| /expo/packages/@expo/cli/src/start/doctor/ngrok/ |
| H A D | NgrokResolver.ts | 37 getActiveProcess(): { pid: number };
|