diff --git a/api/@ohos.UiTest.d.ts b/api/@ohos.UiTest.d.ts index 99d5b7167c7907485c657554ce75ab6a299ed5c1..e7c6f0bcaad71ae9d21445c0fcae2a68626a534f 100755 --- a/api/@ohos.UiTest.d.ts +++ b/api/@ohos.UiTest.d.ts @@ -1067,14 +1067,14 @@ declare interface Point { /** * The x-coordinate of the coordinate point. * - * @type { number } + * @type { int } * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - x: number; + x: int; /** * The y-coordinate of the coordinate point. * @@ -1105,24 +1105,24 @@ declare interface Point { /** * The y-coordinate of the coordinate point. * - * @type { number } + * @type { int } * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - y: number; + y: int; /** * The displayId to which the coordinate point belongs, default is the displayId of the main scrren. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Test.UiTest * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - displayId?: number; + displayId?: int; } /** @@ -1181,14 +1181,14 @@ declare interface Rect { /** * The x-coordinate of the top left corner of the rectangle. * - * @type { number } + * @type { int } * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - left: number; + left: int; /** * The y-coordinate of the top left corner of the rectangle. * @@ -1219,14 +1219,14 @@ declare interface Rect { /** * The y-coordinate of the top left corner of the rectangle. * - * @type { number } + * @type { int } * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - top: number; + top: int; /** * The x-coordinate at the bottom right corner of the rectangle. * @@ -1257,14 +1257,14 @@ declare interface Rect { /** * The x-coordinate at the bottom right corner of the rectangle. * - * @type { number } + * @type { int } * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - right: number; + right: int; /** * The y-coordinate at the bottom right corner of the rectangle. * @@ -1295,14 +1295,14 @@ declare interface Rect { /** * The y-coordinate at the bottom right corner of the rectangle. * - * @type { number } + * @type { int } * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice * @since arkts {'1.1':'20','1.2':'20'} * @arkts 1.1&1.2 */ - bottom: number; + bottom: int; /** * The displayId to which the rect belongs, default is the displayId of the main screen. * @@ -1797,14 +1797,14 @@ declare interface TouchPadSwipeOptions { /** * Speed(pixels per second) of touchpad multi-finger swipe, default is 2000, the value ranges from 200 to 40000,set it 2000 if out of range. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Test.UiTest * @atomicservice * @since arkts {'1.1':'18','1.2':'20'} * @test * @arkts 1.1&1.2 */ - speed?: number; + speed?: int; } /** @@ -3122,7 +3122,7 @@ declare class Component { /** * Scroll on this {@link Component} to the top,applicable to scrollable one. * - * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000.Set it default 600 if out of range or null or undefined. + * @param { int } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000.Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3134,7 +3134,7 @@ declare class Component { * @test * @arkts 1.1&1.2 */ - scrollToTop(speed?: number): Promise; + scrollToTop(speed?: int): Promise; /** * Scroll on this {@link Component} to the bottom,applicable to scrollable one. @@ -3164,7 +3164,7 @@ declare class Component { /** * Scroll on this {@link Component} to the bottom,applicable to scrollable one. * - * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. + * @param { int } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3176,7 +3176,7 @@ declare class Component { * @test * @arkts 1.1&1.2 */ - scrollToBottom(speed?: number): Promise; + scrollToBottom(speed?: int): Promise; /** * Get the bounds rect of this {@link Component}. @@ -3334,7 +3334,7 @@ declare class Component { /** * Pinch enlarge this {@link Component} to the target scale. * - * @param { number } scale - the scale of the pinch enlarge this {@link Component}'s size, ranges greater than 1. + * @param { double } scale - the scale of the pinch enlarge this {@link Component}'s size, ranges greater than 1. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3346,7 +3346,7 @@ declare class Component { * @test * @arkts 1.1&1.2 */ - pinchOut(scale: number): Promise; + pinchOut(scale: double): Promise; /** * Pinch shrink this {@link Component} to the target scale. @@ -3363,7 +3363,7 @@ declare class Component { /** * Pinch shrink this {@link Component} to the target scale. * - * @param { number } scale - the scale of the pinch shrink this {@link Component}'s size, ranges from 0 to 1. + * @param { double } scale - the scale of the pinch shrink this {@link Component}'s size, ranges from 0 to 1. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3374,8 +3374,9 @@ declare class Component { * @since arkts {'1.1':'11','1.2':'20'} * @test * @arkts 1.1&1.2 - */ - pinchIn(scale: number): Promise; + */ + pinchIn(scale: double): Promise; + /** * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one. * @@ -3437,7 +3438,7 @@ declare class Component { * * @param { On } on - the attribute requirements of the target {@link Component}. * @param { boolean } [vertical] - Whether the swipe direction is vertical, default is true. - * @param { number } [offset] - Offset from the swipe start/end point to the component border, default is 80. + * @param { int } [offset] - Offset from the swipe start/end point to the component border, default is 80. * @returns { Promise } the found result,or null if not found. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3447,7 +3448,7 @@ declare class Component { * @test * @arkts 1.2 */ - scrollSearch(on: On, vertical?: boolean, offset?: number): Promise; + scrollSearch(on: On, vertical?: boolean, offset?: int): Promise; /** * Get the original text attribute value. * If the accessibility property 'accessibilityLevel' of a component is set to 'no' or 'no-hide-descendants', @@ -3554,7 +3555,7 @@ declare class Driver { /** * Delay with specified duration. * - * @param { number } duration - the delay duration in milliseconds, not less than 0. + * @param { int } duration - the delay duration in milliseconds, not less than 0. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3565,7 +3566,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - delayMs(duration: number): Promise; + delayMs(duration: int): Promise; /** * Find the first matched {@link Component} on current UI. @@ -3684,7 +3685,7 @@ declare class Driver { * Find the first matched {@link Component} on current UI during the time given. * * @param { On } on - the attribute requirements of the target {@link Component}. - * @param { number } time - duration of finding in milliseconds, not less than 0. + * @param { int } time - duration of finding in milliseconds, not less than 0. * @returns { Promise } the first matched {@link Component} or undefined. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3693,7 +3694,7 @@ declare class Driver { * @test * @arkts 1.2 */ - waitForComponent(on: On, time: number): Promise; + waitForComponent(on: On, time: int): Promise; /** * Find all the matched {@link Component}s on current UI. * @@ -3822,7 +3823,7 @@ declare class Driver { /** * Press the BACK key on the specified display. * - * @param { number } displayId - the Id of the specified display. + * @param { int } displayId - the Id of the specified display. * @returns { Promise } * @throws { BusinessError } 17000002 - The async function is not called with await. * @throws { BusinessError } 17000007 - Parameter verification failed. @@ -3832,7 +3833,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - pressBack(displayId: number): Promise; + pressBack(displayId: int): Promise; /** * Press the specified key. @@ -3848,7 +3849,7 @@ declare class Driver { /** * Press the specified key. * - * @param { number } keyCode - the target keyCode. + * @param { int } keyCode - the target keyCode. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3859,13 +3860,13 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - triggerKey(keyCode: number): Promise; + triggerKey(keyCode: int): Promise; /** * Press the specified key on the specified display. * - * @param { number } keyCode - the target keyCode. - * @param { number } displayId - the Id of the specified display. + * @param { int } keyCode - the target keyCode. + * @param { int } displayId - the Id of the specified display. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3875,7 +3876,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - triggerKey(keyCode: number, displayId: number): Promise; + triggerKey(keyCode: int, displayId: int): Promise; /** * Press two or three key combinations @@ -3893,9 +3894,9 @@ declare class Driver { /** * Press two or three key combinations * - * @param { number } key0 - the first keyCode. - * @param { number } key1 - the second keyCode. - * @param { number } [key2] - the third keyCode,set it default 0 if null or undefined. + * @param { int } key0 - the first keyCode. + * @param { int } key1 - the second keyCode. + * @param { int } [key2] - the third keyCode,set it default 0 if null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3906,7 +3907,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - triggerCombineKeys(key0: number, key1: number, key2?: number): Promise; + triggerCombineKeys(key0: int, key1: int, key2?: int): Promise; /** * Press two or three key combinations on the specified display. @@ -3953,8 +3954,8 @@ declare class Driver { /** * Click on the specified location on the screen. * - * @param { number } x - the x-coordinate, not less than 0. - * @param { number } y - the y-coordinate, not less than 0. + * @param { int } x - the x-coordinate, not less than 0. + * @param { int } y - the y-coordinate, not less than 0. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -3965,7 +3966,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - click(x: number, y: number): Promise; + click(x: int, y: int): Promise; /** * DoubleClick on the specified location on the screen. @@ -3995,8 +3996,8 @@ declare class Driver { /** * DoubleClick on the specified location on the screen. * - * @param { number } x - the x-coordinate, not less than 0. - * @param { number } y - the y-coordinate, not less than 0. + * @param { int } x - the x-coordinate, not less than 0. + * @param { int } y - the y-coordinate, not less than 0. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4007,7 +4008,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - doubleClick(x: number, y: number): Promise; + doubleClick(x: int, y: int): Promise; /** * LongClick on the specified location on the screen. @@ -4037,8 +4038,8 @@ declare class Driver { /** * LongClick on the specified location on the screen. * - * @param { number } x - the x-coordinate, not less than 0. - * @param { number } y - the y-coordinate, not less than 0. + * @param { int } x - the x-coordinate, not less than 0. + * @param { int } y - the y-coordinate, not less than 0. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4049,7 +4050,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - longClick(x: number, y: number): Promise; + longClick(x: int, y: int): Promise; /** * Swipe on the screen between the specified points. @@ -4085,11 +4086,11 @@ declare class Driver { /** * Swipe on the screen between the specified points. * - * @param { number } startx - the x-coordinate of the starting point, not less than 0. - * @param { number } starty - the y-coordinate of the starting point, not less than 0. - * @param { number } endx - the x-coordinate of the ending point, not less than 0. - * @param { number } endy - the y-coordinate of the ending point, not less than 0. - * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. + * @param { int } startx - the x-coordinate of the starting point, not less than 0. + * @param { int } starty - the y-coordinate of the starting point, not less than 0. + * @param { int } endx - the x-coordinate of the ending point, not less than 0. + * @param { int } endy - the y-coordinate of the ending point, not less than 0. + * @param { int } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4100,7 +4101,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - swipe(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise; + swipe(startx: int, starty: int, endx: int, endy: int, speed?: int): Promise; /** * Drag on the screen between the specified points. @@ -4120,11 +4121,11 @@ declare class Driver { /** * Drag on the screen between the specified points. * - * @param { number } startx - the x-coordinate of the starting point, not less than 0. - * @param { number } starty - the y-coordinate of the starting point, not less than 0. - * @param { number } endx - the x-coordinate of the ending point, not less than 0. - * @param { number } endy - the y-coordinate of the ending point, not less than 0. - * @param { number } [speed] the speed of drag(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. + * @param { int } startx - the x-coordinate of the starting point, not less than 0. + * @param { int } starty - the y-coordinate of the starting point, not less than 0. + * @param { int } endx - the x-coordinate of the ending point, not less than 0. + * @param { int } endy - the y-coordinate of the ending point, not less than 0. + * @param { int } [speed] the speed of drag(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4134,7 +4135,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise; + drag(startx: int, starty: int, endx: int, endy: int, speed?: int): Promise; /** * Click on the specified location on the screen. @@ -4366,7 +4367,7 @@ declare class Driver { /** * Get the size of the specified device display. * - * @param { number } displayId - the Id of the specified display. + * @param { int } displayId - the Id of the specified display. * @returns { Promise } the size of the device display. * @throws { BusinessError } 17000002 - The async function is not called with await. * @throws { BusinessError } 17000007 - Parameter verification failed. @@ -4376,7 +4377,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - getDisplaySize(displayId: number): Promise; + getDisplaySize(displayId: int): Promise; /** * Get the density of the device display. @@ -4461,7 +4462,7 @@ declare class Driver { /** * Press the home key to the specified display. * - * @param { number } displayId - the Id of the specified display. + * @param { int } displayId - the Id of the specified display. * @returns { Promise } * @throws { BusinessError } 17000002 - The async function is not called with await. * @throws { BusinessError } 17000007 - Parameter verification failed. @@ -4471,7 +4472,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - pressHome(displayId: number): Promise; + pressHome(displayId: int): Promise; /** * Wait for the UI become idle. @@ -4488,8 +4489,8 @@ declare class Driver { /** * Wait for the UI become idle. * - * @param { number } idleTime - the threshold of UI idle time, in millisecond, not less than 0. - * @param { number } timeout - the maximum time to wait for idle, in millisecond, not less than 0. + * @param { int } idleTime - the threshold of UI idle time, in millisecond, not less than 0. + * @param { int } timeout - the maximum time to wait for idle, in millisecond, not less than 0. * @returns { Promise } true if wait for idle succeed in the timeout, false otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4499,7 +4500,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - waitForIdle(idleTime: number, timeout: number): Promise; + waitForIdle(idleTime: int, timeout: int): Promise; /** * Inject fling on the device display. @@ -4535,8 +4536,8 @@ declare class Driver { * * @param { Point } from - the coordinate point where the finger touches the screen. * @param { Point } to - the coordinate point where the finger leaves the screen. - * @param { number } stepLen - the length of each step, in pixels. - * @param { number } [speed] - the speed of fling(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. + * @param { int } stepLen - the length of each step, in pixels. + * @param { int } [speed] - the speed of fling(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4547,7 +4548,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - fling(from: Point, to: Point, stepLen: number, speed: number): Promise; + fling(from: Point, to: Point, stepLen: int, speed: int): Promise; /** * Inject multi-pointer action on the device display. @@ -4565,7 +4566,7 @@ declare class Driver { * Inject multi-pointer action on the device display. * * @param { PointerMatrix } pointers - the two-dimensional array of pointers to inject. - * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. + * @param { int } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined. * @returns { Promise } true if the operation finished, false * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4576,7 +4577,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - injectMultiPointerAction(pointers: PointerMatrix, speed?: number): Promise; + injectMultiPointerAction(pointers: PointerMatrix, speed?: int): Promise; /** * Inject fling on the device display. @@ -4607,7 +4608,7 @@ declare class Driver { * Inject fling on the device display. * * @param { UiDirection } direction - the direction of this action. - * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range. + * @param { int } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4618,15 +4619,15 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - fling(direction: UiDirection, speed: number): Promise; + fling(direction: UiDirection, speed: int): Promise; /** * Inject fling on the specified device display. * * @param { UiDirection } direction - the direction of this action. - * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range. - * @param { number } displayId - the Id of the specified display. - * @returns { Promise } + * @param { int } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range. + * @param { int } displayId - the Id of the specified display. + * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. * @syscap SystemCapability.Test.UiTest @@ -4635,7 +4636,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - fling(direction: UiDirection, speed: number, displayId: number): Promise; + fling(direction: UiDirection, speed: int, displayId: int): Promise; /** * Click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary. @@ -4656,8 +4657,8 @@ declare class Driver { * * @param { Point } p - the coordinate of the specified location. * @param { MouseButton } btnId - the button of Mouse. - * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined. - * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined. + * @param { int } [key1] - the first keyCode,set it default 0 if null or undefined. + * @param { int } [key2] - the second keyCode,set it default 0 if null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4667,7 +4668,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise; + mouseClick(p: Point, btnId: MouseButton, key1?: int, key2?: int): Promise; /** * Move the mouse cursor to the specified location. @@ -4715,9 +4716,9 @@ declare class Driver { * * @param { Point } p - the coordinate of the specified location. * @param { boolean } down - whether the mouse wheel rolls down. - * @param { number } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels. - * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined. - * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined. + * @param { int } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels. + * @param { int } [key1] - the first keyCode,set it default 0 if null or undefined. + * @param { int } [key2] - the second keyCode,set it default 0 if null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4727,17 +4728,17 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseScroll(p: Point, down: boolean, d: number, key1?: number, key2?: number): Promise; + mouseScroll(p: Point, down: boolean, d: int, key1?: int, key2?: int): Promise; /** * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary. * * @param { Point } p - the coordinate of the specified location. * @param { boolean } down - whether the mouse wheel rolls down. - * @param { number } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels. - * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined. - * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined. - * @param { number } [speed] - The Speed of mouse wheel rolls(cells per second),ranges from 1 to 500.Set it default 20 if out of range or null or undefined. + * @param { int } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels. + * @param { int } [key1] - the first keyCode,set it default 0 if null or undefined. + * @param { int } [key2] - the second keyCode,set it default 0 if null or undefined. + * @param { int } [speed] - The Speed of mouse wheel rolls(cells per second),ranges from 1 to 500.Set it default 20 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4747,7 +4748,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseScroll(p: Point, down: boolean, d: number, key1?: number, key2?: number, speed?: number): Promise; + mouseScroll(p: Point, down: boolean, d: int, key1?: int, key2?: int, speed?: int): Promise; /** * Capture the specified area of current screen and save as picture which PNG format. @@ -4804,8 +4805,8 @@ declare class Driver { * * @param { Point } p - the coordinate of the specified location. * @param { MouseButton } btnId - the button of Mouse. - * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined. - * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined. + * @param { int } [key1] - the first keyCode,set it default 0 if null or undefined. + * @param { int } [key2] - the second keyCode,set it default 0 if null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4815,15 +4816,15 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseDoubleClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise; + mouseDoubleClick(p: Point, btnId: MouseButton, key1?: int, key2?: int): Promise; /** * Long click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary. * * @param { Point } p - the coordinate of the specified location. * @param { MouseButton } btnId - the button of Mouse. - * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined. - * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined. + * @param { int } [key1] - the first keyCode,set it default 0 if null or undefined. + * @param { int } [key2] - the second keyCode,set it default 0 if null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4833,7 +4834,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseLongClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise; + mouseLongClick(p: Point, btnId: MouseButton, key1?: int, key2?: int): Promise; /** * Long click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary. @@ -4858,7 +4859,7 @@ declare class Driver { * * @param { Point } from - the starting point. * @param { Point } to - the ending point. - * @param { number } [speed] - speed of swipe (pixels per second),the value ranges from 200 to 40000.Set it default 600 if out of range or null or undefined. + * @param { int } [speed] - speed of swipe (pixels per second),the value ranges from 200 to 40000.Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4868,14 +4869,14 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseMoveWithTrack(from: Point, to: Point, speed?: number): Promise; + mouseMoveWithTrack(from: Point, to: Point, speed?: int): Promise; /** * Hold down the left mouse button and drag on the screen between the specified points. * * @param { Point } from - the starting point. * @param { Point } to - the ending point. - * @param { number } [speed] - speed of drag (pixels per second),the value ranges from 200 to 40000,Set it default 600 if out of range or null or undefined. + * @param { int } [speed] - speed of drag (pixels per second),the value ranges from 200 to 40000,Set it default 600 if out of range or null or undefined. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -4885,7 +4886,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - mouseDrag(from: Point, to: Point, speed?: number): Promise; + mouseDrag(from: Point, to: Point, speed?: int): Promise; /** * Hold down the left mouse button and drag on the screen between the specified points. @@ -4940,7 +4941,7 @@ declare class Driver { /** * Simulate touchpad multi-finger swipe gestures. - * @param { number } fingers Finger count of touchpad multi-finger swipe, ranges from 3 to 4. + * @param { int } fingers Finger count of touchpad multi-finger swipe, ranges from 3 to 4. * @param { UiDirection } direction Direction of touchpad multi-finger swipe. * @param { TouchPadSwipeOptions } [options] Additional options touchpad multi-finger swipe gestures, set its parameters to default values if null or undefined. * @returns { Promise } @@ -4953,7 +4954,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - touchPadMultiFingerSwipe(fingers: number, direction: UiDirection, options?: TouchPadSwipeOptions): Promise; + touchPadMultiFingerSwipe(fingers: int, direction: UiDirection, options?: TouchPadSwipeOptions): Promise; /** * Simulate pen click operation. @@ -4972,7 +4973,7 @@ declare class Driver { /** * Simulate pen long click operation. * @param { Point } point Coordinate of the specified location. - * @param { number } [pressure] Pressure of pen long click operation, default is 1.0, the value ranges from 0.0 to 1.0. + * @param { double } [pressure] Pressure of pen long click operation, default is 1.0, the value ranges from 0.0 to 1.0. * @returns { Promise } * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 The async function is not called with await. @@ -4982,7 +4983,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - penLongClick(point: Point, pressure?: number): Promise; + penLongClick(point: Point, pressure?: double): Promise; /** * Simulate pen double click operation. @@ -5002,8 +5003,8 @@ declare class Driver { * Simulate pen swipe operation. * @param { Point } startPoint Coordinate of the specified location. * @param { Point } endPoint Coordinate of the specified location. - * @param { number } [speed] Speed(pixels per second) of pen swipe, default is 600,the value ranges from 200 to 40000,set it 600 if out of range. - * @param { number } [pressure] Pressure of pen swipe operation, default is 1.0, the value ranges from 0.0 to 1.0. + * @param { int } [speed] Speed(pixels per second) of pen swipe, default is 600,the value ranges from 200 to 40000,set it 600 if out of range. + * @param { double } [pressure] Pressure of pen swipe operation, default is 1.0, the value ranges from 0.0 to 1.0. * @returns { Promise } * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 The async function is not called with await. @@ -5013,13 +5014,13 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - penSwipe(startPoint: Point, endPoint: Point, speed?: number, pressure?: number): Promise; + penSwipe(startPoint: Point, endPoint: Point, speed?: int, pressure?: double): Promise; /** * Inject pen multi-pointer action on the device display. * @param { PointerMatrix } pointers The two-dimensional array of pointers to inject. - * @param { number } [speed] Speed(pixels per second) of inject pen pointer action, default is 600,the value ranges from 200 to 40000,set it 600 if out of range. - * @param { number } [pressure] Pressure of inject pen pointer action operation, default is 1.0, the value ranges from 0.0 to 1.0. + * @param { int } [speed] Speed(pixels per second) of inject pen pointer action, default is 600,the value ranges from 200 to 40000,set it 600 if out of range. + * @param { double } [pressure] Pressure of inject pen pointer action operation, default is 1.0, the value ranges from 0.0 to 1.0. * @returns { Promise } * @throws { BusinessError } 401 Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 The async function is not called with await. @@ -5029,7 +5030,7 @@ declare class Driver { * @test * @arkts 1.1&1.2 */ - injectPenPointerAction(pointers: PointerMatrix, speed?: number, pressure?: number): Promise; + injectPenPointerAction(pointers: PointerMatrix, speed?: int, pressure?: double): Promise; /** * Inject a watch crown rotation event, specifies the rotation speed if necessary. @@ -5249,8 +5250,8 @@ declare class UiWindow { /** * Move this {@link UiWindow} to the specified points. * - * @param { number } x - the x coordinate of destination, not less than 0. - * @param { number } y - the y coordinate of destination, not less than 0. + * @param { int } x - the x coordinate of destination, not less than 0. + * @param { int } y - the y coordinate of destination, not less than 0. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17000002 - The async function is not called with await. @@ -5262,7 +5263,7 @@ declare class UiWindow { * @test * @arkts 1.1&1.2 */ - moveTo(x: number, y: number): Promise; + moveTo(x: int, y: int): Promise; /** * Resize this {@link UiWindow} to the specified size for the specified direction. @@ -5282,8 +5283,8 @@ declare class UiWindow { /** * Resize this {@link UiWindow} to the specified size for the specified direction. * - * @param { number } wide - the expected wide of the window after resizing. - * @param { number } height - the expected height of the window after resizing. + * @param { int } wide - the expected wide of the window after resizing. + * @param { int } height - the expected height of the window after resizing. * @param { ResizeDirection } direction - the expected direction of the window after resizing. * @returns { Promise } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. @@ -5296,7 +5297,7 @@ declare class UiWindow { * @test * @arkts 1.1&1.2 */ - resize(wide: number, height: number, direction: ResizeDirection): Promise; + resize(wide: int, height: int, direction: ResizeDirection): Promise; /** * Change this {@link UiWindow} into split screen mode. @@ -5490,8 +5491,8 @@ declare class PointerMatrix { /** * Create an {@link PointerMatrix} object. * - * @param { number } fingers - The number of fingers, ranges from 1 to 10. - * @param { number } steps - The number of steps of each finger trace, ranges from 1 to 1000. + * @param { int } fingers - The number of fingers, ranges from 1 to 10. + * @param { int } steps - The number of steps of each finger trace, ranges from 1 to 1000. * @returns { PointerMatrix } the {@link PointerMatrix} object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @static @@ -5502,7 +5503,7 @@ declare class PointerMatrix { * @test * @arkts 1.1&1.2 */ - static create(fingers: number, steps: number): PointerMatrix; + static create(fingers: int, steps: int): PointerMatrix; /** * Set the point value of an element in the PointerMatrix. @@ -5518,8 +5519,8 @@ declare class PointerMatrix { /** * Set the point value of an element in the PointerMatrix. * - * @param { number } finger - the index of target finger to set. - * @param { number } step - the index of target step to set. + * @param { int } finger - the index of target finger to set. + * @param { int } step - the index of target step to set. * @param { Point } point - the coordinate of target step to set. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Test.UiTest @@ -5529,7 +5530,7 @@ declare class PointerMatrix { * @test * @arkts 1.1&1.2 */ - setPoint(finger: number, step: number, point: Point): void; + setPoint(finger: int, step: int, point: Point): void; } /**