| /expo/packages/@expo/cli/src/run/ios/options/ |
| H A D | resolveDevice.ts | 36 return devices.filter((device) => !('osType' in device) || device.osType === osType); 41 device?: string | boolean, 46 if (!device) { 49 device: { 56 return manager.device; 64 device === true 83 const device = devices.find( constant 84 (device) => 87 if (!device) { 90 return device; [all …]
|
| /expo/packages/@expo/cli/src/start/platforms/ios/__tests__/ |
| H A D | AppleDeviceManager-test.ts | 12 const asDevice = (device: Partial<Device>): Device => device as Device; 20 const device = createDevice(); constant 29 const device = createDevice(); constant 37 const device = createDevice(); constant 44 const device = createDevice(); constant 60 const device = createDevice(); constant 67 const device = createDevice(); constant 77 const device = createDevice(); constant 85 const device = createDevice(); constant 94 const device = createDevice(); constant [all …]
|
| /expo/packages/@expo/cli/src/start/platforms/android/ |
| H A D | AndroidDeviceManager.ts | 21 const device = devices.find((device) => device.name === name); constant 23 if (!device) { 30 device, 33 if (device) { 48 return this.device.name; 52 return this.device.pid ?? 'unknown'; 67 this.device = await startDeviceAsync(this.device); 75 return this.device; 81 return this.device; 150 { pid: this.device.pid }, [all …]
|
| H A D | adbReverse.ts | 26 for (const device of devices) { constant 28 if (!(await adbReverseAsync(device, port))) { 29 debug(`Failed to start reverse port ${port} on device "${device.name}"`); 41 for (const device of devices) { constant 43 await adbReverseRemoveAsync(device, port); 48 async function adbReverseAsync(device: Device, port: number): Promise<boolean> { 49 if (!device.isAuthorized) { 50 logUnauthorized(device); 63 async function adbReverseRemoveAsync(device: Device, port: number): Promise<boolean> { 64 if (!device.isAuthorized) { [all …]
|
| H A D | adb.ts | 72 device: DeviceContext, 94 device: DeviceContext, 103 device.pid, 122 device: DeviceContext, 131 device.pid, 148 device: DeviceContext, 157 device.pid, 184 device: DeviceContext, 192 device: DeviceContext, 303 return devices.find((device) => device.name === name) ?? null; [all …]
|
| H A D | promptAndroidDevice.ts | 7 function nameStyleForDevice(device: Device): (name: string) => string { 8 const isActive = device.isBooted; 14 if (device.isAuthorized) { 40 const device = devices.find(({ name }) => name === value); constant 42 if (device?.isAuthorized === false) { 43 logUnauthorized(device); 47 return device!;
|
| H A D | activateWindow.ts | 21 export async function activateWindowAsync(device: Pick<Device, 'type' | 'pid'>): Promise<boolean> { 22 debug(`Activating window for device (pid: ${device.pid}, type: ${device.type})`); 27 device.type !== 'emulator' 33 const androidPid = device.pid!.match(/-(\d+)/)?.[1];
|
| /expo/packages/@expo/cli/src/start/platforms/__tests__/ |
| H A D | PlatformManager-test.ts | 36 const device = { constant 44 const resolveDeviceAsync = jest.fn(async () => device); 66 device, 94 expect(device.isAppInstalledAsync).toHaveBeenCalledTimes(0); 96 expect(device.activateWindowAsync).toHaveBeenCalledTimes(1); 97 expect(device.ensureExpoGoAsync).toHaveBeenCalledTimes(1); 127 expect(device.ensureExpoGoAsync).toHaveBeenCalledTimes(1); 158 expect(device.ensureExpoGoAsync).toHaveBeenCalledTimes(1); 186 expect(device.ensureExpoGoAsync).toHaveBeenCalledTimes(1); 272 expect(device.openUrlAsync).toHaveBeenCalledTimes(0); [all …]
|
| /expo/packages/@expo/cli/src/start/platforms/ios/ |
| H A D | simctl.ts | 67 device: Partial<DeviceContext>, 87 device: Partial<DeviceContext>, 112 device: Partial<DeviceContext>, 136 device: Partial<DeviceContext>, 149 device: Partial<DeviceContext>, 166 await bootDeviceAsync(device); 174 runtime.filter((device) => device.state === 'Booted') 182 if (device.udid) { 252 for (const device of sims) { constant 253 device.runtime = runtime; [all …]
|
| H A D | AppleDeviceManager.ts | 77 device, 84 device = await promptAppleDeviceAsync(devices, device?.osType); 87 const booted = await ensureSimulatorOpenAsync(device); 92 return this.device.name; 96 return this.device.udid; 107 return ensureSimulatorOpenAsync({ osType: this.device.osType, udid: this.device.udid }); 127 `npx expo run:ios -d ${this.device.udid}` 141 await SimControl.installAsync(this.device, { 170 await SimControl.uninstallAsync(this.device, { 198 `Device ${this.device.name} (${this.device.udid}) has no app to handle the URI: ${url}` [all …]
|
| /expo/packages/@expo/cli/src/start/platforms/android/__tests__/ |
| H A D | AndroidDeviceManager-test.ts | 23 const asDevice = (device: Partial<Device>): Device => device as Device; 31 const device = createDevice(); constant 36 const device = createDevice(); constant 44 const device = createDevice(); constant 51 const device = createDevice(); constant 61 const device = createDevice(); constant 62 await device.openUrlAsync('exp://foobar'); 67 const device = createDevice(); constant 68 await device.openUrlAsync('http://foobar'); 73 const device = createDevice(); constant [all …]
|
| /expo/packages/@expo/cli/src/run/android/ |
| H A D | resolveDevice.ts | 7 export async function resolveDeviceAsync(device?: string | boolean) { 8 if (!device) { 10 debug(`Resolved default device (name: ${manager.device.name}, pid: ${manager.device.pid})`); 14 debug(`Resolving device from argument: ${device}`); 16 device === true 20 await AndroidDeviceManager.resolveFromNameAsync(device); 21 logDeviceArgument(manager.device.name);
|
| /expo/packages/@expo/cli/src/start/server/metro/inspector-proxy/__tests__/ |
| H A D | device.test.ts | 12 const { device } = createTestDevice(); constant 30 device.handlers = [handler]; 32 device._processMessageFromDevice( 45 device.handlers = [handler]; 47 device._processMessageFromDevice( 59 device.handlers = []; 61 device._processMessageFromDevice( 75 device.handlers = [handler]; 92 device.handlers = [handler]; 108 device.handlers = []; [all …]
|
| H A D | proxy.test.ts | 68 const device = new WS(deviceWebSocketUrl); constant 73 expect(device.readyState).toBe(device.OPEN); 77 device.close(); 91 expect(device.readyState).toBe(device.OPEN); 96 device.close(); 105 const device = new WS(deviceWebSocketUrl); constant 111 device.close(); 120 device.close(); 136 const device = expoProxy.devices.values().next().value; constant 137 expect(device).toBeDefined(); [all …]
|
| /expo/packages/@expo/cli/src/run/ios/ |
| H A D | launchApp.ts | 26 udid: props.device.udid, 27 deviceName: props.device.name, 32 XcodeBuild.logPrettyItem(chalk`{bold Installing} on ${props.device.name}`); 34 const device = await AppleDeviceManager.resolveAsync({ device: props.device }); constant 35 await device.installAppAsync(binaryPath); 37 XcodeBuild.logPrettyItem(chalk`{bold Opening} on ${device.name} {dim (${appId})}`); 40 await SimulatorLogStreamer.getStreamer(device.device, { 50 { device }
|
| /expo/packages/@expo/cli/src/api/user/ |
| H A D | otp.ts | 56 const nonPrimarySecondFactorDevices = secondFactorDevices.filter((device) => !device.is_primary); 65 (device) => device.method === UserSecondFactorDeviceMethod.AUTHENTICATOR 69 (device) => device.method === UserSecondFactorDeviceMethod.SMS 75 const deviceChoices = smsNonPrimarySecondFactorDevices.map((device, idx) => ({ 76 title: device.sms_phone_number!, 101 const device = smsNonPrimarySecondFactorDevices[selectedValue]; constant 108 secondFactorDeviceID: device.id, 144 const primaryDevice = secondFactorDevices.find((device) => device.is_primary);
|
| /expo/packages/expo-updates/e2e/fixtures/ |
| H A D | Updates.e2e.ts | 78 await device.installApp(); 79 await device.launchApp({ 87 await device.launchApp(); 99 await device.installApp(); 100 await device.launchApp({ 134 await device.launchApp({ 147 await device.launchApp(); 179 await device.launchApp({ 192 await device.launchApp(); 241 await device.launchApp({ [all …]
|
| /expo/packages/@expo/cli/src/start/server/metro/inspector-proxy/handlers/__tests__/ |
| H A D | VscodeDebuggerScriptParsed.test.ts | 8 const device = makeTestDevice(); constant 9 const handler = new VscodeDebuggerScriptParsedHandler(device); 35 const device = makeTestDevice(); constant 36 const handler = new VscodeDebuggerScriptParsedHandler(device); 66 const device = makeTestDevice(); constant 67 const handler = new VscodeDebuggerScriptParsedHandler(device); 99 const device = makeTestDevice(); constant 100 const handler = new VscodeDebuggerScriptParsedHandler(device); 132 const device = makeTestDevice(); constant 163 const device = makeTestDevice(); constant [all …]
|
| /expo/packages/@expo/cli/src/run/android/__tests__/ |
| H A D | resolveOptions-test.ts | 10 device: { 28 device: { 29 device: { 51 device: 'search', 61 device: { 62 device: {
|
| /expo/packages/expo-updates/e2e/fixtures/project_files/ |
| H A D | detox.config.js | 46 device: { property 54 device: { property 61 device: 'simulator', property 65 device: 'simulator', property 69 device: 'emulator', property 73 device: 'emulator', property
|
| /expo/apps/bare-expo/ |
| H A D | detox.config.js | 46 device: { property 55 device: { property 62 device: 'simulator', property 66 device: 'simulator', property 70 device: 'emulator', property 74 device: 'emulator', property
|
| /expo/docs/pages/versions/unversioned/sdk/ |
| H A D | device.mdx | 3 description: A universal library provides access to system information about the physical device. 4 sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-device' 5 packageName: 'expo-device' 12 **`expo-device`** provides access to system information about the physical device, such as its manu… 23 import * as Device from 'expo-device'; 26 <APISection packageName="expo-device" apiName="Device" />
|
| /expo/docs/pages/versions/v49.0.0/sdk/ |
| H A D | device.mdx | 3 description: A universal library provides access to system information about the physical device. 4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-49/packages/expo-device' 5 packageName: 'expo-device' 12 **`expo-device`** provides access to system information about the physical device, such as its manu… 23 import * as Device from 'expo-device'; 26 <APISection packageName="expo-device" apiName="Device" />
|
| /expo/docs/pages/versions/v47.0.0/sdk/ |
| H A D | device.mdx | 3 description: A universal library provides access to system information about the physical device. 4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-47/packages/expo-device' 5 packageName: 'expo-device' 12 **`expo-device`** provides access to system information about the physical device, such as its manu… 23 import * as Device from 'expo-device'; 26 <APISection packageName="expo-device" apiName="Device" />
|
| /expo/docs/pages/versions/v48.0.0/sdk/ |
| H A D | device.mdx | 3 description: A universal library provides access to system information about the physical device. 4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-48/packages/expo-device' 5 packageName: 'expo-device' 12 **`expo-device`** provides access to system information about the physical device, such as its manu… 23 import * as Device from 'expo-device'; 26 <APISection packageName="expo-device" apiName="Device" />
|