WO2024109198A1 - 窗口调整方法及相关装置 - Google Patents

窗口调整方法及相关装置 Download PDF

Info

Publication number
WO2024109198A1
WO2024109198A1 PCT/CN2023/113777 CN2023113777W WO2024109198A1 WO 2024109198 A1 WO2024109198 A1 WO 2024109198A1 CN 2023113777 W CN2023113777 W CN 2023113777W WO 2024109198 A1 WO2024109198 A1 WO 2024109198A1
Authority
WO
WIPO (PCT)
Prior art keywords
windows
window
adjustment
parameters
control
Prior art date
Application number
PCT/CN2023/113777
Other languages
English (en)
French (fr)
Inventor
曾志玲
施元昌
李兵
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024109198A1 publication Critical patent/WO2024109198A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of computer technology or human-computer interaction technology, and in particular to a window adjustment method and related devices.
  • the embodiments of the present application provide a window adjustment method and related devices to improve the adjustment efficiency and flexibility of the window.
  • an embodiment of the present application provides a window adjustment method, which is applied to an electronic device, and the method includes:
  • each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes;
  • Adjusting adjustment parameters of the Q windows where the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows;
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • an embodiment of the present application provides a window adjustment device, which is applied to an electronic device, and the device includes: a display unit, a selection unit, a determination unit, and an adjustment unit, wherein:
  • the display unit is used to display P windows in the free window mode, each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes;
  • the selection unit is used to select Q windows from the P windows, where Q is a positive integer less than or equal to P;
  • the determining unit is used to determine adjustment parameters of the Q windows, where the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows;
  • the adjustment unit is used to adjust the corresponding controls in the Q windows according to the adjustment parameters to obtain the adjusted Q windows.
  • an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises a method for executing some or all of the steps described by the first party.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application.
  • the computer program product may be a software installation package.
  • FIG1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application.
  • FIG3A is a flow chart of a window adjustment method provided in an embodiment of the present application.
  • FIG3B is a schematic diagram showing an editing interface for implementing a window adjustment method provided in an embodiment of the present application
  • FIG3C is a schematic diagram showing another editing interface for implementing a window adjustment method provided in an embodiment of the present application.
  • FIG3D is a schematic diagram showing another editing interface for implementing a window adjustment method provided in an embodiment of the present application.
  • FIG3E is a flow chart of another window adjustment method provided in an embodiment of the present application.
  • FIG4 is a flow chart of another window adjustment method provided in an embodiment of the present application.
  • FIG5 is a flow chart of another window adjustment method provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 7 is a block diagram of functional units of a window adjustment device provided in an embodiment of the present application.
  • a and/or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.
  • the symbol “/" can indicate that the objects associated with each other are in an "or” relationship.
  • the symbol “/” can also indicate a division sign, that is, performing a division operation.
  • A/B can indicate A divided by B.
  • At least one item or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more.
  • at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c.
  • each of a, b, and c can be an element or a set containing one or more elements.
  • the electronic device may include various electronic devices with display functions, such as handheld devices (smartphones, tablet computers, etc.), vehicle-mounted devices (navigators, assisted reversing systems, driving recorders, car refrigerators, etc.), wearable devices (smart bracelets, wireless headphones, smart watches, smart glasses, etc.), customer premise equipment (customer premise equipment, CPE), computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (User Equipment, UE), mobile stations (Mobile Station, MS), virtual reality/augmented reality devices, terminal devices, etc.
  • the electronic device may also be a base station or a server.
  • Electronic devices may also include smart home devices, which may be at least one of the following: smart speakers, smart cameras, smart rice cookers, smart wheelchairs, smart massage chairs, smart furniture, smart dishwashers, smart televisions, smart refrigerators, smart electric fans, smart heaters, smart clothes drying racks, smart lights, smart routers, smart switches, smart switch panels, smart humidifiers, smart air conditioners, smart doors, smart windows, smart stoves, smart disinfection cabinets, smart toilets, sweeping robots, etc., without limitation.
  • smart home devices may be at least one of the following: smart speakers, smart cameras, smart rice cookers, smart wheelchairs, smart massage chairs, smart furniture, smart dishwashers, smart televisions, smart refrigerators, smart electric fans, smart heaters, smart clothes drying racks, smart lights, smart routers, smart switches, smart switch panels, smart humidifiers, smart air conditioners, smart doors, smart windows, smart stoves, smart disinfection cabinets, smart toilets, sweeping robots, etc., without limitation.
  • controls can be understood to refer to the encapsulation of data and methods.
  • Controls can have their own properties and methods, where properties are simple accessors to control data, and methods are some simple and visible functions of controls.
  • the control creation process includes design, development, debugging (the so-called 3Ds development process, i.e. Design, Develop, Debug), and then the use of controls.
  • Controls can include at least one of the following: user interface controls, chart controls, report controls, barcode controls, image processing controls, document processing controls, etc., which are not limited here.
  • the existing window mode cannot adapt to car and PC scenarios, as well as innovative multi-window business scenarios such as screen projection and canvas embedding.
  • a new set of window modes needs to be developed.
  • the existing window mode has poor scalability and reusability.
  • a window adjustment method is provided, which is applied to electronic devices. The method may include the following steps:
  • each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes;
  • Adjusting adjustment parameters of the Q windows where the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows;
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • multiple windows can be compatible or displayed at the same time, and each window can correspond to a window or at least one application.
  • one or more functions of a type of controls in the window, or one or more functions of any control can be adjusted, which helps to improve the adjustment efficiency and flexibility of the window.
  • the free window method mentioned by scene differentiation has good scalability and reusability, avoiding frequent addition of window types in different scenes, and reusing capabilities to cope with different business scenarios.
  • FIG1 shows a schematic diagram of the structure of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor AP, a modem processor, a graphics processor GPU, an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural network processor NPU, etc. Among them, Different processing units may be independent components or integrated into one or more processors.
  • the electronic device 100 may also include one or more processors 110. Among them, the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. In this way, repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 100 in processing data or executing instructions is improved.
  • the processor may also include an image processor, which may be an image preprocessor (preprocess image signal processor, Pre-ISP), which may be understood as a simplified ISP, and which may also perform some image processing operations, for example, image statistical information may be obtained.
  • Pre-ISP image signal processor
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface and/or a USB interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device.
  • the USB interface 130 can also be used to connect headphones to play audio through the headphones.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193 and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G/6G applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 can be set in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
  • the wireless communication module 160 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (Bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field).
  • WLAN wireless local area networks
  • Bluetooth Bluetooth
  • BT global navigation satellite system
  • GNSS global navigation satellite system
  • FM frequency modulation
  • near field wireless communication technology near field
  • the wireless communication module 160 can be a wireless communication solution such as NFC and infrared technology (IR).
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (miniLED), MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or more display screens 194.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
  • the ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 100 may include one or more cameras 193.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the internal memory 121 can be used to store one or more computer programs, which include instructions.
  • the processor 110 can execute the above instructions stored in the internal memory 121, so that the electronic device 100 executes the method of displaying page elements, various applications, and data processing provided in some embodiments of the present application.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.).
  • the data storage area can store data created during the use of the electronic device 100 (such as photos, contacts, etc.).
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc.
  • the processor 110 can execute the instructions stored in the internal memory 121, and/or the instructions stored in the memory provided in the processor 110, so that the electronic device 100 executes the method of displaying page elements, and other applications and data processing provided in the embodiments of the present application.
  • Electronic The device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be set on the display screen 194.
  • the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
  • the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes i.e., X, Y, and Z axes
  • the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called a "touch panel”.
  • the touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position where the display screen 194 is connected.
  • FIG2 shows a software structure diagram of the electronic device 100.
  • the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application layer may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (API) for applications in the application layer. And programming framework.
  • API application programming interface
  • the application framework layer includes some pre-defined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • FIG. 3A is a window adjustment method provided by an embodiment of the present application, and is applied to the electronic device shown in FIG. 1 or FIG. 2 .
  • the image rendering method may include the following steps:
  • each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes.
  • the free window mode (can be freely resized) can be used to be compatible with two or more window modes.
  • a free window mode compatible with multiple window modes can be provided through a product form (business scenario), in which a window of one window mode can be displayed, or windows of two or more window modes can be displayed.
  • the window editing application can be started first, and then the free window mode can be selected based on the window editing application, so as to enter the free window mode.
  • a threshold value of the number of windows allowed to be displayed can be set, that is, if the number of windows selected by the user is greater than the window number threshold, the display can be refused, or the windows selected by the user that are less than or equal to the window number threshold can be selected for display.
  • the window mode may include at least one of the following: floating window mode, split screen mode, native activity embedding (activity embedding) mode, full screen window mode (FULLSCREEN), picture-in-picture window mode (Always visible, PIP), free window mode, multi-window mode (MULTI WINDOW), etc., without limitation here.
  • all windows among P windows can be displayed in free window mode, or P windows can be displayed in batches in free window mode.
  • P is a positive integer, that is, P can be 1, or P can be an integer greater than 1.
  • P is greater than 1
  • each of the P windows can be displayed independently and completely in its own area.
  • multiple window modes such as floating windows, split screens, and native Activity Embedding can be displayed simultaneously.
  • native activity embedded windows, split screen windows, floating windows, etc. can be displayed, wherein the native activity embedded window corresponds to the native activity embedded mode, the split screen window corresponds to the split screen mode, and the floating window corresponds to the floating mode.
  • each window corresponds to a window mode and at least one application
  • the applications corresponding to different windows can be the same or different.
  • window A can correspond to application A
  • window B can correspond to application B.
  • window A can correspond to application A
  • window B can also correspond to application A.
  • window A can correspond to application A
  • window B can correspond to a clone application or an associated application of application A.
  • window A corresponds to two applications
  • window A can be a split-screen window mode (two-split screen), then the two areas of the two-split screen can correspond to application A and application B respectively.
  • a window editing application can be started and a free window mode can be entered through the window editing application.
  • a free window mode P windows can be displayed, that is, windows of multiple different window modes can be displayed on one editing page, which is conducive to simultaneous editing of these windows without switching windows, thereby improving window editing efficiency.
  • the Q windows are part or all of the P windows.
  • the one window when one window is selected, the one window can be edited.
  • the multiple windows can be batch edited, which helps to improve the efficiency of window editing.
  • Q windows among P windows may be selected, where Q is a positive integer less than or equal to P.
  • Q windows among P windows may be selected through a touch operation.
  • FIG. 3C may include multiple windows, each of which may be provided with a selection control, and by performing a selection operation on the selection control, when any selection control is selected, it may be considered that the window corresponding to the control is selected.
  • step 302 selecting Q windows from the P windows, may include the following steps:
  • the preset time period can be preset or set by system default.
  • the preset condition can also be preset or set by system default.
  • touch parameters for Q windows among P windows may be received, and the touch parameters may include touch parameters for one window, or may also include touch parameters for two or more windows.
  • the touch parameters may include at least one of the following: touch pressure, touch duration, touch position, touch area, touch times, touch track, etc., which are not limited here.
  • the touch parameters can be compared with the preset touch parameters. If the touch parameters are successfully compared with the preset touch parameters, it can be confirmed that the touch parameters meet the preset conditions. Conversely, if the touch parameters fail to be compared with the preset touch parameters, it can be confirmed that the touch parameters do not meet the preset conditions.
  • Q windows out of P windows are determined.
  • the preset touch parameters can also be pre-set or system default.
  • the preset touch parameters can include at least one of the following: touch pressure, touch duration, touch position, touch area, touch times, touch track, etc., which are not limited here.
  • the controls of each window in the Q windows may include adjustable controls that can be adjusted and non-adjustable controls that cannot be adjusted.
  • the adjustment parameters can be used to adjust one or more functions of a type of control, so that batch adjustment between windows or cross-window adjustment between windows can be achieved.
  • the adjustment parameters can also be used to adjust one or more functions of any adjustable control in Q windows, so that a certain window can be personalized.
  • the function of the control can be used to describe the properties of the control.
  • the function of the control may include at least one of the following: font size adjustment function, display color adjustment function, control position adjustment function, top adjustment function, whether to allow dragging, zoom function, embedding function, control display box size adjustment function, window mode switching function, etc., which are not limited here.
  • step 303 determining the adjustment parameters of the Q windows, may include the following steps:
  • A31 Select a target control in the Q windows, where the target control is any adjustable control in the Q windows;
  • A33 Determine adjustment parameters of the target control.
  • a target control in the Q windows can be selected by performing a touch operation on any adjustable control in the Q windows, and the target control can be adjusted to an editing state.
  • a touch operation can be performed on the target control to generate corresponding adjustment parameters, or the adjustment parameters can be pre-set or system default.
  • step A33 determining the adjustment parameters of the target control, may include the following steps:
  • A331. Determine a target drag parameter for the target control
  • A332. Determine the adjustment parameter of the target control corresponding to the target drag parameter.
  • a drag operation can be performed on the target control to generate corresponding target drag parameters.
  • the target drag parameters may include at least one of the following: drag direction, drag displacement, drag distance, drag amplitude, drag duration, drag trajectory, drag end point, etc., which are not limited here.
  • the mapping relationship between the preset dragging parameters and the adjustment parameters can also be pre-stored, and then the adjustment parameters corresponding to the target dragging parameters can be determined based on the mapping relationship.
  • the dragging parameters can include at least one of the following: dragging direction, dragging displacement, dragging distance, dragging amplitude, dragging duration, dragging trajectory, dragging end point, etc., which are not limited here. Then, the corresponding adjustment parameters can be generated based on the dragging operation, which helps to improve the flexibility of window adjustment.
  • step 303 determining the adjustment parameters of the Q windows, may include the following steps:
  • different controls in Q windows can be classified to obtain m types of controls, where m is an integer greater than 1 or equal to 1.
  • the m types of controls can also be displayed, and the user can select a type of control from the m types of controls.
  • the i-th type of control can be selected from the m types of controls, where the i-th type of control is any type of control in the m types of controls, and the adjustment parameters of the i-th type of control can also be determined.
  • Each type of control can correspond to a category label.
  • Each type of control can be represented by any control in that type of control, and the control used to represent a certain type of control can be referred to as a class control.
  • the outer frame of a control in a window can be adjusted to a rounded shape.
  • a touch operation may be performed on the class control to generate corresponding adjustment parameters, or the adjustment parameters may be preset or set by system default.
  • step B33 determining the adjustment parameters of the i-th type of controls, may include the following steps:
  • a drag operation can be performed on the i-th type of control to generate corresponding reference drag parameters.
  • the reference drag parameters may include at least one of the following: drag direction, drag displacement, drag distance, drag amplitude, drag duration, drag trajectory, drag end point, etc., which are not limited here.
  • a mapping relationship between preset drag parameters and adjustment parameters may be pre-stored, and then, the adjustment parameter corresponding to the reference drag parameter may be determined based on the mapping relationship.
  • the drag parameter may include at least one of the following: drag direction, drag displacement, The dragging distance, dragging amplitude, dragging duration, dragging trajectory, dragging end point, etc. are not limited here.
  • corresponding adjustment parameters can be generated based on the dragging operation, which helps to improve the flexibility of window adjustment and also helps to improve the efficiency of batch window adjustment.
  • the corresponding controls in the Q windows can be adjusted according to the adjustment parameters to obtain the adjusted Q windows, and the adjusted Q windows can also be displayed.
  • the free window method that can be distinguished by scene has good scalability and reusability, avoiding frequent addition of window types in different scenes, and reusing capabilities to cope with different business scenarios.
  • For subsequent new business scenario requirements based on the capability base of the free window, only a small amount of configuration and function customization is required to meet the new business scenario requirements, which can greatly save development and maintenance costs.
  • the target product form supports the free window mode, determine a target scene characteristic parameter corresponding to the target product form, wherein the target scene characteristic parameter is used to limit the control adjustment effect under each window mode;
  • the product form is used to describe the specific form of the product or the product model of the product.
  • the product form may include at least one of the following: mobile phones, tablets, smart watches, laptops, smart TVs, etc., which are not limited here.
  • the product form may include a product model, and different product models have different corresponding screen sizes or performances.
  • the scene characteristic parameters can be understood as being used to limit the control adjustment effects in each window mode, for example, setting the adjustment range of each control, or for example, setting which controls can be adjusted and which controls cannot be adjusted.
  • the mapping relationship between the preset product form and the scene characteristic parameters can be pre-stored.
  • the target product form of the electronic device can be determined, and it can also be detected whether the target product form supports the free window mode.
  • the target product form supports the free window mode the target scene characteristic parameters corresponding to the target product form are determined, and then the free window mode is entered according to the target scene characteristic parameters. That is, in the free window mode, the corresponding free window mode can be set based on the product form. In this way, targeted adjustments can be made based on the corresponding attributes of the product, which helps to improve the adjustment efficiency and flexibility.
  • the concept of scene can be added (different products correspond to different scenes), and the free window implementation method of the scene characteristics can be extracted, and then, the specified scene and characteristics can be started through the application.
  • the specific implementation it can be compatible with multi-window forms in different scenes by combining XML configuration scenes and scene characteristics.
  • the window mode of each application remains the same as the normal desktop mode.
  • some functions are differentiated, such as free dragging, pinning, rounded corners, scaling, embedding, etc.
  • the application can be started first, and the free window mode can be entered based on the application.
  • the free window mode such as the embedded canvas scene or the projection or car PC mode
  • corresponding scenes and scene features can be set to adapt to different products and the needs of different product models in different products.
  • the Android system can support XML parsing of scene capabilities, and the XML format is similar to at least one of the following: scene, scale factor, support Embedded, whether embedding is supported, support Resize, whether window size change is supported, corner Radius, etc., which are not limited here.
  • the system supports scene capabilities
  • the set scene and scene features can also be recorded in the application's task stack Task. Therefore, according to the different ways of starting different applications and the original features of the application, it can be started as Activity Embedding, split screen or floating window mode, etc.
  • the scene can be differentiated, and rounded corners, scaling, embedding, etc. can be set.
  • the window mode in the relevant technology cannot adapt to car and PC scenarios, as well as innovative multi-window business scenarios such as screen projection and canvas embedding.
  • the corresponding free window mode can be determined based on the product form, and different window modes can be adjusted at the same time based on the free window mode. This helps improve window adjustment efficiency.
  • an application (such as a window editing application) is started, and it is detected whether a free window mode exists. If not, a normal desktop scene is displayed. If so, its specified product form is obtained, and it is detected whether the system supports the specified product form. If not, a normal desktop scene is displayed. If so, the relevant features are recorded in the application task stack (TASK).
  • TASK application task stack
  • the application is started in native window modes such as Activity Embedding, split screen, and suspension. For example, scaling parameters are obtained, and the scaling factor is set to surface Flinger to implement scaling operations. Corner fillet parameters are obtained. Specifically, the corner fillet parameters are obtained to surface Flinger, and so on. Other window adjustments can also be implemented.
  • step 304 after the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows, the following steps may also be included:
  • the display parameters may include at least one of the following: display priority, display position, display area, display batch, etc., which are not limited here.
  • Q windows may be displayed, or, in addition to Q windows, other windows among P windows except Q windows may also be displayed.
  • the display parameters of each of the Q windows may be determined to obtain Q display parameters, and then the Q windows may be displayed according to the Q display parameters.
  • the window adjustment method described in the embodiment of the present application is applied to an electronic device.
  • P windows are displayed, each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes.
  • Q windows are selected from the P windows, Q is a positive integer less than or equal to P, and adjustment parameters of the Q windows are determined.
  • the adjustment parameters are used to adjust one or more functions of a class of controls, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows.
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • multiple windows can be compatible or displayed at the same time, and each window can correspond to a window or at least one application.
  • one or more functions of a class of controls in the window, or one or more functions of any control can be adjusted, which helps to improve the adjustment efficiency and flexibility of the window.
  • FIG. 4 is another window adjustment method provided in an embodiment of the present application, applied to the electronic device shown in FIG. 1 or FIG. 2, and specifically includes the following steps:
  • target product form supports the free window mode
  • determine target scene characteristic parameters corresponding to the target product form and the target scene characteristic parameters are used to limit the control adjustment effect under each window mode.
  • each window corresponds to a window mode and at least one application
  • P is a positive integer
  • the free window mode is used to be compatible with two or more window modes.
  • the window adjustment method described in the embodiment of the present application is applied to an electronic device, determines the target product form of the electronic device, detects whether the target product form supports the free window mode, and when the target product form supports the free window mode, determines the target scene characteristic parameters corresponding to the target product form, and the target scene characteristic parameters are used to limit the control adjustment effect under each window mode.
  • the free window mode is entered, and in the free window mode, P windows are displayed, each window corresponds to a window mode and At least one application, P is a positive integer, the free window mode is used to be compatible with two or more window modes, Q windows are selected from the P windows, Q is a positive integer less than or equal to P, and adjustment parameters of the Q windows are determined.
  • the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows.
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • multiple windows can be compatible or displayed at the same time, and each window can correspond to a window or at least one application.
  • one or more functions of a type of control in the window, or one or more functions of any control can be adjusted, which helps to improve the adjustment efficiency and flexibility of the window.
  • FIG. 5 is a flow chart of a window adjustment method provided in an embodiment of the present application, and is applied to the electronic device shown in FIG. 1 or FIG. 2; as shown in the figure, the window adjustment method includes:
  • each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes.
  • the window adjustment method described in the embodiment of the present application is applied to an electronic device.
  • P windows are displayed, each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes.
  • Q windows are selected from the P windows, Q is a positive integer less than or equal to P, and adjustment parameters of the Q windows are determined.
  • the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows.
  • the corresponding controls in the Q windows are adjusted to obtain the adjusted Q windows, and the display parameters of the Q windows are determined to obtain Q display parameters.
  • the Q windows are displayed.
  • multiple windows can be compatible or displayed at the same time in the free window mode, and each window can correspond to a window or at least one application.
  • one or more functions of a type of control in the window, or one or more functions of any control can be adjusted, and the adjusted window can be intuitively displayed, which helps to improve the adjustment efficiency and flexibility of the window.
  • FIG. 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor.
  • the program includes instructions for executing the following steps:
  • each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes;
  • Adjusting adjustment parameters of the Q windows where the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows;
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • the program includes instructions for performing the following steps:
  • the program includes instructions for performing the following steps:
  • Target control is any adjustable control in the Q windows
  • An adjustment parameter of the target control is determined.
  • the program includes instructions for executing the following steps:
  • An adjustment parameter of the target control corresponding to the target drag parameter is determined.
  • the program includes instructions for performing the following steps:
  • the program further includes instructions for executing the following steps:
  • the target product form supports the free window mode, determining a target scene characteristic parameter corresponding to the target product form, wherein the target scene characteristic parameter is used to limit the control adjustment effect under each window mode;
  • the program further includes instructions for executing the following steps:
  • the Q windows are displayed according to the Q display parameters.
  • the electronic device described in the embodiment of the present application displays P windows in the free window mode, each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes.
  • Q windows are selected from the P windows, Q is a positive integer less than or equal to P, and adjustment parameters of the Q windows are determined.
  • the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows.
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • multiple windows can be compatible or displayed at the same time, and each window can correspond to a window or at least one application.
  • one or more functions of a type of control in the window, or one or more functions of any control can be adjusted, which helps to improve the adjustment efficiency and flexibility of the window.
  • the electronic device includes a hardware structure and/or software module corresponding to the execution of each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
  • the embodiment of the present application can divide the functional units of the electronic device according to the above method example.
  • each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
  • FIG7 is a functional unit block diagram of a window adjustment device 700 involved in an embodiment of the present application.
  • the window adjustment device 700 is applied to an electronic device; the device 700 includes: a display unit 701, a selection unit 702, a determination unit 703 and an adjustment unit 704, wherein:
  • the display unit 701 is used to display P windows in the free window mode, each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes;
  • the selection unit 702 is used to select Q windows from the P windows, where Q is a positive integer less than or equal to P;
  • the determining unit 703 is used to determine adjustment parameters of the Q windows, where the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows;
  • the adjusting unit 704 is configured to adjust corresponding controls in the Q windows according to the adjustment parameters to obtain the adjusted Q windows.
  • the selecting unit 702 is specifically configured to:
  • the determining unit 703 is specifically configured to:
  • Target control is any adjustable control in the Q windows
  • the determining unit 703 is specifically configured to:
  • An adjustment parameter of the target control corresponding to the target drag parameter is determined.
  • the determining unit 703 is specifically configured to:
  • the device 700 is further specifically used for:
  • the target product form supports the free window mode, determining a target scene characteristic parameter corresponding to the target product form, wherein the target scene characteristic parameter is used to limit the control adjustment effect under each window mode;
  • the device 700 is further specifically configured to:
  • the Q windows are displayed according to the Q display parameters.
  • the window adjustment device described in the embodiment of the present application is applied to an electronic device, and in the free window mode, P windows are displayed, each window corresponds to a window mode and at least one application, P is a positive integer, and the free window mode is used to be compatible with two or more window modes, and Q windows from the P windows are selected, Q is a positive integer less than or equal to P, and adjustment parameters of the Q windows are determined.
  • the adjustment parameters are used to adjust one or more functions of a type of control, or the adjustment parameters are used to adjust one or more functions of any adjustable control in the Q windows.
  • the corresponding controls in the Q windows are adjusted according to the adjustment parameters to obtain the adjusted Q windows.
  • multiple windows can be compatible or displayed at the same time, and each window can correspond to a window or at least one application.
  • one or more functions of a type of control in the window, or one or more functions of any control can be adjusted, which helps to improve the adjustment efficiency and flexibility of the window.
  • each "unit” may be, for example, an integrated circuit ASIC.
  • a single circuit a processor (shared, dedicated, or chipset) and memory for executing one or more software or firmware programs, a combination of logic circuits, and/or other suitable components that provide the above functions.
  • the display unit 701, the selection unit 702, the determination unit 703 and the adjustment unit 704 can be a processor or a display screen, and the processor can be an artificial intelligence chip, NPU, CPU, GPU, etc., which is not limited here. Based on the above unit modules, the functions or steps of any of the above methods can be implemented.
  • This embodiment also provides a chip, wherein the chip can be used to implement any method in the above embodiments.
  • This embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the embodiments of the present application to implement any of the methods in the above embodiments.
  • This embodiment also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement any method in the above-mentioned embodiments.
  • an embodiment of the present application also provides a window adjustment device, which can specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes any one of the methods in the above-mentioned method embodiments.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of each embodiment of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种窗口调整方法及相关装置,应用于电子设备,所述方法包括:在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。采用本申请实施例实现能够提升窗口的调节效率和灵活性。

