Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 36) sorted by relevance

12

/expo/packages/@expo/cli/src/utils/
H A DgetRunningProcess.ts17 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 Dadb.ts28 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 DactivateWindow.ts22 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 DAndroidDeviceManager.ts52 return this.device.pid ?? 'unknown';
150 { pid: this.device.pid },
155 await AndroidDebugBridge.openUrlAsync({ pid: this.device.pid }, { url });
H A DadbReverse.ts55 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 DBundlerController.ts24 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 DadbReverse-test.ts29 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 DactivateWindow-test.ts22 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 Dadb-test.ts28 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 DAndroidDeviceManager-test.ts26 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 DBundlerController.js27 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 DBundlerController.js.map1pid: number, timeout: number) => Promise<void> = (pid, timeout) =>\n new Promise<void>((res…
/expo/packages/@expo/cli/src/utils/__tests__/
H A Dport.test.ts22 pid: 1,
31 pid: 1,
50 pid: 1,
62 pid: 1,
74 pid: 1,
H A DgetRunningProcess-test.ts10 const pid = getPID(63828); constant
11 expect(pid).toBe(63828);
/expo/packages/@expo/cli/src/run/android/__tests__/
H A DresolveOptions-test.ts12 pid: '123',
31 pid: '123',
64 pid: '123',
H A DresolveDevice-test.ts8 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 DsimctlLogging.ts81 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 Dspawn-async.ts5 pid: 1,
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/
H A Drun-ci-e2e-tests.js148 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 Drun-ci-e2e-tests.js163 APPIUM_PID = appiumProcess.pid;
175 SERVER_PID = packagerProcess.pid;
205 SERVER_PID = packagerProcess.pid;
H A Dsetup-verdaccio.js41 const VERDACCIO_PID = verdaccioProcess.pid;
/expo/packages/@expo/cli/src/run/android/
H A DresolveDevice.ts10 debug(`Resolved default device (name: ${manager.device.name}, pid: ${manager.device.pid})`);
/expo/packages/jest-expo/bin/
H A Djest.js29 process.kill(process.pid, result.signal);
/expo/packages/expo-yarn-workspaces/bin/
H A Dexpo-yarn-workspaces.js32 process.kill(process.pid, result.signal);
/expo/packages/@expo/cli/src/start/doctor/ngrok/
H A DNgrokResolver.ts37 getActiveProcess(): { pid: number };

12