Description

窗口调整方法及相关装置 技术领域
本申请涉及计算机技术领域或者人机交互技术领域,尤其涉及一种窗口调整方法及相关装置。
背景技术
随着电子设备(如手机、平板电脑等等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。生活中,对窗口的调节也成为一个重要应用方向,不同的窗口,则其对应不同的窗口模式,往往只能在每一种窗口模式下,对相应的窗口进行调节,导致对窗口的调节效率较低也不够灵活,因此,如何提升窗口的调节效率和灵活性的问题亟待解决。
发明内容
本申请实施例提供一种窗口调整方法及相关装置,实现提升窗口的调节效率和灵活性。
第一方面,本申请实施例提供一种窗口调整方法,应用于电子设备,所述方法包括:
在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
第二方面,本申请实施例提供一种窗口调整装置,应用于电子设备,所述装置包括:展示单元、选取单元、确定单元和调整单元,其中,
所述展示单元,用于在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
所述选取单元,用于选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
所述确定单元,用于确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
所述调整单元,用于根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
第三方面,本申请实施例提供一种电子设备,所述电子设备包括处理器、存储器,所述存储器用于存储一个或多个程序,并且被配置由处理器执行,所述程序包括用于执行如第一方所描述的部分或者全部步骤。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域 普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种电子设备的结构示意图;
图2是本申请实施例提供的一种电子设备的软件结构示意图;
图3A是本申请实施例提供的一种窗口调整方法的流程示意图;
图3B是本申请实施例提供的一种用于实现窗口调整方法的编辑界面演示示意图;
图3C是本申请实施例提供的另一种用于实现窗口调整方法的编辑界面演示示意图;
图3D是本申请实施例提供的另一种用于实现窗口调整方法的编辑界面演示示意图;
图3E是本申请实施例提供的另一种窗口调整方法的流程示意图;
图4是本申请实施例提供的另一种窗口调整方法的流程示意图;
图5是本申请实施例提供的另一种窗口调整方法的流程示意图;
图6是本申请实施例提供的一种电子设备的结构示意图;
图7是本申请实施例提供的一种窗口调整装置的功能单元组成框图。
具体实施方式
为了本技术领域人员更好理解本申请的技术方案,下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。显然所描述的实施例是本申请一部分实施例,而不是全部的实施例。针对本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应理解,本申请实施例中涉及的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元的过程、方法、软件、产品或设备没有限定于已列出的步骤或单元,而是还包括没有列出的步骤或单元,或还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
本申请实施例中涉及的“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例中的“和/或”,描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示如下三种情况:单独存在A;同时存在A和B;单独存在B。其中,A、B可以是单数或者复数。
本申请实施例中,符号“/”可以表示前后关联对象是一种“或”的关系。另外,符号“/”也可以表示除号,即执行除法运算。例如,A/B,可以表示A除以B。
本申请实施例中的“至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合,是指一个或多个,多个指的是两个或两个以上。例如,a、b或c中的至少一项(个),可以表示如下七种情况:a,b,c,a和b,a和c,b和c,a、b和c。其中,a、b、c中的每一个可以是元素,也可以是包含一个或多个元素的集合。
随着信息化技术的不断发展,数字虚拟人物成为近年来的一项热点技术。它通过计算机图形处理来模拟出一个类似人类形象的虚拟人物,并通过一些AI算法来驱动虚拟人物完成一些简单的动作,以便实现虚拟人物和人类之间的交互。
具体实现中,电子设备可以包括各种具备显示功能的电子设备,例如,手持设备(智能手机、平板电脑等)、车载设备(导航仪、辅助倒车***、行车记录仪、车载冰箱等等)、可穿戴设备(智能手环、无线耳机、智能手表、智能眼镜等等)、客户前置设备(customer premise equipment,CPE)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),虚拟现实/增强现实设备,终端设备(terminal device)等等,电子设备还可以为基站或者服务器。
电子设备还可以包括智能家居设备,智能家居设备可以为以下至少一种:智能音箱、智能摄像头、智能电饭煲、智能轮椅、智能按摩椅、智能家具、智能洗碗机、智能电视机、智能冰箱、智能电风扇、智能取暖器、智能晾衣架、智能灯、智能路由器、智能交换机、智能开关面板、智能加湿器、智能空调、智能门、智能窗、智能灶台、智能消毒柜、智能马桶、扫地机器人等等,在此不做限定。
本申请实施例中,控件可以理解为,是指对数据和方法的封装。控件可以有自己的属性和方法,其中属性是控件数据的简单访问者,方法则是控件的一些简单而可见的功能、控件创建过程包括设计、开发、调试(就是所谓的3Ds开发流程,即Design、Develop、Debug)工作,然后是控件的使用。控件可以包括以下至少一种:用户界面控件、图表控件、报表控件、条形码控件、图像处理控件、文档处理控件等等,在此不做限定。
相关技术中,以android***为例,随着android的应用场景越来越广泛,比如在车机、PC场景等。现有的窗口模式无法自适应车机、PC场景,以及投屏和画布嵌入等创新的多窗口业务场景。在新的场景下,需要重新开发一套窗口模式。现有的窗口模式扩展性和复用性较差。
本申请实施例中,则是在android原有窗口模式的基础上,增加场景(即产品形态)的概念并且提取出场景特征的自由窗口实现方式,通过应用启动指定场景和特征,以及通过XML配置场景和场景特性相结合的方式,来兼容不同场景下的多窗口形态,即本申请实施例中,提供了一种窗口调整方法,应用于电子设备,该方法可以包括如下步骤:
在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
本申请实施例中,一方面,可以在自由窗口模式下,在该自由窗口模式下,可以同时兼容或者展示多个窗口,每一窗口可以对应一种窗口或者至少一个应用,另一方面,还可以对窗口中的一类控件的一个或者多个功能,或者,任一控件的一个或者多个功能进行调节,有助于提升窗口的调节效率和灵活性。
本申请实施例中,提到的通过场景区分的自由窗口方式,可扩展性和可复用性较好,避免了不同场景频繁添加窗口类型,能力复用,能应对不同的业务场景。后续新的业务场景需求,基于自由窗口的能力底座,只需要进行少量的配置和功能定制,就可以完成新的业务场景需求,能够较大节省了开发成本和维护成本。
下面对本申请实施例进行详细描述。
第一部分,本申请所公开的技术方案的软硬件运行环境介绍如下。
如图所示,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、指南针190、马达191、指示器192、摄像头193、显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器AP,调制解调处理器,图形处理器GPU,图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器NPU等。其中, 不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在其他一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例性地,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。这样就避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100处理数据或执行指令的效率。处理器还可以包括图像处理器,图像处理器可以为图像预处理器(preprocess image signal processor,Pre-ISP),其可以理解为一个简化的ISP,其也可以进行一些图像处理操作,例如,可以获取图像统计信息。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口、集成电路间音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、用输入输出(general-purpose input/output,GPIO)接口、SIM卡接口和/或USB接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与***设备之间传输数据。该USB接口130也可以用于连接耳机,通过耳机播放音频。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G/6G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(blue tooth,BT),全球导航卫星***(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field  communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、迷你发光二极管(mini light-emitting diode,miniled)、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或多个显示屏194。
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或多个摄像头193。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别、人脸识别、语音识别、文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的显示页面元素的方法,以及各种应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备100执行本申请实施例中所提供的显示页面元素的方法,以及其他应用及数据处理。电子 设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现音频功能。例如音乐播放、录音等。
传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。
其中,压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即X、Y和Z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所连接的位置不同。
示例性的,图2示出了电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和***库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序层可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API) 和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
第二部分,本申请实施例所公开的窗口调整方法及相关装置介绍如下。
请参阅图3A,图3A是本申请实施例提供的一种窗口调整方法,应用于如图1或者图2所示的电子设备,本图像渲染方法可以包括如下步骤:
301、在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式。
本申请实施例中,自由窗口模式(can be freely resized)可以用于兼容两种或者两种以上的窗口模式。实际应用中,可以通过产品形态(业务场景)提供一种兼容多窗口模式的自由窗口模式,在该自由窗口模式可以对一种窗口模式的窗口进行展示,或者,可以对两种或者两种以上的窗口模式的窗口进行展示。
具体实现中,可以先启动窗口编辑应用,再在窗口编辑应用基础上,选择自由窗口模式,从而,可以进入到自由窗口模式。实际应用中,可以设定允许展示的窗口数量阈值,即倘若用户选取的窗口数量大于该窗口数量阈值,则可以拒绝展示,或者,选取用户选取的窗口中小于或等于窗口数量阈值的窗口进行展示。
其中,窗口模式可以包括以下至少一种:浮窗模式、分屏模式、原生活动嵌入(activity embedding)模式、全屏窗口模式(FULLSCREEN)、画中画窗口模式(Always visible,PIP)、自由窗口模式、多窗口模式(MULTI WINDOW)等等,在此不做限定。
具体实现中,可以在自由窗口模式下,展示P个窗口中的全部窗口,或者,也可以在自由窗口模式下,分批次展示P个窗口。P为正整数,即P可以为1,或者,P可以为大于1的整数。在P大于1时,P个窗口之间可以存在部分重叠区域,或者,完全不存在重叠区域,例如,P个窗口中每一窗口均可以在各自区域独立且完整进行展示。例如,在一个场景下,可以同时显示浮窗、分屏、原生Activity Embedding等多窗口模式。举例说明下,如图3B所示,图3B中,可以展示原生活动嵌入窗口、分屏窗口、悬浮窗口等等,其中,原生活动嵌入窗口对应原生活动嵌入模式,分屏窗口对应分屏模式,悬浮窗口对应悬浮模式。
其中,每一窗口对应一种窗口模式以及至少一个应用,不同窗口对应的应用可以相同或者不同,例如,A窗口可以对应应用A,B窗口可以对应应用B,又例如,A窗口可以对应应用A,B窗口也可以对应应用A,又例如,A窗口可以对应应用A,B窗口可以对应应用A的分身应用或者关联应用,又例如,A窗口对应两个应用,A窗口可以为分屏窗口模式(二分屏),则该二分屏的两个区域可以分别对应应用A和应用B。
具体实现中,可以启动窗口编辑应用,通过窗口编辑应用进入自由窗口模式,在自由窗口模式下,展示P个窗口,即可以在一个编辑页面展示多种不同窗口模式的窗口,有利于对这些窗口进行同时编辑,不用进行窗口切换,从而,可以提升窗口编辑效率。
302、选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数。
本申请实施例中,Q个窗口为P个窗口中的部分或者全部窗口,具体实现中,在选取1个窗口时,则可以对该1个窗口进行编辑,在选取多个窗口时,则可以对多个窗口进行批量编辑,有助于提升窗口编辑效率。
具体实现中,可以选取P个窗口中的Q个窗口,Q为小于或等于P的正整数,具体的,可以通过触控操作以选取P个窗口中的Q个窗口。
举例说明下,如图3C所示,图3C中可以包括多个窗口,每一窗口均可以设置一个选取控件,通过对选取控件进行选取操作,在任一选取控件被选中时,则可以认为该控件对应的窗口被选取。
可选的,上述步骤302,选取所述P个窗口中的Q个窗口,可以包括如下步骤:
21、在预设时间段内,接收针对所述P个窗口中的Q个窗口的触控参数;
22、检测所述触控参数是否符合预设条件;
23、在所述触控参数符合所述预设条件时,确定所述P个窗口中的Q个窗口。
本申请实施例中,预设时间段可以预先设置或者***默认。预设条件也可以预先设置或者***默认。
具体实现中,在预设时间段内,可以接收针对P个窗口中的Q个窗口的触控参数,该触控参数可以包括针对一个窗口的触控参数,或者,也可以包括针对两个或者两个以上窗口的触控参数。
其中,触控参数可以包括以下至少一种:触控压力、触控时长、触控位置、触控面积、触控次数、触控轨迹等等,在此不做限定。
进而,可以检测触控参数是否符合预设条件,即可以将触控参数与预设触控参数进行比对,则在触控参数与预设触控参数比对成功,则可以确认触控参数符合预设条件,反之,在触控参数与预设触控参数比对失败时,则可以确认触控参数不符合预设条件,在触控参数符合预设条件时,确定P个窗口中的Q个窗口。预设触控参数也可以预先设置或者***默认,预设触控参数可以包括以下至少一种:触控压力、触控时长、触控位置、触控面积、触控次数、触控轨迹等等,在此不做限定。
303、确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整。
具体实现中,Q个窗口中每一窗口的控件可以包括可以调节的可调控件和不可以调节的不可调控件。
其中,调整参数可以用于对一类控件的一项或者多项功能进行调整,如此,可以实现窗口之间的批量调整,或者,窗口之间的跨窗口调整。或者,调整参数也可以用于对Q个窗口中的任一可调控件的一项或者多项功能进行调整,如此,可以对某个窗口进行个性化调整。
其中,控件的功能可以用于描述控件的属性,控件的功能可以包括以下至少一种:字体大小调节功能、显示颜色调节功能、控件的位置调节功能、置顶调节功能、是否允许被拖动、缩放功能、嵌入功能、控件的显示框的尺寸调节功能、窗口模式切换功能等等,在此不做限定。
可选的,上述步骤303,确定所述Q个窗口的调整参数,可以包括如下步骤:
A31、选中所述Q个窗口中目标控件,所述目标控件为所述Q个窗口中的任一可调控件;
A32、将所述目标控件调整为编辑状态;
A33、确定所述目标控件的调整参数。
本申请实施例中,可以通过对Q个窗口中的任一可调控件进行触控操作,以选取Q个窗口中的目标控件,可以将目标控件调整为编辑状态,具体实现中,可以对目标控件进行触控操作以生成相应的调整参数,或者,调整参数也可以预先设置或者***默认。
可选的,上述步骤A33,确定所述目标控件的调整参数,可以包括如下步骤:
A331、确定针对所述目标控件的目标拖动参数;
A332、确定与所述目标拖动参数对应的所述目标控件的调整参数。
本申请实施例中,可以对目标控件进行拖动操作,从而生成相应的目标拖动参数,目标拖动参数可以包括以下至少一种:拖动方向、拖动位移、拖动路程、拖动幅度、拖动时长、拖动轨迹、拖动终点等等,在此不做限定。
本申请实施例中,还可以预先存储预设的拖动参数与调整参数之间的映射关系,进而,可以基于该映射关系确定目标拖动参数对应的调整参数。拖动参数可以包括以下至少一种:拖动方向、拖动位移、拖动路程、拖动幅度、拖动时长、拖动轨迹、拖动终点等等,在此不做限定,进而,可以基于拖动操作,以生成对应的调整参数,有助于提升窗口调节的灵活性。
可选的,上述步骤303,确定所述Q个窗口的调整参数,可以包括如下步骤:
B31、将所述Q个窗口中的控件进行分类,得到m类控件;
B32、从所述m类控件中选取第i类控件,所述第i类控件为所述m类控件中的任一类控件;
B33、确定所述第i类控件的调整参数。
本申请实施例中,可以将Q个窗口中不同的控件进行分类,得到m类控件,m为大于1或等于1的整数,还可以将m类控件进行展示,用户可以从m类控件中选取一类控件,例如,可以从m类控件中选取第i类控件,第i类控件为m类控件中的任一类控件,还可以确定第i类控件的调整参数。每一类控件可以对应一个类别标签。每一类控件可以以该类控件中的任一控件进行表示,可以将该用于表示某一类控件的控件为类控件。
举例说明下,如图3D所示,则可以将某个窗口中的控件的外框调成圆角形状。
具体实现中,可以对类控件进行触控操作以生成相应的调整参数,或者,调整参数也可以预先设置或者***默认。
可选的,上述步骤B33,确定所述第i类控件的调整参数,可以包括如下步骤:
B331、确定针对所述第i类控件的参考拖动参数;
B332、确定与所述参考拖动参数对应的调整参数。
本申请实施例中,可以对第i类控件进行拖动操作,从而生成相应的参考拖动参数,参考拖动参数可以包括以下至少一种:拖动方向、拖动位移、拖动路程、拖动幅度、拖动时长、拖动轨迹、拖动终点等等,在此不做限定。
本申请实施例中,还可以预先存储预设的拖动参数与调整参数之间的映射关系,进而,可以基于该映射关系确定参考拖动参数对应的调整参数。拖动参数可以包括以下至少一种:拖动方向、拖动位移、 拖动路程、拖动幅度、拖动时长、拖动轨迹、拖动终点等等,在此不做限定,进而,可以基于拖动操作,以生成对应的调整参数,有助于提升窗口调节的灵活性,也有利于提升窗口批量调节效率。
304、根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
本申请实施例中,可以根据调整参数对Q个窗口中相应的控件进行调整,得到调整后的Q个窗口,还可以展示调整后的Q个窗口。
本申请实施例中,可以通过场景区分的自由窗口方式,可扩展性和可复用性较好,避免了不同场景频繁添加窗口类型,能力复用,能应对不同的业务场景。后续新的业务场景需求,基于自由窗口的能力底座,只需要进行少量的配置和功能定制,就可以完成新的业务场景需求,能够较大节省了开发成本和维护成本。
对于开发者而言,能够在自由窗口模式下,针对不同窗口模式的窗口进行调节,有助于提升开发效率。
可选的,还可以包括如下步骤:
A1、确定所述电子设备的目标产品形态;
A2、检测所述目标产品形态是否支持所述自由窗口模式;
A3、在所述目标产品形态支持所述自由窗口模式时,确定与所述目标产品形态对应的目标场景特征参数,所述目标场景特征参数用于限定各个窗口模式下的控件调节效果;
A4、根据所述目标场景特征参数进入所述自由窗口模式。
本申请实施例中,产品形态用于描述产品的具体形态或者产品的产品型号,产品形态可以包括以下至少一种:手机、平板、智能手表、笔记本电脑、智能电视等等,在此不做限定,或者,产品形态可以包括产品型号,不同的产品型号则其对应的屏幕尺寸或者性能不一样。场景特征参数可以理解为用于限定各个窗口模式下的控件调节效果,例如,设置各个控件的调节范围,又例如,设置哪些控件可以调节,哪些控件不能调节。可以预先存储预设的产品形态与场景特征参数之间的映射关系。
具体实现中,可以确定电子设备的目标产品形态,还可以检测该目标产品形态是否支持自由窗口模式,在目标产品形态支持自由窗口模式时,确定与目标产品形态对应的目标场景特征参数,再根据目标场景特征参数进入自由窗口模式,即在自由窗口模式可以基于产品形态设置相应的自由窗口模式,这样,可以基于其产品对应的属性针对性调节,有助于提升调节效率和灵活性。
本申请实施例中,以android***为例,在android原有窗口模式的基础上,可以增加场景的概念(不同产品对应不同场景),并且提取出场景特征的自由窗口实现方式,进而,通过应用启动指定场景和特征,具体实现中,能够通过XML配置场景和场景特性相结合的方式,来兼容不同场景下的多窗口形态。
具体实现中,在这种场景下,每一个应用的窗口模式,还在和正常桌面模式一样,保持不变。通过场景和场景特征,做一些功能的差异化,如自由拖动、置顶、圆角、缩放、嵌入等。
本申请实施例中,可以先动应用,基于该应用进入自由窗口模式,在自由窗口模式下,如嵌入式画布场景或者投屏、车机PC模式下,均可以设置对应的场景和场景特征,以适应不同的产品,不同产品中不同产品型号的需求。
本申请实施例中,以andriod***为例,该andriod***可以支持的场景能力XML解析,XML格式类似如下至少一种:scneairo场景、scale缩放系数、support Emebedded是否支持嵌入、support Resize是否支持改变窗口大小、corner Radius圆角系数等等,在此不做限定。
进一步的,在***支持场景能力的情况下,在应用启动的时候,还可以将设置的场景和场景特征记录到应用的任务栈Task中。从而,可以根据不同应用不同的启动的方式,按应用原有的特征,启动为Activity Embedding、分屏或者悬浮窗等窗口模式等等,进一步的,更加可以针对对应场景的特征,实现场景的差异化处理,设置圆角、缩放、设置嵌入等等。
实际应用中,随着android的应用场景越来越广泛,比如在车机、PC场景等,相关技术中的窗口模式无法自适应车机、PC场景,以及投屏和画布嵌入等创新的多窗口业务场景。而本申请实施例中,则可以基于产品形态,确定相应的自由窗口模式,基于该自由窗口模式可以同时对不同的窗口模式进行调 节,有助于提升窗口调节效率。
举例说明下,如图3E所示,启动应用(如窗口编辑应用),检测是否存在自由窗口模式,若否,则正常桌面场景显示,若是,则获取其指定产品形态,检测***是否支持该指定产品形态,若否,正常桌面场景显示,若是,则将相关特征记录到应用任务栈(TASK)中,根据不同应用启动方式启动为:Activity Embedding、分屏、悬浮等原生窗口模式,例如,获取缩放参数,设置缩放系数到surface Flinger,实现缩放操作,获取圆角参数,具体的,获取圆角参数到surface Flinger,等等,还可以实现其他窗口调整。
可选的,在上述步骤304,根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口之后,还可以包括如下步骤:
B1、确定所述Q个窗口的展示参数,得到Q个展示参数;
B2、根据所述Q个展示参数,展示所述Q个窗口。
本申请实施例中,展示参数可以包括以下至少一种:展示优先级、展示位置、展示面积、展示批次等等,在此不做限定。
具体实现中,可以仅仅展示Q个窗口,或者,不仅仅可以展示Q个窗口,还可以展示P个窗口中除了Q个窗口之外的其他窗口。
具体实现中,可以确定Q个窗口中的每一窗口的展示参数,得到Q个展示参数,再根据Q个展示参数,展示Q个窗口。
可以看出,本申请实施例中所描述的窗口调整方法,应用于电子设备,在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,自由窗口模式用于兼容两种或者两种以上的窗口模式,选取P个窗口中的Q个窗口,Q为小于或等于P的正整数,确定Q个窗口的调整参数,调整参数用于对一类控件的一项或者多项功能进行调整,或者,调整参数用于对Q个窗口中的任一可调控件的一项或者多项功能进行调整,根据调整参数对Q个窗口中相应的控件进行调整,得到调整后的Q个窗口,一方面,可以在自由窗口模式下,在该自由窗口模式下,可以同时兼容或者展示多个窗口,每一窗口可以对应一种窗口或者至少一个应用,另一方面,还可以对窗口中的一类控件的一个或者多个功能,或者,任一控件的一个或者多个功能进行调节,有助于提升窗口的调节效率和灵活性。
与所述图3A所示的实施例一致的,请参阅图4,图4是本申请实施例提供的另一种窗口调整方法,应用于如图1或图2所示的电子设备,具体包括以下步骤:
401、确定所述电子设备的目标产品形态。
402、检测所述目标产品形态是否支持自由窗口模式。
403、在所述目标产品形态支持所述自由窗口模式时,确定与所述目标产品形态对应的目标场景特征参数,所述目标场景特征参数用于限定各个窗口模式下的控件调节效果。
404、根据所述目标场景特征参数进入所述自由窗口模式。
405、在所述自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式。
406、选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数。
407、确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整。
408、根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
其中,上述步骤401-步骤408的具体描述可以参照上述图3A所描述的窗口调整方法的相关描述,在此不再赘述。
可以看出,本申请实施例中所描述的窗口调整方法,应用于电子设备,确定电子设备的目标产品形态,检测目标产品形态是否支持自由窗口模式,在目标产品形态支持自由窗口模式时,确定与目标产品形态对应的目标场景特征参数,目标场景特征参数用于限定各个窗口模式下的控件调节效果,根据目标场景特征参数进入自由窗口模式,在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及 至少一个应用,P为正整数,自由窗口模式用于兼容两种或者两种以上的窗口模式,选取P个窗口中的Q个窗口,Q为小于或等于P的正整数,确定Q个窗口的调整参数,调整参数用于对一类控件的一项或者多项功能进行调整,或者,调整参数用于对Q个窗口中的任一可调控件的一项或者多项功能进行调整,根据调整参数对Q个窗口中相应的控件进行调整,得到调整后的Q个窗口,一方面,可以在自由窗口模式下,在该自由窗口模式下,可以同时兼容或者展示多个窗口,每一窗口可以对应一种窗口或者至少一个应用,另一方面,还可以对窗口中的一类控件的一个或者多个功能,或者,任一控件的一个或者多个功能进行调节,有助于提升窗口的调节效率和灵活性。
与上述图3A所示的示例一致的,请参阅图5,图5是本申请实施例提供的一种窗口调整方法的流程示意图,应用于如图1或图2所示的电子设备;其中,如图所示,本窗口调整方法包括:
501、在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式。
502、选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数。
503、确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整。
504、根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
505、确定所述Q个窗口的展示参数,得到Q个展示参数。
506、根据所述Q个展示参数,展示所述Q个窗口。
其中,上述步骤501-步骤506的具体描述可以参照上述图3A所描述的窗口调整方法的相关描述,在此不再赘述。
可以看出,本申请实施例中所描述的窗口调整方法,应用于电子设备,在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,自由窗口模式用于兼容两种或者两种以上的窗口模式,选取P个窗口中的Q个窗口,Q为小于或等于P的正整数,确定Q个窗口的调整参数,调整参数用于对一类控件的一项或者多项功能进行调整,或者,调整参数用于对Q个窗口中的任一可调控件的一项或者多项功能进行调整,根据调整参数对Q个窗口中相应的控件进行调整,得到调整后的Q个窗口,确定Q个窗口的展示参数,得到Q个展示参数,根据Q个展示参数,展示Q个窗口,一方面,可以在自由窗口模式下,在该自由窗口模式下,可以同时兼容或者展示多个窗口,每一窗口可以对应一种窗口或者至少一个应用,另一方面,还可以对窗口中的一类控件的一个或者多个功能,或者,任一控件的一个或者多个功能进行调节,还可以直观展示调整后的窗口,有助于提升窗口的调节效率和灵活性。
与上述实施例一致地,请参阅图6,图6是本申请实施例提供的一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由处理器执行,本申请实施例中,上述程序包括用于执行以下步骤的指令:
在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
可选的,在所述选取所述P个窗口中的Q个窗口方面,上述程序包括用于执行以下步骤的指令:
在预设时间段内,接收针对所述P个窗口中的Q个窗口的触控参数;
检测所述触控参数是否符合预设条件;
在所述触控参数符合所述预设条件时,确定所述P个窗口中的Q个窗口。
可选的,在所述确定所述Q个窗口的调整参数方面,上述程序包括用于执行以下步骤的指令:
选中所述Q个窗口中目标控件,所述目标控件为所述Q个窗口中的任一可调控件;
将所述目标控件调整为编辑状态;
确定所述目标控件的调整参数。
可选的,在所述确定所述目标控件的调整参数方面,上述程序包括用于执行以下步骤的指令:
确定针对所述目标控件的目标拖动参数;
确定与所述目标拖动参数对应的所述目标控件的调整参数。
可选的,在所述确定所述Q个窗口的调整参数方面,上述程序包括用于执行以下步骤的指令:
将所述Q个窗口中的控件进行分类,得到m类控件;
从所述m类控件中选取第i类控件,所述第i类控件为所述m类控件中的任一类控件;
确定所述第i类控件的调整参数。
可选的,上述程序还包括用于执行以下步骤的指令:
确定所述电子设备的目标产品形态;
检测所述目标产品形态是否支持所述自由窗口模式;
在所述目标产品形态支持所述自由窗口模式时,确定与所述目标产品形态对应的目标场景特征参数,所述目标场景特征参数用于限定各个窗口模式下的控件调节效果;
根据所述目标场景特征参数进入所述自由窗口模式。
可选的,在所述根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口之后,上述程序还包括用于执行以下步骤的指令:
确定所述Q个窗口的展示参数,得到Q个展示参数;
根据所述Q个展示参数,展示所述Q个窗口。
可以看出,本申请实施例中所描述的电子设备,在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,自由窗口模式用于兼容两种或者两种以上的窗口模式,选取P个窗口中的Q个窗口,Q为小于或等于P的正整数,确定Q个窗口的调整参数,调整参数用于对一类控件的一项或者多项功能进行调整,或者,调整参数用于对Q个窗口中的任一可调控件的一项或者多项功能进行调整,根据调整参数对Q个窗口中相应的控件进行调整,得到调整后的Q个窗口,一方面,可以在自由窗口模式下,在该自由窗口模式下,可以同时兼容或者展示多个窗口,每一窗口可以对应一种窗口或者至少一个应用,另一方面,还可以对窗口中的一类控件的一个或者多个功能,或者,任一控件的一个或者多个功能进行调节,有助于提升窗口的调节效率和灵活性。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图7是本申请实施例中所涉及的一种窗口调整装置700的功能单元组成框图。该窗口调整装置700应用于电子设备;所述装置700包括:展示单元701、选取单元702、确定单元703和调整单元704,其中,
所述展示单元701,用于在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
所述选取单元702,用于选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
所述确定单元703,用于确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
所述调整单元704,用于根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
可选的,在所述选取所述P个窗口中的Q个窗口方面,所述选取单元702具体用于:
在预设时间段内,接收针对所述P个窗口中的Q个窗口的触控参数;
检测所述触控参数是否符合预设条件;
在所述触控参数符合所述预设条件时,确定所述P个窗口中的Q个窗口。
可选的,在所述确定所述Q个窗口的调整参数方面,所述确定单元703具体用于:
选中所述Q个窗口中目标控件,所述目标控件为所述Q个窗口中的任一可调控件;
将所述目标控件调整为编辑状态;
确定所述目标控件的调整参数。
进一步的,可选的,在所述确定所述目标控件的调整参数方面,所述确定单元703具体用于:
确定针对所述目标控件的目标拖动参数;
确定与所述目标拖动参数对应的所述目标控件的调整参数。
可选的,在所述确定所述Q个窗口的调整参数方面,所述确定单元703具体用于:
将所述Q个窗口中的控件进行分类,得到m类控件;
从所述m类控件中选取第i类控件,所述第i类控件为所述m类控件中的任一类控件;
确定所述第i类控件的调整参数。
可选的,所述装置700还具体用于:
确定所述电子设备的目标产品形态;
检测所述目标产品形态是否支持所述自由窗口模式;
在所述目标产品形态支持所述自由窗口模式时,确定与所述目标产品形态对应的目标场景特征参数,所述目标场景特征参数用于限定各个窗口模式下的控件调节效果;
根据所述目标场景特征参数进入所述自由窗口模式。
可选的,在所述根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口之后,所述装置700还具体用于:
确定所述Q个窗口的展示参数,得到Q个展示参数;
根据所述Q个展示参数,展示所述Q个窗口。
可以看出,本申请实施例中所描述的窗口调整装置,应用于电子设备,在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,自由窗口模式用于兼容两种或者两种以上的窗口模式,选取P个窗口中的Q个窗口,Q为小于或等于P的正整数,确定Q个窗口的调整参数,调整参数用于对一类控件的一项或者多项功能进行调整,或者,调整参数用于对Q个窗口中的任一可调控件的一项或者多项功能进行调整,根据调整参数对Q个窗口中相应的控件进行调整,得到调整后的Q个窗口,一方面,可以在自由窗口模式下,在该自由窗口模式下,可以同时兼容或者展示多个窗口,每一窗口可以对应一种窗口或者至少一个应用,另一方面,还可以对窗口中的一类控件的一个或者多个功能,或者,任一控件的一个或者多个功能进行调节,有助于提升窗口的调节效率和灵活性。
需要注意的是,本申请实施例所描述的电子设备是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC, 单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
其中,展示单元701、选取单元702、确定单元703和调整单元704可以是处理器或者显示屏,该处理器可以为人工智能芯片、NPU、CPU、GPU等等,在此不做限定。基于上述单元模块能够实现上述任一方法的功能或者步骤。
本实施例还提供了一种芯片,其中,该芯片可以用于实现上述实施例中的任一方法。
本实施例还提供了一种计算机可读存储介质,其中,该计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例,以用于实现上述实施例中的任一方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的任一方法。
另外,本申请的实施例还提供一种窗口调整装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的任一方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (17)

  1. 一种窗口调整方法,其特征在于,应用于电子设备,所述方法包括:
    在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
    选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
    确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
    根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
  2. 根据权利要求1所述的窗口调整方法,其特征在于,所述选取所述P个窗口中的Q个窗口,包括:
    在预设时间段内,接收针对所述P个窗口中的Q个窗口的触控参数;
    检测所述触控参数是否符合预设条件;
    在所述触控参数符合所述预设条件时,确定所述P个窗口中的Q个窗口。
  3. 根据权利要求1或2所述的窗口调整方法,其特征在于,所述确定所述Q个窗口的调整参数,包括:
    选中所述Q个窗口中目标控件,所述目标控件为所述Q个窗口中的任一可调控件;
    将所述目标控件调整为编辑状态;
    确定所述目标控件的调整参数。
  4. 根据权利要求3所述的窗口调整方法,其特征在于,所述确定所述目标控件的调整参数,包括:
    确定针对所述目标控件的目标拖动参数;
    确定与所述目标拖动参数对应的所述目标控件的调整参数。
  5. 根据权利要求1或2所述的窗口调整方法,其特征在于,所述确定所述Q个窗口的调整参数,包括:
    将所述Q个窗口中的控件进行分类,得到m类控件;
    从所述m类控件中选取第i类控件,所述第i类控件为所述m类控件中的任一类控件;
    确定所述第i类控件的调整参数。
  6. 根据权利要求1或2所述的窗口调整方法,其特征在于,所述方法还包括:
    确定所述电子设备的目标产品形态;
    检测所述目标产品形态是否支持所述自由窗口模式;
    在所述目标产品形态支持所述自由窗口模式时,确定与所述目标产品形态对应的目标场景特征参数,所述目标场景特征参数用于限定各个窗口模式下的控件调节效果;
    根据所述目标场景特征参数进入所述自由窗口模式。
  7. 根据权利要求1或2所述的窗口调整方法,其特征在于,在所述根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口之后,所述方法还包括:
    确定所述Q个窗口的展示参数,得到Q个展示参数;
    根据所述Q个展示参数,展示所述Q个窗口。
  8. 一种窗口调整装置,其特征在于,应用于电子设备,所述装置包括:展示单元、选取单元、确定单元和调整单元,其中,
    所述展示单元,用于在自由窗口模式下,展示P个窗口,每一窗口对应一种窗口模式以及至少一个应用,P为正整数,所述自由窗口模式用于兼容两种或者两种以上的窗口模式;
    所述选取单元,用于选取所述P个窗口中的Q个窗口,Q为小于或等于P的正整数;
    所述确定单元,用于确定所述Q个窗口的调整参数,所述调整参数用于对一类控件的一项或者多项功能进行调整,或者,所述调整参数用于对所述Q个窗口中的任一可调控件的一项或者多项功能进行调整;
    所述调整单元,用于根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口。
  9. 根据权利要求8所述的窗口调整装置,其特征在于,在所述选取所述P个窗口中的Q个窗口方面,所述获取单元具体用于:
    在预设时间段内,接收针对所述P个窗口中的Q个窗口的触控参数;
    检测所述触控参数是否符合预设条件;
    在所述触控参数符合所述预设条件时,确定所述P个窗口中的Q个窗口。
  10. 根据权利要求8或9所述的窗口调整装置,其特征在于,在所述确定所述Q个窗口的调整参数,所述确定单元具体用于:
    选中所述Q个窗口中目标控件,所述目标控件为所述Q个窗口中的任一可调控件;
    将所述目标控件调整为编辑状态;
    确定所述目标控件的调整参数。
  11. 根据权利要求10所述的窗口调整装置,其特征在于,在所述确定所述目标控件的调整参数方面,所述确定单元具体用于:
    确定针对所述目标控件的目标拖动参数;
    确定与所述目标拖动参数对应的所述目标控件的调整参数。
  12. 根据权利要求8或9所述的窗口调整装置,其特征在于,在所述确定所述Q个窗口的调整参数方面,所述确定单元具体用于:
    将所述Q个窗口中的控件进行分类,得到m类控件;
    从所述m类控件中选取第i类控件,所述第i类控件为所述m类控件中的任一类控件;
    确定所述第i类控件的调整参数。
  13. 根据权利要求8或9所述的窗口调整装置,其特征在于,所述装置还具体用于:
    确定所述电子设备的目标产品形态;
    检测所述目标产品形态是否支持所述自由窗口模式;
    在所述目标产品形态支持所述自由窗口模式时,确定与所述目标产品形态对应的目标场景特征参数,所述目标场景特征参数用于限定各个窗口模式下的控件调节效果;
    根据所述目标场景特征参数进入所述自由窗口模式。
  14. 根据权利要求8或9所述的窗口调整装置,其特征在于,在所述根据所述调整参数对所述Q个窗口中相应的控件进行调整,得到调整后的所述Q个窗口之后,所述装置还具体用于:
    确定所述Q个窗口的展示参数,得到Q个展示参数;
    根据所述Q个展示参数,展示所述Q个窗口。
  15. 一种电子设备,其特征在于,所述电子设备包括处理器、存储器,所述存储器用于存储一个或多个程序,并且被配置处理器执行,所述程序包括用于执行如权利要求1-7任一项所述的方法中的步骤的指令。
  16. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-7任一项所述的方法。
  17. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-7任一项所述的方法。
PCT/CN2023/113777 2022-11-23 2023-08-18 窗口调整方法及相关装置 WO2024109198A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211478806.2 2022-11-23
CN202211478806.2A CN118069262A (zh) 2022-11-23 2022-11-23 窗口调整方法及相关装置

Publications (1)

Publication Number Publication Date
WO2024109198A1 true WO2024109198A1 (zh) 2024-05-30

Family

ID=91108452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/113777 WO2024109198A1 (zh) 2022-11-23 2023-08-18 窗口调整方法及相关装置

Country Status (2)

Country Link
CN (1) CN118069262A (zh)
WO (1) WO2024109198A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630282A (zh) * 2014-11-20 2016-06-01 三星电子株式会社 用于调整窗口尺寸的设备及其控制方法
CN109271074A (zh) * 2018-09-05 2019-01-25 Oppo广东移动通信有限公司 一种窗口调整方法、窗口调整装置及移动终端
CN113253962A (zh) * 2021-06-07 2021-08-13 北京字节跳动网络技术有限公司 一种应用窗口显示方法、装置及设备
CN114911390A (zh) * 2022-07-17 2022-08-16 荣耀终端有限公司 显示方法及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630282A (zh) * 2014-11-20 2016-06-01 三星电子株式会社 用于调整窗口尺寸的设备及其控制方法
CN109271074A (zh) * 2018-09-05 2019-01-25 Oppo广东移动通信有限公司 一种窗口调整方法、窗口调整装置及移动终端
CN113253962A (zh) * 2021-06-07 2021-08-13 北京字节跳动网络技术有限公司 一种应用窗口显示方法、装置及设备
CN114911390A (zh) * 2022-07-17 2022-08-16 荣耀终端有限公司 显示方法及电子设备

Also Published As

Publication number Publication date
CN118069262A (zh) 2024-05-24

Similar Documents

Publication Publication Date Title
CN109814766B (zh) 一种应用显示方法及电子设备
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021000881A1 (zh) 一种分屏方法及电子设备
CN110543289B (zh) 控制音量的方法和电子设备
WO2021027725A1 (zh) 显示页面元素的方法和电子设备
WO2020062294A1 (zh) ***导航栏的显示控制方法、图形用户界面及电子设备
US11861382B2 (en) Application starting method and apparatus, and electronic device
WO2020093988A1 (zh) 一种图像处理方法及电子设备
US12032799B2 (en) Card sharing method, electronic device, and communications system
WO2023130921A1 (zh) 一种适配多设备的页面布局的方法及电子设备
WO2020155875A1 (zh) 电子设备的显示方法、图形用户界面及电子设备
CN110830645B (zh) 一种操作方法和电子设备及计算机存储介质
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2024109198A1 (zh) 窗口调整方法及相关装置
CN114596819B (zh) 亮度调节方法及相关装置
WO2023029565A1 (zh) 一种触控采样率调节方法及相关装置
WO2024139115A1 (zh) 一种显示方法以及电子设备
WO2024109481A1 (zh) 窗口控制方法及电子设备
WO2023207799A1 (zh) 消息处理方法和电子设备
WO2023160455A1 (zh) 删除对象的方法及电子设备
WO2024046010A1 (zh) 一种界面显示方法、设备及***
WO2024066976A1 (zh) 控件显示方法及电子设备
WO2023193720A1 (zh) 控制方法及中控设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23893296

Country of ref document: EP

Kind code of ref document: A1