WO2021208723A1 - 全屏显示方法、装置和电子设备 - Google Patents

全屏显示方法、装置和电子设备 Download PDF

Info

Publication number
WO2021208723A1
WO2021208723A1 PCT/CN2021/083860 CN2021083860W WO2021208723A1 WO 2021208723 A1 WO2021208723 A1 WO 2021208723A1 CN 2021083860 W CN2021083860 W CN 2021083860W WO 2021208723 A1 WO2021208723 A1 WO 2021208723A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
aspect ratio
window
preset interval
display
Prior art date
Application number
PCT/CN2021/083860
Other languages
English (en)
French (fr)
Inventor
罗义
周轩
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/919,047 priority Critical patent/US20230298498A1/en
Priority to EP21789032.6A priority patent/EP4120074A4/en
Publication of WO2021208723A1 publication Critical patent/WO2021208723A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/03Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays
    • G09G3/035Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays for flexible display surfaces
    • 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1431Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0442Handling or displaying different aspect ratios, or changing the aspect ratio
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0492Change of orientation of the displayed image, e.g. upside-down, mirrored
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/14Solving problems related to the presentation of information to be displayed
    • G09G2340/145Solving problems related to the presentation of information to be displayed related to small screens
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/02Graphics controller able to handle multiple formats, e.g. input or output formats
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2380/00Specific applications
    • G09G2380/02Flexible displays

Definitions

  • This application relates to the technical field of smart terminals, and in particular to a full-screen display method, device and electronic equipment.
  • the embodiments of the present application provide a full-screen display method, device, and electronic device, which can provide users with a better full-screen display mode in various scenarios that require full-screen display, and improve the user's full-screen experience.
  • this application provides a full-screen display method, including:
  • a multimedia file is displayed in a non-full screen on the application program interface; an instruction to display the multimedia file in full screen is detected, and it is judged whether the window displaying the application program interface is a graphic with an aspect ratio in a preset interval; the preset interval is an interval containing 1; if The window is a graphic with an aspect ratio in a preset interval.
  • the multimedia file is displayed in the full screen of the window; the current display direction of the application program interface includes: the application program detects the command to display the multimedia file in full screen The display direction of the interface.
  • the above-mentioned application program may be an application program of an electronic device, and the above-mentioned electronic device may include a mobile terminal (mobile phone), a smart screen, a drone, an intelligent connected vehicle (hereinafter referred to as ICV), an intelligent (automobile) vehicle ( smart/intelligent car) or in-vehicle equipment; this method displays the application program interface in full screen according to the current display direction of the application program interface when the window that displays the application program interface is a graphic with a preset aspect ratio, without the need for the user to perform electronic equipment
  • ICV intelligent connected vehicle
  • automobile vehicle smart/intelligent car
  • determining whether the window displaying the application program interface is a graphic with an aspect ratio in a preset interval includes: obtaining the aspect ratio of the window; determining whether the aspect ratio is in the preset interval, and the preset interval may be [ 0.75, 4/3], the upper and lower boundaries of the preset interval can be an open interval or a closed interval.
  • the principle of setting the preset interval is: the window with the aspect ratio within the preset interval will have a small difference in the viewing experience of the user when the application interface is displayed in a horizontal full screen and a vertical full screen display.
  • the display screen of the electronic device that displays the application program interface is a folding screen
  • the full screen is a graph with a preset aspect ratio when in the unfolded state
  • the sub-screen is a non-aspect ratio in the preset state when in the folded state.
  • the step of causing the device to execute the instruction for detecting the full-screen display of the multimedia file includes: receiving a direction setting request sent by the application program to which the application program interface belongs, and the direction setting request is determined by The application program is sent when it detects an instruction for full-screen display of the multimedia file, and the direction setting request carries the display direction specified by the application program for the application program interface.
  • FIG. 4C is an example diagram of a full-screen display method in a split-screen display scenario
  • the regular pattern with a shape similar to a square may include a rectangle with an aspect ratio in a preset interval, and the like.
  • Fig. 2D shows an example of an irregular figure whose shape is similar to a square.
  • the aspect ratio of the graphic is 7:6, and the four corners are all arcs; for graphic 25, the aspect ratio of the graphic is 6:6 or 6:5; for graphic 26, the aspect ratio of the graphic is 6:6 or 6:5.
  • the aspect ratio is 7:6, but one corner is missing; for figure 27, the aspect ratio of the figure is 7:6, but the shape of one side is missing.
  • the figure example shown in FIG. 2D is only an example, and is not used to limit the shapes and square-approximation figures in this application.
  • each example may have For different length-to-width ratios close to 1, the number of arc-shaped corners of the figure 24 can be different, the number of missing corners or sides of the figure 26 and the figure 27 can be different, the missing shape can be changed, etc., here No longer.
  • the current display direction of the application program interface refers to the display direction of the application program interface when an instruction to perform a full-screen display on the application program interface is detected.
  • the window is a graphic with an aspect ratio in the preset interval, correspondingly, see the figure on the bottom right, without rotating the direction of the multimedia file (video in Figure 3D), according to the current display direction of the application interface, in the window Display multimedia files in full screen (video in Figure 3D).
  • the full-screen display method of the game is explained based on the embodiment shown in FIG. 3A. See the upper left and upper right diagrams shown in FIG. 3E.
  • the user clicks on the icon of a game application to start the game, and the application obtains the game interface from the startup item when it starts.
  • the electronic device detects the full-screen instruction for the application program interface (that is, detects the instruction for full-screen display of the application program interface), and determines whether the window displaying the application program interface has an aspect ratio in a preset interval Graphics
  • the window is a graphic with an aspect ratio in the preset interval, correspondingly, see the figure on the bottom right, without rotating the direction of the game interface, and according to the current display direction of the game interface, the game interface is displayed in the full screen of the window;
  • the window is a graph with an aspect ratio that is not in the preset interval, correspondingly, see the figure on the lower left, according to the display direction specified by the game program, rotate the direction of the game interface and then display the game interface in the window in full screen.
  • FIG. 4A is a flowchart of another embodiment of the full-screen display method of the present application.
  • FIG. 4A provides a possible implementation manner for judging whether a window displaying an application program interface is a graphic with an aspect ratio in a preset interval. As shown in Figure 4A, the method may include:
  • Step 401 When an instruction to display the application program interface in full screen is detected, obtain the aspect ratio of the window displaying the application program interface.
  • Step 402 Determine whether the aspect ratio is within a preset interval, if it is within the preset interval, execute step 403; if it is not within the preset interval, execute step 404.
  • Step 403 According to the current display direction of the application program interface, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • FIG. 4B the relationship between the change of the window aspect ratio and the full screen display direction before and after the display screen is folded is illustrated.
  • R0 is the window aspect ratio before the display screen is folded
  • R1 is the window aspect ratio after the display screen is folded. If R1 falls within the preset interval, then according to the current display direction of the application interface, there is no need to rotate the display direction of the application interface; if R1 falls outside the preset interval, follow the display direction specified by the application, generally Need to rotate the display direction of the application interface.
  • the multimedia file is playing in the split-screen window on the left (in the picture, the video is taken as an example). If the user clicks the full-screen button on the application interface to give a full-screen instruction, it is judged whether the aspect ratio of the split-screen window is within the preset interval , Because the split-screen window is a graphic with an aspect ratio in the preset interval, the judgment result is that the aspect ratio is in the preset interval. Therefore, in the figure in the lower left corner, the multimedia file is displayed in full screen according to the current display direction of the application interface;
  • the display screen is a folding screen, and the display screen does not display split screens; in the folded state, the sub-screen is a graph with an aspect ratio in a preset interval, and the full screen is a graph with an aspect ratio not in a preset interval in the unfolded state.
  • FIG. 5B an example diagram of the fully folded state and the unfolded state of the display screen is given when the display screen includes two sub-screens.
  • the display screen is a folding screen, and the display screen does not display split screens; in the folded state, the sub-screen is a graph with an aspect ratio in a preset interval, and the full screen is a graph with an aspect ratio not in a preset interval in the unfolded state.
  • An example of the display screen can be seen in Fig. 5B, which will not be repeated here.
  • a sub-screen in the display screen displays the application program interface in the folded state
  • the full screen displays the application program interface in the expanded state
  • the full screen displays the application program interface when it changes from the folded state to the expanded state.
  • a sub-screen displays the application program interface, where the folded state can be an incompletely folded state or a fully folded state.
  • the specific sub-screen that displays the application program interface is not limited by this application.
  • the method may include:
  • Step 601 When the instruction for full-screen display of the application program interface is detected, judge the opening and closing state of the display; if the opening and closing state of the display is in the folded state, go to step 603; if the opening and closing state of the display is in the unfolded state, Go to step 604; if the opening and closing state of the display screen is an opening and closing change state, go to step 602;
  • Step 602 Determine the changing direction of the opening and closing state of the display screen. If the changing direction is the expanded state to the folded state, step 603 is executed, and if the changing direction is the folded state to the expanded state, step 604 is executed.
  • Step 603 According to the current display direction of the application program interface, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • Step 604 According to the display direction specified by the application program, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • FIG. 6 For the example of FIG. 6, reference may be made to FIG. 5B and FIG. 7B, which will not be repeated here.
  • FIG. 7A is a flowchart of another embodiment of the full-screen display method of this application.
  • the display screen is a folding screen, and the display screen does not display split screens; in the unfolded state, the full screen is a graph with an aspect ratio that is not in the preset interval, and the sub-screen is in the preset interval in the folded state. Graphics. An example of the display screen can be seen in Fig. 5B, which will not be repeated here.
  • the display screen does not display split screens
  • the screen displaying the application interface changes from the sub-screen to the full screen
  • the screen displaying the application interface changes from the full screen. It becomes a sub-screen, where the folding state can be incompletely folded or completely folded.
  • the specific sub-screen that displays the application program interface is not limited by this application.
  • the method may include:
  • Step 701 When it is detected that the opening and closing state of the display screen starts to change, determine the direction of change of the opening and closing state of the display screen; if the direction of change is from the expanded state to the folded state, go to step 702, if the change direction is the folded state Change to the expanded state and go to step 703.
  • Step 702 According to the current display direction of the application program interface, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • Step 703 According to the display direction specified by the application program, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • the display screen in this embodiment is displayed in split screens, and the display screen is displayed as a split screen according to each sub-screen, then the application interface is displayed as a sub-screen. It is a graphic with an aspect ratio in a preset interval.
  • it may further include: determining whether the display screen is Perform split-screen display, if it is not split-screen display, execute the step of judging the changing direction of the opening and closing state of the display screen, if split-screen display, execute step 702.
  • FIG. 7B in the upper left figure, the user is watching the video in full screen on the full screen.
  • the method shown in Figure 7A if the display screen is folded at this time, it is judged that the direction of change is from the expanded state to the folded state, and accordingly, As shown in the figure on the bottom left, the video will be displayed on the sub-screen in full screen according to the current display direction of the video playback program interface;
  • the user is watching the video in full screen on the full screen.
  • the method shown in Fig. 7A if the display screen is folded at this time, it is judged that the direction of change is from the expanded state to the folded state. As shown, after rotating the direction of the video playback program interface, the video is displayed on the sub-screen in full screen.
  • FIG. 8A is a flowchart of another embodiment of the full-screen display method of this application.
  • the display screen is a folding screen, and the display screen does not display split screens; in the expanded state, the full screen is a graph with an aspect ratio in a preset interval, and the sub-screen is a graph with an aspect ratio not in a preset interval in the folded state.
  • FIG. 8B an example diagram of the folded state and the unfolded state of the display screen is given when the display screen includes two sub-screens.
  • the folded state here can be an incompletely folded state or a fully folded state.
  • the method may include:
  • Step 801 When the instruction to display the application program interface in full screen is detected, determine the screen used to display the window of the application program interface; if the screen used is a full screen, go to step 802; if the screen used is a sub-screen, execute Step 803.
  • Step 802 According to the current display direction of the application program interface, the application program interface is displayed in the full screen of the window, and this branching process ends.
  • Step 803 According to the display direction specified by the application program, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • the display screen in this embodiment is displayed in split screens, and the display screen is displayed as a split screen according to each sub-screen, then the application interface is displayed as a sub-screen. It is a graphic whose aspect ratio is not in the preset interval.
  • it may further include: determining display Whether the screen is displayed in a split screen, if it is not displayed in a split screen, execute the step of judging the screen used for displaying the window of the application program interface; if it is displayed in a split screen, execute step 803.
  • Figure 8C is an example diagram of the embodiment shown in Figure 8A; in the upper left figure, the user clicks the full screen button while watching a video on the sub-screen. According to the method in Figure 8A, it is determined that the screen used is a sub-screen. Correspondingly, as shown in the figure at the bottom left, the video will be displayed in full screen on the sub-screen after rotating the direction of the video playback program interface;
  • the method in Figure 8A it is judged that the screen used is the full screen.
  • the current display direction displays the video in the full screen of the sub-screen.
  • the display screen is a folding screen, and the display screen does not display split screens; in the folded state, the sub-screen is a graph with an aspect ratio that is not in a preset interval, and the full screen is a graph with an aspect ratio in a preset interval in the unfolded state.
  • the folded state here can be an incompletely folded state or a completely folded state. An example of the display screen can be seen in Fig. 8B, which will not be repeated here.
  • FIG. 9 For the example of FIG. 9, reference may be made to FIG. 8C and FIG. 10B, which will not be repeated here.
  • FIG. 10A is a flowchart of another embodiment of the full-screen display method of this application.
  • the display screen is a folding screen, and the display screen does not display split screens; in the folded state, the sub-screen is a graph with an aspect ratio that is not in a preset interval, and the full screen is a graph with an aspect ratio in a preset interval in the unfolded state.
  • the folded state here can be an incompletely folded state or a completely folded state. An example of the display screen can be seen in Fig. 8B, which will not be repeated here.
  • the display screen does not display split screens
  • the screen displaying the application interface changes from the sub-screen to the full screen
  • the screen displaying the application interface changes from the full screen. It becomes a sub-screen.
  • the specific sub-screen that displays the application program interface is not limited by this application.
  • Step 1001 When it is detected that the opening and closing state of the display screen starts to change, determine the direction of the change of the opening and closing state of the display screen; if the change direction is the folded state to the expanded state, perform step 1002, if the change direction is the expanded state, it becomes In the folded state, go to step 1003.
  • Step 1002 According to the current display direction of the application program interface, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • Step 1003 According to the display direction specified by the application program, the application program interface is displayed in the full screen of the window, and the branch process ends.
  • the full-screen display content of the application may change, for example, returning to the details page from the full-screen window. Not limited.
  • the display screen in this embodiment is displayed in split screens, and the display screen is displayed as a split screen according to each sub-screen, then the application interface is displayed as a sub-screen. It is a graphic whose aspect ratio is not in the preset interval.
  • the method may further include: judging the display screen Whether to perform split-screen display, if it is not split-screen display, execute the step of judging the changing direction of the opening and closing state of the display screen; if split-screen display, execute step 1003.
  • Fig. 10B in the upper left figure, the user is watching the video in full screen on the sub-screen.
  • the method shown in Fig. 10A if the display screen is unfolded at this time, it is judged that the changing direction is from the folded state to the unfolded state, and accordingly, As shown in the figure on the bottom left, the video is displayed in full screen and full screen according to the current display direction of the video playback program interface;
  • the user is watching the video in full screen on the full screen.
  • the method shown in Fig. 10A if the display screen is folded at this time, it is judged that the direction of change is from the expanded state to the folded state. As shown, after rotating the direction of the video playback program interface, the video is displayed on the sub-screen in full screen.
  • the folding screen includes two sub-screens as an example for description, and those skilled in the art can extend the embodiments of this application to scenarios where the folding screen includes more than two sub-screens.
  • the principle is: when the window displaying the application program interface is the complete display area of the screen where the window is located, the shape of the window can be determined according to the shape of the screen where the window is located. The embodiments are not listed one by one here.
  • the system of the electronic device can perform the judgment of whether the window is a graphic with an aspect ratio in a preset interval and the full-screen display of the application program interface.
  • the method may include:
  • Step 1101 When the application program detects an instruction for full-screen display of the application program interface, the application program sends a direction setting request to the system.
  • step 301 For the specific implementation of the instruction for full-screen display of the application program interface detected by the application program, reference may be made to the description in step 301, which will not be repeated here.
  • the application sending a direction setting request to the system may include: the application sending setRequestedOrientation to the system.
  • the direction setting request sent by the application in the prior art includes the display direction of the application interface, and the display direction is: horizontal screen or vertical screen.
  • the application sends setRequestOrientation to the system, its parameter can be: LANDSCAPE or PORTRAIT; for example, setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) represents vertical screen, and setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) represents horizontal screen.
  • setRequestedOrientation activityInfo.SCREEN_ORIENTATION_PORTRAIT
  • setRequestedOrientation ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
  • Step 1102 The system receives the request and determines whether the window displaying the application program interface is a graphic with an aspect ratio in the preset interval. If it is a graphic with an aspect ratio in the preset interval, perform step 1103, if it is not the aspect ratio in the preset interval For interval graphics, go to step 1104.
  • how to determine whether the window is a graphic with an aspect ratio in a preset interval can refer to the various determination methods described in FIGS. 4 to 10, which will not be repeated here.
  • Step 1103 The system displays the application program interface in the full screen of the window according to the current display direction of the application program interface, and the branch process ends.
  • the system can modify the parameter configuration of setRequestedOrientation sent by the application to the system to BEHIND, which means that the display direction of the application interface follows the current display direction of the application interface and does not require a rotation direction, for example, setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_BEHIND ).
  • a graphics decision module can be added on the Android system side.
  • the graphics decision module determines whether the window displaying the application program interface has an aspect ratio according to a preset judgment criterion. For the graphics in the preset interval, modify the display direction in the direction setting request or keep the display direction in the direction setting request according to the judgment result, and then the Android system architecture will continue the subsequent full-screen display processing, and control the display driver to perform the application program interface full-screen display.
  • the judging unit 122 may be specifically configured to: receive a direction setting request sent by the application to which the application program interface belongs, the direction setting request is sent by the application when an instruction to display the multimedia file in full screen is detected, and the direction setting request carries the application The display direction specified by the program for the application program interface.
  • the division of the various units of the full-screen display device shown in FIG. 12 is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated.
  • these units can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; part of the units can also be implemented in the form of software called by the processing elements, and some of the units can be implemented in the form of hardware.
  • the display unit may be a separately established processing element, or it may be integrated in a certain chip of the electronic device.
  • the implementation of other units is similar.
  • all or part of these units can be integrated together or implemented independently.
  • each step of the above method or each of the above units can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • the electronic device shown in FIG. 13 may be a terminal device or a circuit device built in the aforementioned terminal device.
  • the device can be used to execute the functions/steps in the methods provided in the embodiments shown in FIG. 3A to FIG. 11A of the present application.
  • a memory may also be provided in the processor 1310 to store instructions and data.
  • the memory in the processor 1310 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 1310. If the processor 1310 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 1310 is reduced, and the efficiency of the system is improved.
  • the processor 1310 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 1310 may include multiple sets of I2C buses.
  • the processor 1310 may be coupled to the touch sensor 1380K, charger, flash, camera 1393, etc., respectively through different I2C bus interfaces.
  • the processor 1310 may couple the touch sensor 1380K through an I2C interface, so that the processor 1310 and the touch sensor 1380K communicate through an I2C bus interface to realize the touch function of the electronic device 1300.
  • the I2S interface can be used for audio communication.
  • the processor 1310 may include multiple sets of I2S buses.
  • the processor 1310 may be coupled with the audio module 1370 through an I2S bus to implement communication between the processor 1310 and the audio module 1370.
  • the audio module 1370 can transmit audio signals to the wireless communication module 1360 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 1370 and the wireless communication module 1360 may be coupled through a PCM bus interface.
  • the audio module 1370 may also transmit audio signals to the wireless communication module 1360 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 1310 and the wireless communication module 1360.
  • the processor 1310 communicates with the Bluetooth module in the wireless communication module 1360 through the UART interface to realize the Bluetooth function.
  • the audio module 1370 may transmit audio signals to the wireless communication module 1360 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 1310 with the display 1394, camera 1393 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 1310 and the camera 1393 communicate through a CSI interface to implement the shooting function of the electronic device 1300.
  • the processor 1310 and the display screen 1394 communicate through the DSI interface to realize the display function of the electronic device 1300.
  • the USB interface 1330 is an interface that complies with the USB standard specifications, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 1330 can be used to connect a charger to charge the electronic device 1300, and can also be used to transfer data between the electronic device 1300 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic illustration, and does not constitute a structural limitation of the electronic device 1300.
  • the electronic device 1300 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 1340 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 1340 may receive the charging input of the wired charger through the USB interface 1330.
  • the charging management module 1340 may receive the wireless charging input through the wireless charging coil of the electronic device 1300. While the charging management module 1340 charges the battery 1342, the power management module 1341 can also supply power to electronic devices.
  • the power management module 1341 is used to connect the battery 1342, the charging management module 1340 and the processor 1310.
  • the power management module 1341 receives input from the battery 1342 and/or the charging management module 1340, and supplies power to the processor 1310, internal memory 1321, display screen 1394, camera 1393, and wireless communication module 1360.
  • the power management module 1341 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 1341 may also be provided in the processor 1310.
  • the power management module 1341 and the charging management module 1340 may also be provided in the same device.
  • the wireless communication function of the electronic device 1300 can be implemented by the antenna 1, the antenna 2, the mobile communication module 1350, the wireless communication module 1360, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 1300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 1350 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 1300.
  • the mobile communication module 1350 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 1350 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 1350 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 1350 may be provided in the processor 1310.
  • at least part of the functional modules of the mobile communication module 1350 and at least part of the modules of the processor 1310 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 1370A, a receiver 1370B, etc.), or displays an image or video through a display screen 1394.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 1310 and be provided in the same device as the mobile communication module 1350 or other functional modules.
  • the wireless communication module 1360 can provide applications on the electronic device 1300, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 1360 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 1360 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 1310.
  • the wireless communication module 1360 may also receive a signal to be sent from the processor 1310, perform frequency modulation, amplify, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 1300 is coupled with the mobile communication module 1350, and the antenna 2 is coupled with the wireless communication module 1360, so that the electronic device 1300 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the camera 1393 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may 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 transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 1300 may include 1 or N cameras 1393, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 1300 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 1300 may support one or more video codecs. In this way, the electronic device 1300 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • the external memory interface 1320 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1300.
  • the external memory card communicates with the processor 1310 through the external memory interface 1320 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the electronic device 1300 can implement audio functions through an audio module 1370, a speaker 1370A, a receiver 1370B, a microphone 1370C, a headphone interface 1370D, and an application processor. For example, music playback, recording, etc.
  • the speaker 1370A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 1300 can listen to music through the speaker 1370A, or listen to a hands-free call.
  • the pressure sensor 1380A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 1380A may be disposed on the display screen 1394.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 1380A, the capacitance between the electrodes changes.
  • the electronic device 1300 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 1394, the electronic device 1300 detects the intensity of the touch operation according to the pressure sensor 1380A.
  • the air pressure sensor 1380C is used to measure air pressure.
  • the electronic device 1300 calculates the altitude based on the air pressure value measured by the air pressure sensor 1380C, and assists positioning and navigation.
  • the ambient light sensor 1380L is used to sense the brightness of the ambient light.
  • the electronic device 1300 can adaptively adjust the brightness of the display screen 1394 according to the perceived brightness of the ambient light.
  • the ambient light sensor 1380L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 1380L can also cooperate with the proximity light sensor 1380G to detect whether the electronic device 1300 is in the pocket to prevent accidental touch.
  • the bone conduction sensor 1380M can acquire vibration signals.
  • the bone conduction sensor 1380M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 1380M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 1380M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 1370 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 1380M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 1380M, and realize the heart rate detection function.

Abstract

本申请实施例提供一种全屏显示方法、装置和电子设备,该方法中,应用程序界面上非全屏显示一多媒体文件;检测到对多媒体文件进行全屏显示的指令,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;如果窗口为纵横比处于预设区间的图形,依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件;应用程序界面的当前显示方向包括:检测到对多媒体文件进行全屏显示的指令时,应用程序界面的显示方向,从而能够在各种需要全屏显示的场景下为用户提供更好的全屏显示方式,提升用户的全屏体验。

Description

全屏显示方法、装置和电子设备 技术领域
本申请涉及智能终端技术领域,特别涉及一种全屏显示方法、装置和电子设备。
背景技术
现有手持的电子设备,如手机、平板电脑,均有支持应用程序界面旋转的特性。在某个应用程序中,如果用户希望通过全屏获取更好的沉浸式体验,电子设备中的操作系统将应用程序界面从竖屏显示切换至横屏显示,用户旋转电子设备,实现全屏的沉浸式体验。但是,随着分屏技术的发展以及折叠屏的出现,这种应用程序界面全屏显示的方式,并不能完全适应新出现的各种需要全屏显示的场景。
发明内容
本申请实施例提供了一种全屏显示方法、装置和电子设备,能够在各种需要全屏显示的场景下为用户提供更好的全屏显示方式,提升用户的全屏体验。
第一方面,本申请提供了一种全屏显示方法,包括:
应用程序界面上非全屏显示一多媒体文件;检测到对多媒体文件进行全屏显示的指令,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;预设区间是包含1的区间;如果窗口为纵横比处于预设区间的图形,依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件;应用程序界面的当前显示方向包括:检测到对多媒体文件进行全屏显示的指令时,应用程序界面的显示方向。
上述应用程序可以为电子设备的应用程序,上述电子设备可以包括移动终端(手机)、智慧屏、无人机、智能网联车(Intelligent Connected Vehicle;以下简称:ICV)、智能(汽)车(smart/intelligent car)或车载设备等设备;该方法在显示应用程序界面的窗口为纵横比处于预设区间的图形时,依照应用程序界面的当前显示方向全屏显示应用程序界面,无需用户进行电子设备的旋转,能够在各种需要全屏显示的场景下为用户提供更好的全屏显示方式,提升了用户的全屏显示体验。
以下,提供几种判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的可能实现方式:
在一种可能的实现方式中,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:获取窗口的纵横比;判断纵横比是否处于预设区间,预设区间可以为[0.75,4/3],预设区间的上下边界可以为开区间或闭区间。预设区间的设定原则是:纵横比在预设区间内的窗口,在对应用程序界面横向全屏显示和竖向全屏 显示时,用户的观看体验相差较小。
在另一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,显示屏不分屏显示,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:判断窗口使用的屏幕;如果窗口使用的屏幕是一个子屏,判断窗口为纵横比处于预设区间的图形;如果窗口使用的屏幕是完整屏,判断窗口为纵横比不处于预设区间的图形。
在又一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为纵横比不处于预设区间的图形,显示屏不分屏显示,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:判断窗口使用的屏幕;如果窗口使用的屏幕是完整屏,判断窗口为纵横比处于预设区间的图形;如果窗口使用的屏幕是一个子屏,判断窗口为纵横比不处于预设区间的图形。
在又一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,显示屏不分屏显示;判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:判断显示屏的开合状态;如果显示屏的开合状态为折叠状态,判断窗口为纵横比处于预设区间的图形;如果显示屏的开合状态为展开状态,判断窗口为纵横比不处于预设区间的图形;如果显示屏的开合状态为开合变化状态,判断显示屏的开合变化状态的变化方向;如果变化方向为展开状态变为折叠状态,判断窗口为纵横比处于预设区间的图形;如果变化方向为折叠状态变为展开状态,判断窗口为纵横比不处于预设区间的图形。
在又一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为非纵横比处于预设区间的图形,显示屏不分屏显示;判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:判断显示屏的开合状态;如果显示屏的开合状态为展开状态,判断窗口为纵横比处于预设区间的图形;如果显示屏的开合状态为折叠状态,判断窗口为纵横比不处于预设区间的图形;如果显示屏的开合状态为开合变化状态,判断显示屏的开合变化状态的变化方向;如果变化方向为折叠状态变为展开状态,判断窗口为纵横比处于预设区间的图形;如果变化方向为展开状态变为折叠状态,判断窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,在窗口全屏显示多媒体文件之后,还包括:检测到显示屏的开合状态发生变化,根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形;如果显示多媒体文件的窗口为纵横比处于预设区间的图形,依照多媒体文件的当前显示方向,在显示多媒体文件的窗口全屏显示多媒体文件;多媒体文件的当前显示方向包括:检测到显示屏的开合状态发生变化时,多媒体文件的显示方向。从而在窗口全屏显示多媒体文件的情况下,检测到显示屏的开合状态发生变化,如果根据开合状态的变化方向判断 开合状态发生变化后显示多媒体文件的窗口为纵横比处于预设区间的图形,无需用户进行电子设备的旋转,能够在该场景下为用户提供更好的全屏显示方式,提升了用户的全屏显示体验。
在一种可能的实现方式中,显示屏展开状态时的完整屏为纵横比不处于预设区间的图形,折叠状态时的子屏为纵横比处于预设区间的图形,显示屏不分屏显示;根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形,包括:判断显示屏的开合状态的变化方向;如果变化方向为展开状态变为折叠状态,判断显示多媒体文件的窗口为纵横比处于预设区间的图形;如果变化方向为折叠状态变为展开状态,判断显示多媒体文件的窗口为纵横比不处于预设区间的图形。从而提供了一种判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形的实现方式。
在一种可能的实现方式中,显示屏展开状态时的完整屏为纵横比处于预设区间的图形,折叠状态时的子屏为纵横比不处于预设区间的图形,显示屏不分屏显示;根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形,包括:判断显示屏的开合状态的变化方向;如果变化方向为折叠状态变为展开状态,判断显示多媒体文件的窗口为纵横比处于预设区间的图形;如果变化方向为展开状态变为折叠状态,判断显示多媒体文件的窗口为纵横比不处于预设区间的图形。从而提供了一种判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形的实现方式。
在一种可能的实现方式中,检测到对多媒体文件进行全屏显示的指令,包括:接收到应用程序界面所属应用程序发送的方向设置请求,方向设置请求由应用程序在检测到对多媒体文件进行全屏显示的指令时发送,方向设置请求中携带应用程序为应用程序界面指定的显示方向。从而提供一种检测到对多媒体文件进行全屏显示的指令的实现方式。
在一种可能的实现方式中,依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件,包括:将方向设置请求中应用程序指定的显示方向修改为应用程序界面的当前显示方向;根据修改后的方向设置请求,在窗口全屏显示多媒体文件。从而提供了一种依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件的实现方式。
第二方面,本申请实施例提供一种电子设备,包括:
显示屏;一个或多个处理器;存储器;以及一个或多个计算机程序,其中一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令,当指令被设备执行时,使得设备执行以下步骤:应用程序界面上非全屏显示一多媒体文件;检测到对多媒体文件进行全屏显示的指令,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;预设区间是包含1的区间;如果窗口为纵横比处于预设区间的图形,依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件;应用程序界面的当前显示方向包括:检测到对多媒体文件进行全屏显示的指令时,应用程序界面的显示方向。
在一种可能的实现方式中,指令被设备执行时,使得设备执行判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:获取窗口的纵横比;判断纵横比是否处于预设区间,预设区间为[0.75,4/3]。
在一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,显示屏不分屏显示,指令被设备执行时,使得设备执行判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:判断窗口使用的屏幕;如果窗口使用的屏幕是一个子屏,判断窗口为纵横比处于预设区间的图形;如果窗口使用的屏幕是完整屏,判断窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为纵横比不处于预设区间的图形,显示屏不分屏显示,指令被设备执行时,使得设备执行判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:判断窗口使用的屏幕;如果窗口使用的屏幕是完整屏,判断窗口为纵横比处于预设区间的图形;如果窗口使用的屏幕是一个子屏,判断窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,显示屏不分屏显示;指令被设备执行时,使得设备执行判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:判断显示屏的开合状态;如果显示屏的开合状态为折叠状态,判断窗口为纵横比处于预设区间的图形;如果显示屏的开合状态为展开状态,判断窗口为纵横比不处于预设区间的图形;如果显示屏的开合状态为开合变化状态,判断显示屏的开合变化状态的变化方向;如果变化方向为展开状态变为折叠状态,判断窗口为纵横比处于预设区间的图形;如果变化方向为折叠状态变为展开状态,判断窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为非纵横比处于预设区间的图形,显示屏不分屏显示;指令被设备执行时,使得设备执行判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:判断显示屏的开合状态;如果显示屏的开合状态为展开状态,判断窗口为纵横比处于预设区间的图形;如果显示屏的开合状态为折叠状态,判断窗口为纵横比不处于预设区间的图形;如果显示屏的开合状态为开合变化状态,判断显示屏的开合变化状态的变化方向;如果变化方向为折叠状态变为展开状态,判断窗口为纵横比处于预设区间的图形;如果变化方向为展开状态变为折叠状态,判断窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,指令被设备执行时,使得设备执行在窗口全屏显示多媒体文件之后,还执行以下步骤:检测到显示屏的开合状态发生变化,根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于 预设区间的图形;如果显示多媒体文件的窗口为纵横比处于预设区间的图形,依照多媒体文件的当前显示方向,在显示多媒体文件的窗口全屏显示多媒体文件;多媒体文件的当前显示方向包括:检测到显示屏的开合状态发生变化时,多媒体文件的显示方向。
在一种可能的实现方式中,显示屏展开状态时的完整屏为纵横比不处于预设区间的图形,折叠状态时的子屏为纵横比处于预设区间的图形,显示屏不分屏显示;指令被设备执行时,使得设备执行根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形的步骤包括:判断显示屏的开合状态的变化方向;如果变化方向为展开状态变为折叠状态,判断显示多媒体文件的窗口为纵横比处于预设区间的图形;如果变化方向为折叠状态变为展开状态,判断显示多媒体文件的窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,显示屏展开状态时的完整屏为纵横比处于预设区间的图形,折叠状态时的子屏为纵横比不处于预设区间的图形,显示屏不分屏显示;指令被设备执行时,使得设备执行根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形的步骤包括:判断显示屏的开合状态的变化方向;如果变化方向为折叠状态变为展开状态,判断显示多媒体文件的窗口为纵横比处于预设区间的图形;如果变化方向为展开状态变为折叠状态,判断显示多媒体文件的窗口为纵横比不处于预设区间的图形。
在一种可能的实现方式中,指令被设备执行时,使得设备执行检测到对多媒体文件进行全屏显示的指令的步骤包括:接收到应用程序界面所属应用程序发送的方向设置请求,方向设置请求由应用程序在检测到对多媒体文件进行全屏显示的指令时发送,方向设置请求中携带应用程序为应用程序界面指定的显示方向。
在一种可能的实现方式中,指令被设备执行时,使得设备执行依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件的步骤包括:将方向设置请求中应用程序指定的显示方向修改为应用程序界面的当前显示方向;根据修改后的方向设置请求,在窗口全屏显示多媒体文件。
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面的方法。
第四方面,本申请提供一种计算机程序,当计算机程序被计算机执行时,用于执行第一方面的方法。
在一种可能的设计中,第四方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1A为现有技术长方形屏幕的电子设备全屏显示示例图;
图1B为方屏的电子设备全屏显示示例图;
图2A为本申请实施例显示屏为折叠屏的电子设备状态示例图;
图2B为本申请实施例分屏的示例图;
图2C为本申请实施例窗口的高、宽示例图;
图2D为不规则图形的可能实现形状示例图;
图3A为本申请全屏显示方法一个实施例的流程图;
图3B为本申请实施例用户点击全屏按钮启动应用程序界面全屏的示例图;
图3C为本申请实施例用户旋转电子设备启动应用程序界面全屏的示例图;
图3D为本申请实施例多媒体文件的全屏显示方法示例图;
图3E为本申请实施例游戏界面的全屏显示方法示例图;
图4A为本申请全屏显示方法另一个实施例的流程图;
图4B为折叠屏场景下全屏显示方法的示例图;
图4C为分屏显示场景下全屏显示方法的示例图;
图5A为本申请全屏显示方法再一个实施例的流程图;
图5B为一种显示屏结构和形状示意图;
图5C为本申请全屏显示方法一个示例图;
图6为本申请全屏显示方法又一个实施例的流程图;
图7A为本申请全屏显示方法又一个实施例的流程图;
图7B为本申请全屏显示方法的又一个示例图;
图8A为本申请全屏显示方法又一个实施例的流程图;
图8B为另一种显示屏结构和形状示意图;
图8C为本申请全屏显示方法又一个示例图;
图9为本申请全屏显示方法又一个实施例的流程图;
图10A为本申请全屏显示方法又一个实施例的流程图;
图10B为本申请全屏显示方法的又一个示例图;
图11A为本申请全屏显示方法又一个实施例的流程图;
图11B为本申请全屏显示方法在安卓系统下一种可能的实现方法示例图;
图12为本申请全屏显示装置一个实施例的结构示意图;
图13为本申请电子设备一个实施例的结构示意图。
具体实施方式
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
现有的实现方案中,参见图1A所示,如果用户希望通过全屏获取更好的沉浸式体验,电子设备中的操作系统将应用程序界面从竖屏显示切换至横屏显示,用户旋转电子设备,实现全屏的沉浸式体验。但是,随着分屏等技术的发展以及折叠屏的出现,这种应用程序界面全屏显示的方式并不能完全适应新出现的各种需要全屏显示的场 景。
例如,随着折叠屏的出现,电子设备的显示屏不再是单一的长方形屏幕,而是出现了类似于正方形的屏幕,也可以称为方形屏幕。参见图1B所示,当用户想点击按钮使视频或游戏等进入全屏的沉浸式体验时,画面被旋转,用户旋转电子设备进行观看。然而和普通长方形屏幕的电子设备不同的是,因为方形屏幕的特殊性,旋转屏幕与否,原有的视频或游戏的画面可视区间并没有明显增大,用户会发现旋转画面与电子设备,是一种多余的、“吃力不讨好”的操作。
为此,本申请实施例提供一种全屏显示方法、装置和电子设备,能够在各种场景下为用户提供更好的应用程序界面全屏显示方式,为用户提供便利、友好、一致的全屏显示体验。
以下,首先对本申请实施例中出现的名词进行示例性说明。
对于显示屏是折叠屏的电子设备,本申请实施例中将显示屏处于展开状态时的屏幕称为完整屏,组成完整屏的每一个独立的屏幕称为显示屏的子屏。电子设备基于显示屏的折叠形态可以包括:展开状态、不完全折叠状态、以及完全折叠状态三种状态。如图2A所示,电子设备的显示屏包括2个子屏,分别为位于虚线两侧的子屏1和子屏2,当电子设备处于图2A中21部分所示的展开状态,2个子屏组成一个完整屏;图2A中22部分所示,电子设备处于不完全折叠状态,图2A中23部分所示,电子设备处于完全折叠状态。其中,不完全折叠状态和完全折叠状态可以统称为折叠状态。
本申请实施例中的应用程序界面是应用程序与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序界面常用的表现形式是图形用户界面(graphic user interface,以下简称GUI),是指采用图形方式显示的与计算机操作相关的用户界面。应用程序界面可以由图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、微件(widget)等可视的界面元素组成。
本申请实施例中显示应用程序界面的窗口可以认为是电子设备的显示屏上显示应用程序界面的区域。
对于显示屏不是折叠屏的电子设备:在不分屏的情况下,显示应用程序界面的窗口可以是显示屏的整个显示区域;在分屏的情况下,显示应用程序界面的窗口可以是显示屏的部分显示区域;
对于显示屏是折叠屏的电子设备,在不分屏的情况下,显示应用程序界面的窗口可以是完整屏的整个显示区域或者子屏的整个显示区域;在分屏的情况下,显示应用程序界面的窗口可以是完整屏的部分显示区域、或者子屏的部分显示区域。
本申请实施例中的分屏是指将显示屏的显示区域划分为至少2个子区域,每个子区域可以作为窗口显示应用程序界面,子区域的大小可以调节,不同的子区域可以显示相同或不同的应用程序界面,如图2B所示,将电子设备的显示屏上的显示区域从虚线所示部位划分为2个子区域,分别作为窗口显示相同的应用程序界面。对于显示屏是折叠屏的电子设备,在分屏时,被分屏的显示区域可以是完整屏或者一个子屏,具体可参考上述描述以及关于图2B的举例,这里不赘述。
本申请实施例中窗口的纵横比是指:窗口的高/窗口的宽。但是窗口的高和宽与 具体的设定规则有关。例如,在一种可能的实现方式中,可以设定窗口的高和宽与应用程序界面的显示方向相关,举例来说,在图2C的两幅图中,显示应用程序界面的窗口均是显示屏的整个显示区域,但是,图2C的左图中显示应用程序界面的窗口的高和宽、与右图中显示应用程序界面的窗口的高和宽正好相反,两个窗口的纵横比互为倒数,在本申请后续全屏显示方法的实施例中,以这种窗口的高宽设定规则得到的窗口的纵横比为例进行说明;在另一种可能的实现方式中,窗口的高和宽也可以不与应用程序界面的显示方向相关,使得同一窗口的纵横比保持不变,例如图2C中可以不管应用程序界面的显示方向为左图或右图所示,始终设定窗口的纵横比为图2C中左图所示的高/宽。
本申请实施例中的纵横比处于预设区间的图形包括正方形、以及形状和正方形近似的图形。预设区间的设定原则是:纵横比在预设区间内的窗口,在对应用程序界面横向全屏显示和竖向全屏显示时,用户的观看体验相差较小。可选地,上述预设区间可以为包含1的区间,且预设区间的上边界和下边界接近于1,例如预设区间可以为[6/8,8/6],也即[0.75,4/3],以上以闭区间为例,预设区间的上下边界也可以为开区间。形状和正方形近似的图形可以是规则的图形或不规则的图形。形状和正方形近似的规则图形可以包括:高宽比处于预设区间的矩形等。参见图2D中实线部分所示,给出了形状和正方形近似的不规则图形的举例。对于图形24,该图形的长宽比例为7:6,且4个角均为弧形;对于图形25,该图形的长宽比例为6:6或6:5;对于图形26,该图形的长宽比例为7:6,但是一个角缺失;对于图形27,该图形的长宽比例为7:6,但是一个边的形状出现了缺失。图2D所示的图形举例仅为示例,并不用以限定本申请中的形状和正方形近似的图形,本领域技术人员可以预见更多的形状和正方形近似的图形,例如,每个举例中可以有不同的接近于1的长宽比例,图形24的形状为弧形的角的数量可以不同,图形26和图形27发生缺失的角或边的个数可以不同,缺失的形状可以变化等等,这里不再赘述。
以下对本申请实施例全屏显示方法进行示例性说明。
图3A为本申请全屏显示方法一个实施例的流程图,如图3A所示,该方法可以包括:
步骤301:检测到对应用程序界面进行全屏显示的指令时,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;预设区间是包含1的区间;如果窗口为纵横比处于预设区间的图形,执行步骤302,如果窗口为纵横比不处于预设区间的图形,执行步骤303。
其中,检测到对应用程序界面进行全屏显示的指令的场景包括但不限于:
获取到针对应用程序界面的全屏指令,例如用户通过点击应用程序界面上的全屏按钮、或者在应用程序界面上进行预设手势操作向应用程序下达全屏指令,或者,应用程序在运行中触发了自身携带的全屏指令;例如,对于视频、图片等多媒体文件的播放而言,一般可以由用户点击全屏按钮(参见图3B所示)、或者旋转电子设备(参见图3C所示)来下达多媒体文件全屏播放的指令;对于手游而言,游戏的启动项中一般包括对于游戏界面的全屏指令,因此,应用程序也即手游在启动时就可 以从启动项中获取到全屏指令;或者,
应用程序界面已经全屏显示,但是检测到全屏显示应用程序界面的窗口发生变化,需要在变化后的窗口继续全屏显示应用程序界面,窗口发生变化的原因可以包括但不限于:显示屏的开合状态变化、显示屏分屏显示等原因导致的,显示应用程序界面的窗口在方向、形状、大小等方面发生变化。
步骤302:依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
其中,应用程序界面的当前显示方向是指:检测到对应用程序界面进行全屏显示的指令时,应用程序界面的显示方向。
步骤303:依照应用程序指定的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
图3所示的方法,在显示应用程序界面的窗口为纵横比处于预设区间的图形时,依照应用程序界面的当前显示方向全屏显示应用程序界面,无需用户进行电子设备的旋转,在显示应用程序界面的窗口为纵横比处于预设区间的图形的场景下为用户提供更好的全屏显示方式,提升用户的全屏体验。
基于图3A所示实施例说明多媒体文件的全屏显示方法,参见图3D左上方图和右上方图,电子设备的应用程序界面上非全屏显示一多媒体文件,图3D中以多媒体文件为视频为例;如果用户在多媒体文件观看的过程中点击了全屏按钮,相应的,电子设备检测到针对于多媒体文件的全屏指令(也即检测到对应用程序界面进行全屏显示的指令),判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;
如果判断结果是窗口为纵横比处于预设区间的图形,相应的,参见右下方图所示,无需旋转多媒体文件(图3D中为视频)的方向,依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件(图3D中为视频)。
如果判断结果是窗口为纵横比不处于预设区间的图形,相应的,参见左下方图所示,依照应用程序指定的显示方向,旋转应用程序界面的方向后在窗口全屏显示多媒体文件。
基于图3A所示实施例说明游戏全屏显示方法,参见图3E所示左上方图和右上方图,用户点击游戏类应用程序的图标启动游戏,应用程序在启动时从启动项中获取到游戏界面的全屏指令,相应的,电子设备检测到针对于应用程序界面的全屏指令(也即检测到对应用程序界面进行全屏显示的指令),判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;
如果判断结果是窗口为纵横比处于预设区间的图形,相应的,参见右下方图所示,无需旋转游戏界面的方向,依照游戏界面的当前显示方向,在窗口全屏显示游戏界面;
如果判断结果是窗口为纵横比不处于预设区间的图形,相应的,参见左下方图所示,依照游戏程序指定的显示方向,旋转游戏界面的方向后在窗口全屏显示游戏界面。
图4A为本申请全屏显示方法另一个实施例的流程图,图4A中提供了判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形的一种可能的实现方式中。如图4A所示,该方法可以包括:
步骤401:检测到对应用程序界面进行全屏显示的指令时,获取显示应用程序界面的窗口的纵横比。
在实际应用中,可以分别获取窗口的高、宽值,通过高/宽的计算得到窗口的纵横比;或者,如果预先设置了窗口纵横比的参数,可以通过获取该参数得到窗口的纵横比。
步骤402:判断纵横比是否处于预设区间,如果处于所述预设区间,执行步骤403;如果不处于所述预设区间,执行步骤404。
其中,预设区间的设置可以参考前述相关描述,这里不赘述。
步骤403:依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
步骤404:依照应用程序指定的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
图4A所示的方法,根据窗口的纵横比来确定窗口是否是纵横比处于预设区间的图形,与电子设备中显示屏的各种存在状态均没有关系,例如显示屏可以是折叠屏或非折叠屏,如果显示屏是折叠屏,显示屏可以处于折叠状态、展开状态、或者折叠状态与展开状态之间的变化状态,显示屏可以处于分屏显示状态也可以处于未分屏显示状态等等。
图4A所示的方法,通过判断窗口的纵横比是否处于预设区间实现了对于窗口是否为纵横比处于预设区间的图形的判断。
基于图4A的实施例,以显示屏为长方形的折叠屏且不分屏为例,参见图4B所示,说明了在显示屏折叠前后窗口纵横比变化与全屏显示方向之间的关系图。例如如右图,R0是显示屏折叠前的窗口纵横比,R1是显示屏折叠后的窗口纵横比。如果R1落在预设区间内,则依照所述应用程序界面的当前显示方向,无需旋转应用程序界面的显示方向;如果R1落在了预设区间外,则依照应用程序指定的显示方向,一般需要旋转应用程序界面的显示方向。
参见图4C,以显示屏处于分屏显示状态为例对图4A所示实施例进行对比说明。在图4C左边的上下两幅图中,显示屏可以为折叠屏或非折叠屏,如果显示屏为折叠屏,显示屏可以处于展开状态也可以处于折叠状态,关键在于:显示屏上的每个分屏窗口为纵横比处于预设区间的图形;在图4C右边的上下两幅图中,显示屏可以为折叠屏或非折叠屏,如果显示屏为折叠屏,显示屏可以处于展开状态也可以处于折叠状态,关键在于:显示屏上的每个分屏窗口为纵横比不处于预设区间的图形。
在左上角的图中正在左边的分屏窗口播放多媒体文件(图中以视频为例),如果用户点击应用程序界面上的全屏按钮下达全屏指令,判断分屏窗口的纵横比是否处于预设区间,由于分屏窗口为纵横比处于预设区间的图形,则判断结果为纵横比处于预设区间,因此,在左下角的图中,依照应用程序界面的当前显示方向全屏显示 多媒体文件;
在右上角的图中正在左边的分屏窗口播放多媒体文件(图中以视频为例),如果用户点击应用程序界面上的全屏按钮下达全屏指令,判断分屏窗口的纵横比是否处于预设区间,由于分屏窗口为纵横比不处于预设区间的图形,则判断结果为纵横比不处于预设区间,因此,在右下角的图中,依照应用程序指定的显示方向,旋转多媒体文件的方向后全屏显示多媒体文件。
在实际应用中,如果显示屏不分屏显示,那么一般显示应用程序界面的窗口与窗口所属屏幕的完整显示区域是重合的,也即显示应用程序界面的窗口是窗口所属屏幕的完整显示区域,在已知屏幕形状和尺寸的情况下,无需获取窗口的纵横比,只要知道屏幕是否是纵横比处于预设区间的图形,就可以实现窗口是否是纵横比处于预设区间的图形的判断。如果显示屏不是折叠屏,这里的屏幕是指显示屏;如果显示屏是折叠屏,这里的屏幕可以是显示屏的完整屏或者一个子屏。依据该原理,本申请还提供了图5A~图10A所示的实施例。以下一一说明。
图5A为本申请全屏显示方法又一个实施例的流程图。
该实施例中,显示屏为折叠屏,且显示屏不分屏显示;折叠状态时子屏为纵横比处于预设区间的图形,展开状态时完整屏为纵横比不处于预设区间的图形。参见图5B所示,给出了显示屏包括2个子屏时,显示屏完全折叠状态和展开状态的示例图。
如图5A所示,该方法可以包括:
步骤501:检测到对应用程序界面进行全屏显示的指令时,判断显示应用程序界面的窗口所使用的屏幕;如果使用的屏幕是一个子屏,执行步骤502;如果使用的屏幕是完整屏,执行步骤503。
步骤502:依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
步骤503:依照应用程序指定的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
在一种可能的实现方式中,如果本实施例中的显示屏分屏显示,且显示屏按照每个子屏作为一个分屏进行分屏显示,那么显示应用程序界面的是一个子屏,子屏为纵横比处于预设区间的图形,此时,检测到对应用程序界面进行全屏显示的指令时,所述判断显示应用程序界面的窗口所使用的屏幕的步骤之前,还可以包括:判断显示屏是否进行分屏显示,如果未分屏显示,执行所述判断显示应用程序界面的窗口所使用的屏幕的步骤,如果分屏显示,执行步骤502。
参见图5C,为图5A所示实施例的示例图;在左上方的图中,用户在子屏进行视频观看时点击全屏按钮,依照图5A中的方法,判断使用的屏幕是一个子屏,相应的,参见左下方图所示,依照视频播放程序界面的当前显示方向在子屏全屏显示视频;
在右上方的图中,用户在完整屏进行视频观看时点击全屏按钮,依照图5A中的方法,判断使用的屏幕是完整屏,相应的,参见右下方图所示,旋转视频播放程序界面的方向后在完整屏全屏显示视频。
图6为本申请全屏显示方法又一个实施例的流程图。
该实施例中,显示屏为折叠屏,且显示屏不分屏显示;折叠状态时子屏为纵横比处于预设区间的图形,展开状态时完整屏为纵横比不处于预设区间的图形。显示屏的示例可以参见图5B,这里不赘述。
由于显示屏不分屏显示,所以折叠状态时,显示屏中的一个子屏显示应用程序界面,展开状态时完整屏显示应用程序界面,从折叠状态变为展开状态时完整屏显示应用程序界面,从展开状态变为折叠状态时一个子屏显示应用程序界面,这里的折叠状态可以为不完全折叠状态也可以为完全折叠状态。在实际应用中,具体哪个子屏显示应用程序界面本申请并不限制。
此时,如图6所示,该方法可以包括:
步骤601:检测到对应用程序界面进行全屏显示的指令时,判断显示屏的开合状态;如果显示屏的开合状态为折叠状态,执行步骤603;如果显示屏的开合状态为展开状态,执行步骤604;如果显示屏的开合状态为开合变化状态,执行步骤602;
步骤602:判断显示屏的开合状态的变化方向,如果变化方向为展开状态变为折叠状态,执行步骤603,如果变化方向为折叠状态变为展开状态,执行步骤604。
步骤603:依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
步骤604:依照应用程序指定的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
在一种可能的实现方式中,如果本实施例中的显示屏分屏显示,且显示屏按照每个子屏作为一个分屏进行分屏显示,那么显示应用程序界面的是一个子屏,子屏为纵横比处于预设区间的图形,此时,检测到针对应用程序界面的全屏指令时,所述判断显示屏的开合状态的步骤之前,还可以包括:判断显示屏是否进行分屏显示,如果未分屏显示,执行所述判断显示屏的开合状态的步骤,如果分屏显示,执行步骤603。
图6的示例可以参考图5B和图7B,这里不再赘述。
图7A为本申请全屏显示方法又一个实施例的流程图。
该实施例中,所述显示屏为折叠屏,且显示屏不分屏显示;展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形。显示屏的示例可以参见图5B,这里不赘述。
由于显示屏不分屏显示,所以从折叠状态变为展开状态时,显示应用程序界面的屏幕从子屏变化为完整屏,从展开状态变为折叠状态时,显示应用程序界面的屏幕从完整屏变为一个子屏,这里的折叠状态可以为不完全折叠状态也可以为完全折 叠状态。在实际应用中,具体哪个子屏显示应用程序界面本申请并不限制。
此时,如图7A所示,该方法可以包括:
步骤701:检测到显示屏的开合状态开始发生变化时,判断所述显示屏的开合状态的变化方向;如果变化方向为展开状态变为折叠状态,执行步骤702,如果变化方向为折叠状态变为展开状态,执行步骤703。
步骤702:依照所述应用程序界面的当前显示方向,在所述窗口全屏显示所述应用程序界面,本分支流程结束。
步骤703:依照应用程序指定的显示方向,在所述窗口全屏显示所述应用程序界面,本分支流程结束。
在一种可能的实现方式中,如果本实施例中的显示屏分屏显示,且显示屏按照每个子屏作为一个分屏进行分屏显示,那么显示应用程序界面的是一个子屏,子屏为纵横比处于预设区间的图形,此时,检测到显示屏的开合状态开始发生变化时,所述判断显示屏的开合状态的变化方向的步骤之前,还可以包括:判断显示屏是否进行分屏显示,如果未分屏显示,执行所述判断显示屏的开合状态的变化方向的步骤,如果分屏显示,执行步骤702。
参见图7B,在左上方的图中,用户正在完整屏上全屏观看视频,依照图7A所示的方法,如果此时折叠显示屏,则判断变化方向为展开状态变为折叠状态,相应的,参见左下方图所示,依照视频播放程序界面的当前显示方向在子屏全屏显示视频;
在右上方的图中,用户正在完整屏上全屏观看视频,依照图7A所示的方法,如果此时折叠显示屏,则判断变化方向为展开状态变为折叠状态,相应的,参见右下方图所示,旋转视频播放程序界面的方向后在子屏全屏显示视频。
图8A为本申请全屏显示方法又一个实施例的流程图。
该实施例中,显示屏为折叠屏,且显示屏不分屏显示;展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为纵横比不处于预设区间的图形。参见图8B所示,给出了显示屏包括2个子屏时,显示屏折叠状态和展开状态的示例图,这里的折叠状态可以为不完全折叠状态也可以为完全折叠状态。
如图8A所示,该方法可以包括:
步骤801:检测到对应用程序界面进行全屏显示的指令时,判断显示应用程序界面的窗口所使用的屏幕;如果使用的屏幕是完整屏,执行步骤802;如果使用的屏幕是一个子屏,执行步骤803。
步骤802:依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
步骤803:依照应用程序指定的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
在一种可能的实现方式中,如果本实施例中的显示屏分屏显示,且显示屏按照每个子屏作为一个分屏进行分屏显示,那么显示应用程序界面的是一个子屏,子屏 为纵横比不处于预设区间的图形,此时,检测到对应用程序界面进行全屏显示的指令时,所述判断显示应用程序界面的窗口所使用的屏幕的步骤之前,还可以包括:判断显示屏是否进行分屏显示,如果未分屏显示,执行所述判断显示应用程序界面的窗口所使用的屏幕的步骤,如果分屏显示,执行步骤803。
参见图8C,为图8A所示实施例的示例图;在左上方的图中,用户在子屏进行视频观看时点击全屏按钮,依照图8A中的方法,判断使用的屏幕是一个子屏,相应的,参见左下方图所示,旋转视频播放程序界面的方向后在子屏全屏显示视频;
在右上方的图中,用户在完整屏进行视频观看时点击全屏按钮,依照图8A中的方法,判断使用的屏幕是完整屏,相应的,参见右下方图所示,依照视频播放程序界面的当前显示方向在子屏全屏显示视频。
图9为本申请全屏显示方法又一个实施例的流程图。
该实施例中,显示屏为折叠屏,且显示屏不分屏显示;折叠状态时子屏为纵横比不处于预设区间的图形,展开状态时完整屏为纵横比处于预设区间的图形,这里的折叠状态可以为不完全折叠状态也可以为完全折叠状态。显示屏的示例可以参见图8B,这里不赘述。
由于显示屏不分屏显示,所以折叠状态时,显示屏中的一个子屏显示应用程序界面,展开状态时完整屏显示应用程序界面,从折叠状态变为展开状态时完整屏显示应用程序界面,从展开状态变为折叠状态时一个子屏显示应用程序界面。在实际应用中,具体哪个子屏显示应用程序界面本申请并不限制。
此时,如图9所示,该方法可以包括:
步骤901:检测到针对应用程序界面的全屏指令时,判断显示屏的开合状态;如果所述显示屏的开合状态为展开状态,执行步骤903;如果所述显示屏的开合状态为折叠状态,执行步骤904;如果所述显示屏的开合状态为开合变化状态,执行步骤902;
步骤902:判断所述显示屏的开合状态的变化方向,如果变化方向为折叠状态变为展开状态,执行步骤903,如果变化方向为展开状态变为折叠状态,执行步骤904。
步骤903:依照所述应用程序界面的当前显示方向,在所述窗口全屏显示所述应用程序界面,本分支流程结束。
步骤904:依照应用程序指定的显示方向,在所述窗口全屏显示所述应用程序界面,本分支流程结束。
在一种可能的实现方式中,如果本实施例中的显示屏分屏显示,且显示屏按照每个子屏作为一个分屏进行分屏显示,那么显示应用程序界面的是一个子屏,子屏为纵横比不处于预设区间的图形,此时,检测到针对应用程序界面的全屏指令时,所述判断显示屏的开合状态的步骤之前,还可以包括:判断显示屏是否进行分屏显示,如果未分屏显示,执行所述判断显示屏的开合状态的步骤,如果分屏显示,执行步骤904。
图9的示例可以参考图8C和图10B,这里不再另外赘述。
图10A为本申请全屏显示方法又一个实施例的流程图。
该实施例中,显示屏为折叠屏,且显示屏不分屏显示;折叠状态时子屏为纵横比不处于预设区间的图形,展开状态时完整屏为纵横比处于预设区间的图形,这里的折叠状态可以为不完全折叠状态也可以为完全折叠状态。显示屏的示例可以参见图8B,这里不赘述。
由于显示屏不分屏显示,所以从折叠状态变为展开状态时,显示应用程序界面的屏幕从子屏变化为完整屏,从展开状态变为折叠状态时,显示应用程序界面的屏幕从完整屏变为一个子屏。在实际应用中,具体哪个子屏显示应用程序界面本申请并不限制。
此时,如图10A所示,该方法可以包括:
步骤1001:检测到显示屏的开合状态开始发生变化时,判断显示屏的开合状态的变化方向;如果变化方向为折叠状态变为展开状态,执行步骤1002,如果变化方向为展开状态变为折叠状态,执行步骤1003。
步骤1002:依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
步骤1003:依照应用程序指定的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
在一种可能的实现方式中,如果应用程序为视频播放程序,如果变化方向为展开状态变为折叠状态,应用程序的全屏显示内容可能会发生变化,例如从全屏窗口退回到详情页,这里并不限定。
在一种可能的实现方式中,如果本实施例中的显示屏分屏显示,且显示屏按照每个子屏作为一个分屏进行分屏显示,那么显示应用程序界面的是一个子屏,子屏为纵横比不处于预设区间的图形,此时,检测到显示屏的开合状态开始发生变化时,所述判断显示屏的开合状态的变化方向的步骤之前,还可以包括:判断显示屏是否进行分屏显示,如果未分屏显示,执行所述判断显示屏的开合状态的变化方向的步骤,如果分屏显示,执行步骤1003。
参见图10B,在左上方的图中,用户正在子屏上全屏观看视频,依照图10A所示的方法,如果此时展开显示屏,则判断变化方向为折叠状态变为展开状态,相应的,参见左下方图所示,依照视频播放程序界面的当前显示方向在完整屏全屏显示视频;
在右上方的图中,用户正在完整屏上全屏观看视频,依照图10A所示的方法,如果此时折叠显示屏,则判断变化方向为展开状态变为折叠状态,相应的,参见右下方图所示,旋转视频播放程序界面的方向后在子屏全屏显示视频。
在上述图5A~图10A的实施例中,以折叠屏包括2个子屏为例进行了说明,本领域技术人员可以据此将本申请实施例扩展到折叠屏包括2个以上子屏的场景下,原则在于:在显示应用程序界面的窗口为该窗口所在屏幕的完整显示区域时,可以 根据窗口所在的屏幕的形状来确定窗口的形状。这里不再对实施例一一列举。
在一种可能的实现方式中,可以由电子设备的系统例如安卓(Android)系统来执行窗口是否为纵横比处于预设区间的图形的判断以及应用程序界面的全屏显示。此时,参见图11A所示的实现方式,该方法可以包括:
步骤1101:应用程序检测到对应用程序界面进行全屏显示的指令时,应用程序向系统发送方向设置请求。
应用程序检测到对应用程序界面进行全屏显示的指令的具体实现可以参考步骤301中的描述,这里不赘述。
在一种可能的实现方式中,以系统为安卓(Android)系统为例,应用程序向系统发送方向设置请求可以包括:应用程序向系统发送setRequestedOrientation。
由于现有技术中为长方形屏幕,现有技术中应用程序发送的方向设置请求中包含应用程序界面的显示方向,该显示方向为:横屏或竖屏。具体的,如果应用程序向系统发送setRequestOrientation,其参数可以为:LANDSCAPE或PORTRAIT;例如,setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)表示竖屏,setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)表示横屏。应用程序如何确定方向设置请求中的显示方向本申请并不限制。
步骤1102:系统接收所述请求,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,如果为纵横比处于预设区间的图形,执行步骤1103,如果不为纵横比处于预设区间的图形,执行步骤1104。
本步骤中如何判断窗口是否为纵横比处于预设区间的图形可以参考图4~图10中说明的各种判断方法,这里不再赘述。
步骤1103:系统依照应用程序界面的当前显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
本步骤中,系统可以将应用程序向系统发送的setRequestedOrientation的参数配置修改为:BEHIND,表示应用程序界面的显示方向跟随应用程序界面的当前显示方向,不需要旋转方向,例如,setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_BEHIND)。
例如,对于以下代码,可以将“landscape”或“portrait”替换为“behind”。
<activity
android:configChanges=”…”
android:name=”.VideoPlayerActivity”
android:screenOrientation=”landscape”/>
或者
<activity
android:configChanges=”…”
android:name=”.VideoDetailActivity”
android:screenOrientation=”portrait”/>
例如,对于以下代码,可以将“LANDSCAPE”或“PORTRAIT”替换为“BEHIND”。
Figure PCTCN2021083860-appb-000001
步骤1104:系统依照方向设置请求中请求的显示方向,在所述窗口全屏显示应用程序界面,本分支流程结束。
本步骤中,参照步骤503中的实现方式,系统可以不修改setRequestedOrientation的参数,从而根据setRequestedOrientation中的参数LANDSCAPE或PORTRAIT,在窗口全屏显示应用程序界面。
举例来说,参见图11B,可以在安卓系统侧增加图形决策模块,接收到应用程序关于界面全屏的方向设置请求时,图形决策模块按照预设判定标准判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形,根据判定结果修改方向设置请求中的显示方向或者保持方向设置请求中的显示方向,之后由安卓系统架构继续进行后续的全屏显示处理,并控制显示驱动进行应用程序界面的全屏显示。
图11A所示的方法在图3A所示方法的基础上,提供了一种系统判断窗口是否为纵横比处于预设区间的图形的方法,仅在系统侧进行改进,应用程序侧无需做任何修改。
可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。
图12为本申请全屏显示装置一个实施例的结构示意图,如图12所示,全屏显示装置120可以包括:
显示单元121,用于在应用程序界面上非全屏显示一多媒体文件;
判断单元122,用于检测到对多媒体文件进行全屏显示的指令,判断显示应用程序界面的窗口是否为纵横比处于预设区间的图形;预设区间是包含1的区间;
显示单元121还可以用于:如果窗口为纵横比处于预设区间的图形,依照应用程序界面的当前显示方向,在窗口全屏显示多媒体文件;应用程序界面的当前显示方向包括:检测到对多媒体文件进行全屏显示的指令时,应用程序界面的显示方向。
其中,判断单元122具体可以用于:获取窗口的纵横比;判断纵横比是否处于 预设区间,预设区间为[0.75,4/3]。
其中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,显示屏不分屏显示,判断单元122具体可以用于:判断窗口使用的屏幕;如果窗口使用的屏幕是一个子屏,判断窗口为纵横比处于预设区间的图形;如果窗口使用的屏幕是完整屏,判断窗口为纵横比不处于预设区间的图形。
其中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为纵横比不处于预设区间的图形,显示屏不分屏显示,判断单元122具体可以用于:判断窗口使用的屏幕;如果窗口使用的屏幕是完整屏,判断窗口为纵横比处于预设区间的图形;如果窗口使用的屏幕是一个子屏,判断窗口为纵横比不处于预设区间的图形。
其中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,显示屏不分屏显示;判断单元122具体可以用于:判断显示屏的开合状态;如果显示屏的开合状态为折叠状态,判断窗口为纵横比处于预设区间的图形;如果显示屏的开合状态为展开状态,判断窗口为纵横比不处于预设区间的图形;如果显示屏的开合状态为开合变化状态,判断显示屏的开合变化状态的变化方向;如果变化方向为展开状态变为折叠状态,判断窗口为纵横比处于预设区间的图形;如果变化方向为折叠状态变为展开状态,判断窗口为纵横比不处于预设区间的图形。
其中,显示应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为非纵横比处于预设区间的图形,显示屏不分屏显示;判断单元122具体可以用于:判断显示屏的开合状态;如果显示屏的开合状态为展开状态,判断窗口为纵横比处于预设区间的图形;如果显示屏的开合状态为折叠状态,判断窗口为纵横比不处于预设区间的图形;如果显示屏的开合状态为开合变化状态,判断显示屏的开合变化状态的变化方向;如果变化方向为折叠状态变为展开状态,判断窗口为纵横比处于预设区间的图形;如果变化方向为展开状态变为折叠状态,判断窗口为纵横比不处于预设区间的图形。
其中,判断单元122还可以用于:检测到显示屏的开合状态发生变化,根据开合状态的变化方向判断开合状态发生变化后显示多媒体文件的窗口是否为纵横比处于预设区间的图形;如果显示多媒体文件的窗口为纵横比处于预设区间的图形,依照多媒体文件的当前显示方向,在显示多媒体文件的窗口全屏显示多媒体文件;多媒体文件的当前显示方向包括:检测到显示屏的开合状态发生变化时,多媒体文件的显示方向。
其中,显示屏展开状态时的完整屏为纵横比不处于预设区间的图形,折叠状态时的子屏为纵横比处于预设区间的图形,显示屏不分屏显示;判断单元122具体可以用于:判断显示屏的开合状态的变化方向;如果变化方向为展开状态变为折叠状态,判断显示多媒体文件的窗口为纵横比处于预设区间的图形;如果变化方向为折叠状态变为展开状态,判断显示多媒体文件的窗口为纵横比不处于预设区间的图形。
其中,显示屏展开状态时的完整屏为纵横比处于预设区间的图形,折叠状态时的子屏为纵横比不处于预设区间的图形,显示屏不分屏显示;判断单元122具体可以用于:判断显示屏的开合状态的变化方向;如果变化方向为折叠状态变为展开状态,判断显示多媒体文件的窗口为纵横比处于预设区间的图形;如果变化方向为展开状态变为折叠状态,判断显示多媒体文件的窗口为纵横比不处于预设区间的图形。
其中,判断单元122具体可以用于:接收到应用程序界面所属应用程序发送的方向设置请求,方向设置请求由应用程序在检测到对多媒体文件进行全屏显示的指令时发送,方向设置请求中携带应用程序为应用程序界面指定的显示方向。
其中,显示单元121具体可以用于:将方向设置请求中应用程序指定的显示方向修改为应用程序界面的当前显示方向;根据修改后的方向设置请求,在窗口全屏显示多媒体文件。
图12所示实施例提供的全屏显示装置可用于执行本申请图3A~图11A所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
应理解以上图12所示全屏显示装置的各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元通过硬件的形式实现。例如,显示单元可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它单元的实现与之类似。此外这些单元全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些单元可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。
图13为本申请电子设备一个实施例的结构示意图,如图13所示,上述电子设备可以包括:显示屏;一个或多个处理器;存储器;以及一个或多个计算机程序。
其中,上述显示屏可以包括车载计算机(移动数据中心Mobile Data Center)的显示屏;上述电子设备可以为移动终端(手机),智慧屏,无人机,智能网联车(Intelligent Connected Vehicle;以下简称:ICV),智能(汽)车(smart/intelligent car)或车载设备等设备。
其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述设备执行时,使得上述设备执行图3A~图11A所示方法。
图13所示的电子设备可以是终端设备也可以是内置于上述终端设备的电路设备。 该设备可以用于执行本申请图3A~图11A所示实施例提供的方法中的功能/步骤。
电子设备1300可以包括处理器1310,外部存储器接口1320,内部存储器1321,通用串行总线(universal serial bus,USB)接口1330,充电管理模块1340,电源管理模块1341,电池1342,天线1,天线2,移动通信模块1350,无线通信模块1360,音频模块1370,扬声器1370A,受话器1370B,麦克风1370C,耳机接口1370D,传感器模块1380,按键1390,马达1391,指示器1392,摄像头1393,显示屏1394,以及用户标识模块(subscriber identification module,SIM)卡接口1395等。其中传感器模块1380可以包括压力传感器1380A,陀螺仪传感器1380B,气压传感器1380C,磁传感器1380D,加速度传感器1380E,距离传感器1380F,接近光传感器1380G,指纹传感器1380H,温度传感器1380J,触摸传感器1380K,环境光传感器1380L,骨传导传感器1380M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备1300的具体限定。在本申请另一些实施例中,电子设备1300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器1310可以包括一个或多个处理单元,例如:处理器1310可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器1310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器1310中的存储器为高速缓冲存储器。该存储器可以保存处理器1310刚用过或循环使用的指令或数据。如果处理器1310需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器1310的等待时间,因而提高了系统的效率。
在一些实施例中,处理器1310可以包括一个或多个接口。接口可以包括集成电路(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)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器1310可以包含多组I2C总线。处理器1310可以通过不同的I2C总线接口分别耦合触摸传感器1380K, 充电器,闪光灯,摄像头1393等。例如:处理器1310可以通过I2C接口耦合触摸传感器1380K,使处理器1310与触摸传感器1380K通过I2C总线接口通信,实现电子设备1300的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器1310可以包含多组I2S总线。处理器1310可以通过I2S总线与音频模块1370耦合,实现处理器1310与音频模块1370之间的通信。在一些实施例中,音频模块1370可以通过I2S接口向无线通信模块1360传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块1370与无线通信模块1360可以通过PCM总线接口耦合。在一些实施例中,音频模块1370也可以通过PCM接口向无线通信模块1360传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器1310与无线通信模块1360。例如:处理器1310通过UART接口与无线通信模块1360中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块1370可以通过UART接口向无线通信模块1360传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器1310与显示屏1394,摄像头1393等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器1310和摄像头1393通过CSI接口通信,实现电子设备1300的拍摄功能。处理器1310和显示屏1394通过DSI接口通信,实现电子设备1300的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器1310与摄像头1393,显示屏1394,无线通信模块1360,音频模块1370,传感器模块1380等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口1330是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口1330可以用于连接充电器为电子设备1300充电,也可以用于电子设备1300与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备1300的结构限定。在本申请另一些实施例中,电子设备1300也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块1340用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块1340可以通过USB接口1330接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块1340可以通过电子设备1300的无线充电线圈接收无线充电输入。充电管 理模块1340为电池1342充电的同时,还可以通过电源管理模块1341为电子设备供电。
电源管理模块1341用于连接电池1342,充电管理模块1340与处理器1310。电源管理模块1341接收电池1342和/或充电管理模块1340的输入,为处理器1310,内部存储器1321,显示屏1394,摄像头1393,和无线通信模块1360等供电。电源管理模块1341还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块1341也可以设置于处理器1310中。在另一些实施例中,电源管理模块1341和充电管理模块1340也可以设置于同一个器件中。
电子设备1300的无线通信功能可以通过天线1,天线2,移动通信模块1350,无线通信模块1360,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备1300中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块1350可以提供应用在电子设备1300上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块1350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块1350可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块1350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块1350的至少部分功能模块可以被设置于处理器1310中。在一些实施例中,移动通信模块1350的至少部分功能模块可以与处理器1310的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器1370A,受话器1370B等)输出声音信号,或通过显示屏1394显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器1310,与移动通信模块1350或其他功能模块设置在同一个器件中。
无线通信模块1360可以提供应用在电子设备1300上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块1360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块1360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器1310。无线通信模块1360 还可以从处理器1310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备1300的天线1和移动通信模块1350耦合,天线2和无线通信模块1360耦合,使得电子设备1300可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备1300通过GPU,显示屏1394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏1394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器1310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏1394用于显示图像,视频等。显示屏1394包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备1300可以包括1个或N个显示屏1394,N为大于1的正整数。
电子设备1300可以通过ISP,摄像头1393,视频编解码器,GPU,显示屏1394以及应用处理器等实现拍摄功能。
ISP用于处理摄像头1393反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头1393中。
摄像头1393用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备1300可以包括1个或N个摄像头1393, N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备1300在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备1300可以支持一种或多种视频编解码器。这样,电子设备1300可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备1300的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口1320可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备1300的存储能力。外部存储卡通过外部存储器接口1320与处理器1310通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器1321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器1321可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备1300使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器1321可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器1310通过运行存储在内部存储器1321的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备1300的各种功能应用以及数据处理。
电子设备1300可以通过音频模块1370,扬声器1370A,受话器1370B,麦克风1370C,耳机接口1370D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块1370用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块1370还可以用于对音频信号编码和解码。在一些实施例中,音频模块1370可以设置于处理器1310中,或将音频模块1370的部分功能模块设置于处理器1310中。
扬声器1370A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备1300可以通过扬声器1370A收听音乐,或收听免提通话。
受话器1370B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备1300接听电话或语音信息时,可以通过将受话器1370B靠近人耳接听语音。
麦克风1370C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风1370C发声,将声音信号输入到麦克风1370C。电子设备1300可以设置至少一个麦克风1370C。在另一些实施例中,电子设备1300可以设置两个麦克风1370C,除了采集声音信号,还可以实 现降噪功能。在另一些实施例中,电子设备1300还可以设置三个,四个或更多麦克风1370C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口1370D用于连接有线耳机。耳机接口1370D可以是USB接口1330,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器1380A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器1380A可以设置于显示屏1394。压力传感器1380A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器1380A,电极之间的电容改变。电子设备1300根据电容的变化确定压力的强度。当有触摸操作作用于显示屏1394,电子设备1300根据压力传感器1380A检测所述触摸操作强度。电子设备1300也可以根据压力传感器1380A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器1380B可以用于确定电子设备1300的运动姿态。在一些实施例中,可以通过陀螺仪传感器1380B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器1380B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器1380B检测电子设备1300抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备1300的抖动,实现防抖。陀螺仪传感器1380B还可以用于导航,体感游戏场景。
气压传感器1380C用于测量气压。在一些实施例中,电子设备1300通过气压传感器1380C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器1380D包括霍尔传感器。电子设备1300可以利用磁传感器1380D检测翻盖皮套的开合。在一些实施例中,当电子设备1300是翻盖机时,电子设备1300可以根据磁传感器1380D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器1380E可检测电子设备1300在各个方向上(一般为三轴)加速度的大小。当电子设备1300静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器1380F,用于测量距离。电子设备1300可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备1300可以利用距离传感器1380F测距以实现快速对焦。
接近光传感器1380G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备1300通过发光二极管向外发射红外光。电子设备1300使用光电二极管检测来自附近物体的红外反射光。当检测到充 分的反射光时,可以确定电子设备1300附近有物体。当检测到不充分的反射光时,电子设备1300可以确定电子设备1300附近没有物体。电子设备1300可以利用接近光传感器1380G检测用户手持电子设备1300贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器1380G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器1380L用于感知环境光亮度。电子设备1300可以根据感知的环境光亮度自适应调节显示屏1394亮度。环境光传感器1380L也可用于拍照时自动调节白平衡。环境光传感器1380L还可以与接近光传感器1380G配合,检测电子设备1300是否在口袋里,以防误触。
指纹传感器1380H用于采集指纹。电子设备1300可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器1380J用于检测温度。在一些实施例中,电子设备1300利用温度传感器1380J检测的温度,执行温度处理策略。例如,当温度传感器1380J上报的温度超过阈值,电子设备1300执行降低位于温度传感器1380J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备1300对电池1342加热,以避免低温导致电子设备1300异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备1300对电池1342的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器1380K,也称“触控器件”。触摸传感器1380K可以设置于显示屏1394,由触摸传感器1380K与显示屏1394组成触摸屏,也称“触控屏”。触摸传感器1380K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏1394提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器1380K也可以设置于电子设备1300的表面,与显示屏1394所处的位置不同。
骨传导传感器1380M可以获取振动信号。在一些实施例中,骨传导传感器1380M可以获取人体声部振动骨块的振动信号。骨传导传感器1380M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器1380M也可以设置于耳机中,结合成骨传导耳机。音频模块1370可以基于所述骨传导传感器1380M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器1380M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键1390包括开机键,音量键等。按键1390可以是机械按键。也可以是触摸式按键。电子设备1300可以接收按键输入,产生与电子设备1300的用户设置以及功能控制有关的键信号输入。
马达1391可以产生振动提示。马达1391可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏1394不同区域的触摸操作,马达1391也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器1392可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指 示消息,未接来电,通知等。
SIM卡接口1395用于连接SIM卡。SIM卡可以通过插入SIM卡接口1395,或从SIM卡接口1395拔出,实现和电子设备1300的接触和分离。电子设备1300可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口1395可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口1395可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口1395也可以兼容不同类型的SIM卡。SIM卡接口1395也可以兼容外部存储卡。电子设备1300通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备1300采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备1300中,不能和电子设备1300分离。
应理解,图13所示的电子设备1300能够实现本申请图3A~图11A所示实施例提供的方法的各个过程。电子设备1300中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见本申请图3A~图11A所示方法实施例中的描述,为避免重复,此处适当省略详细描述。
应理解,图13所示的电子设备1300中的处理器1310可以是片上系统SOC,该处理器1310中可以包括中央处理器(Central Processing Unit,CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(Graphics Processing Unit,GPU)等。
总之,处理器1310内部的各部分处理器或处理单元可以共同配合实现之前的方法流程,且各部分处理器或处理单元相应的软件程序可存储在内部存储器121中。
本申请还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请图3A~图11A所示实施例提供的方法。
以上各实施例中,涉及的处理器可以例如包括CPU、DSP、微控制器或数字信号处理器,还可包括GPU、嵌入式神经网络处理器(Neural-network Process Units;以下简称:NPU)和图像信号处理器(Image Signal Processing;以下简称:ISP),该处理器还可包括必要的硬件加速器或逻辑处理硬件电路,如ASIC,或一个或多个用于控制本申请技术方案程序执行的集成电路等。此外,处理器可以具有操作一个或多个软件程序的功能,软件程序可以存储在存储介质中。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图3A~图11A所示实施例提供的方法。
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图3A~图11A所示实施例提供的方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a, b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (23)

  1. 一种全屏显示方法,其特征在于,包括:
    应用程序界面上非全屏显示一多媒体文件;
    检测到对所述多媒体文件进行全屏显示的指令,判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形;所述预设区间是包含1的区间;
    如果所述窗口为纵横比处于预设区间的图形,依照所述应用程序界面的当前显示方向,在所述窗口全屏显示所述多媒体文件;所述应用程序界面的当前显示方向包括:检测到对所述多媒体文件进行全屏显示的指令时,所述应用程序界面的显示方向。
  2. 根据权利要求1所述的方法,其特征在于,所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:
    获取所述窗口的纵横比;
    判断所述纵横比是否处于预设区间,所述预设区间为[0.75,4/3]。
  3. 根据权利要求1所述的方法,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,所述显示屏不分屏显示,所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:
    判断所述窗口使用的屏幕;
    如果所述窗口使用的屏幕是一个子屏,判断所述窗口为纵横比处于预设区间的图形;
    如果所述窗口使用的屏幕是完整屏,判断所述窗口为纵横比不处于预设区间的图形。
  4. 根据权利要求1所述的方法,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为纵横比不处于预设区间的图形,所述显示屏不分屏显示,所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:
    判断所述窗口使用的屏幕;
    如果所述窗口使用的屏幕是完整屏,判断所述窗口为纵横比处于预设区间的图形;
    如果所述窗口使用的屏幕是一个子屏,判断所述窗口为纵横比不处于预设区间的图形。
  5. 根据权利要求1所述的方法,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,所述显示屏不分屏显示;
    所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:
    判断所述显示屏的开合状态;
    如果所述显示屏的开合状态为折叠状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述显示屏的开合状态为展开状态,判断所述窗口为纵横比不处于预设区间的图形;
    如果所述显示屏的开合状态为开合变化状态,判断所述显示屏的开合变化状态的变化方向;
    如果所述变化方向为展开状态变为折叠状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述变化方向为折叠状态变为展开状态,判断所述窗口为纵横比不处于预设区间的图形。
  6. 根据权利要求1所述的方法,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为非纵横比处于预设区间的图形,所述显示屏不分屏显示;
    所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形,包括:
    判断所述显示屏的开合状态;
    如果所述显示屏的开合状态为展开状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述显示屏的开合状态为折叠状态,判断所述窗口为纵横比不处于预设区间的图形;
    如果所述显示屏的开合状态为开合变化状态,判断所述显示屏的开合变化状态的变化方向;
    如果所述变化方向为折叠状态变为展开状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述变化方向为展开状态变为折叠状态,判断所述窗口为纵横比不处于预设区间的图形。
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述在所述窗口全屏显示所述多媒体文件之后,还包括:
    检测到所述显示屏的开合状态发生变化,根据所述开合状态的变化方向判断开合状态发生变化后显示所述多媒体文件的窗口是否为纵横比处于预设区间的图形;
    如果显示所述多媒体文件的窗口为纵横比处于预设区间的图形,依照所述多媒体文件的当前显示方向,在所述显示所述多媒体文件的窗口全屏显示所述多媒体文件;所述多媒体文件的当前显示方向包括:检测到所述显示屏的开合状态发生变化时,所述多媒体文件的显示方向。
  8. 根据权利要求7所述的方法,其特征在于,所述显示屏展开状态时的完整屏为纵横比不处于预设区间的图形,折叠状态时的子屏为纵横比处于预设区间的图形,所述显示屏不分屏显示;所述根据所述开合状态的变化方向判断开合状态发生变化后显示所述多媒体文件的窗口是否为纵横比处于预设区间的图形,包括:
    判断所述显示屏的开合状态的变化方向;
    如果所述变化方向为展开状态变为折叠状态,判断显示所述多媒体文件的窗口为纵横比处于预设区间的图形;
    如果所述变化方向为折叠状态变为展开状态,判断显示所述多媒体文件的窗口为纵横比不处于预设区间的图形。
  9. 根据权利要求7所述的方法,其特征在于,所述显示屏展开状态时的完整屏为纵横比处于预设区间的图形,折叠状态时的子屏为纵横比不处于预设区间的图形,所述显示屏不分屏显示;所述根据所述开合状态的变化方向判断开合状态发生变化后显示所述多媒体文件的窗口是否为纵横比处于预设区间的图形,包括:
    判断所述显示屏的开合状态的变化方向;
    如果所述变化方向为折叠状态变为展开状态,判断显示所述多媒体文件的窗口为纵横比处于预设区间的图形;
    如果所述变化方向为展开状态变为折叠状态,判断显示所述多媒体文件的窗口为纵横比不处于预设区间的图形。
  10. 根据权利要求1至6任一项所述的方法,其特征在于,所述检测到对所述多媒体文件进行全屏显示的指令,包括:
    接收到所述应用程序界面所属应用程序发送的方向设置请求,所述方向设置请求由所述应用程序在检测到对所述多媒体文件进行全屏显示的指令时发送,所述方向设置请求中携带所述应用程序为所述应用程序界面指定的显示方向。
  11. 根据权利要求10所述的方法,其特征在于,所述依照所述应用程序界面的当前显示方向,在所述窗口全屏显示所述多媒体文件,包括:
    将所述方向设置请求中应用程序指定的显示方向修改为应用程序界面的当前显示方向;
    根据修改后的方向设置请求,在所述窗口全屏显示所述多媒体文件。
  12. 一种电子设备,其特征在于,包括:
    显示屏;一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行以下步骤:
    应用程序界面上非全屏显示一多媒体文件;
    检测到对所述多媒体文件进行全屏显示的指令,判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形;所述预设区间是包含1的区间;
    如果所述窗口为纵横比处于预设区间的图形,依照所述应用程序界面的当前显示方向,在所述窗口全屏显示所述多媒体文件;所述应用程序界面的当前显示方向包括:检测到对所述多媒体文件进行全屏显示的指令时,所述应用程序界面的显示方向。
  13. 根据权利要求12所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述判断显示所述应用程序界面的窗口是否为纵横比处于预 设区间的图形的步骤包括:
    获取所述窗口的纵横比;
    判断所述纵横比是否处于预设区间,所述预设区间为[0.75,4/3]。
  14. 根据权利要求12所述的电子设备,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,所述显示屏不分屏显示,所述指令被所述设备执行时,使得所述设备执行所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:
    判断所述窗口使用的屏幕;
    如果所述窗口使用的屏幕是一个子屏,判断所述窗口为纵横比处于预设区间的图形;
    如果所述窗口使用的屏幕是完整屏,判断所述窗口为纵横比不处于预设区间的图形。
  15. 根据权利要求12所述的电子设备,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为纵横比不处于预设区间的图形,所述显示屏不分屏显示,所述指令被所述设备执行时,使得所述设备执行所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:
    判断所述窗口使用的屏幕;
    如果所述窗口使用的屏幕是完整屏,判断所述窗口为纵横比处于预设区间的图形;
    如果所述窗口使用的屏幕是一个子屏,判断所述窗口为纵横比不处于预设区间的图形。
  16. 根据权利要求12所述的电子设备,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比不处于预设区间的图形,折叠状态时子屏为纵横比处于预设区间的图形,所述显示屏不分屏显示;
    所述指令被所述设备执行时,使得所述设备执行所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:
    判断所述显示屏的开合状态;
    如果所述显示屏的开合状态为折叠状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述显示屏的开合状态为展开状态,判断所述窗口为纵横比不处于预设区间的图形;
    如果所述显示屏的开合状态为开合变化状态,判断所述显示屏的开合变化状态的变化方向;
    如果所述变化方向为展开状态变为折叠状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述变化方向为折叠状态变为展开状态,判断所述窗口为纵横比不处于预 设区间的图形。
  17. 根据权利要求12所述的电子设备,其特征在于,显示所述应用程序界面的电子设备的显示屏为折叠屏,展开状态时完整屏为纵横比处于预设区间的图形,折叠状态时子屏为非纵横比处于预设区间的图形,所述显示屏不分屏显示;
    所述指令被所述设备执行时,使得所述设备执行所述判断显示所述应用程序界面的窗口是否为纵横比处于预设区间的图形的步骤包括:
    判断所述显示屏的开合状态;
    如果所述显示屏的开合状态为展开状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述显示屏的开合状态为折叠状态,判断所述窗口为纵横比不处于预设区间的图形;
    如果所述显示屏的开合状态为开合变化状态,判断所述显示屏的开合变化状态的变化方向;
    如果所述变化方向为折叠状态变为展开状态,判断所述窗口为纵横比处于预设区间的图形;
    如果所述变化方向为展开状态变为折叠状态,判断所述窗口为纵横比不处于预设区间的图形。
  18. 根据权利要求12至17任一项所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述在所述窗口全屏显示所述多媒体文件之后,还执行以下步骤:
    检测到所述显示屏的开合状态发生变化,根据所述开合状态的变化方向判断开合状态发生变化后显示所述多媒体文件的窗口是否为纵横比处于预设区间的图形;
    如果显示所述多媒体文件的窗口为纵横比处于预设区间的图形,依照所述多媒体文件的当前显示方向,在所述显示所述多媒体文件的窗口全屏显示所述多媒体文件;所述多媒体文件的当前显示方向包括:检测到所述显示屏的开合状态发生变化时,所述多媒体文件的显示方向。
  19. 根据权利要求18所述的电子设备,其特征在于,所述显示屏展开状态时的完整屏为纵横比不处于预设区间的图形,折叠状态时的子屏为纵横比处于预设区间的图形,所述显示屏不分屏显示;所述指令被所述设备执行时,使得所述设备执行所述根据所述开合状态的变化方向判断开合状态发生变化后显示所述多媒体文件的窗口是否为纵横比处于预设区间的图形的步骤包括:
    判断所述显示屏的开合状态的变化方向;
    如果所述变化方向为展开状态变为折叠状态,判断显示所述多媒体文件的窗口为纵横比处于预设区间的图形;
    如果所述变化方向为折叠状态变为展开状态,判断显示所述多媒体文件的窗口为纵横比不处于预设区间的图形。
  20. 根据权利要求18所述的电子设备,其特征在于,所述显示屏展开状态时的完整屏为纵横比处于预设区间的图形,折叠状态时的子屏为纵横比不处于预设区间 的图形,所述显示屏不分屏显示;所述指令被所述设备执行时,使得所述设备执行所述根据所述开合状态的变化方向判断开合状态发生变化后显示所述多媒体文件的窗口是否为纵横比处于预设区间的图形的步骤包括:
    判断所述显示屏的开合状态的变化方向;
    如果所述变化方向为折叠状态变为展开状态,判断显示所述多媒体文件的窗口为纵横比处于预设区间的图形;
    如果所述变化方向为展开状态变为折叠状态,判断显示所述多媒体文件的窗口为纵横比不处于预设区间的图形。
  21. 根据权利要求12至17任一项所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述检测到对所述多媒体文件进行全屏显示的指令的步骤包括:
    接收到所述应用程序界面所属应用程序发送的方向设置请求,所述方向设置请求由所述应用程序在检测到对所述多媒体文件进行全屏显示的指令时发送,所述方向设置请求中携带所述应用程序为所述应用程序界面指定的显示方向。
  22. 根据权利要求21所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述依照所述应用程序界面的当前显示方向,在所述窗口全屏显示所述多媒体文件的步骤包括:
    将所述方向设置请求中应用程序指定的显示方向修改为应用程序界面的当前显示方向;
    根据修改后的方向设置请求,在所述窗口全屏显示所述多媒体文件。
  23. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1至11任一项所述的方法。
PCT/CN2021/083860 2020-04-15 2021-03-30 全屏显示方法、装置和电子设备 WO2021208723A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/919,047 US20230298498A1 (en) 2020-04-15 2021-03-30 Full-Screen Display Method and Apparatus, and Electronic Device
EP21789032.6A EP4120074A4 (en) 2020-04-15 2021-03-30 METHOD AND APPARATUS FOR FULL SCREEN DISPLAY AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010293858.7A CN113535284A (zh) 2020-04-15 2020-04-15 全屏显示方法、装置和电子设备
CN202010293858.7 2020-04-15

Publications (1)

Publication Number Publication Date
WO2021208723A1 true WO2021208723A1 (zh) 2021-10-21

Family

ID=78084755

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083860 WO2021208723A1 (zh) 2020-04-15 2021-03-30 全屏显示方法、装置和电子设备

Country Status (4)

Country Link
US (1) US20230298498A1 (zh)
EP (1) EP4120074A4 (zh)
CN (1) CN113535284A (zh)
WO (1) WO2021208723A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510210A (zh) * 2022-02-14 2022-05-17 惠州Tcl移动通信有限公司 一种折叠屏显示方法、装置、计算机设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USD1018434S1 (en) * 2021-10-20 2024-03-19 Lg Electronics Inc. Smart hub for vehicles
CN115167616B (zh) * 2022-06-07 2023-05-30 荣耀终端有限公司 显示控制方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020928A (zh) * 2014-06-09 2014-09-03 联想(北京)有限公司 一种画面的呈现方法和装置
US20150378520A1 (en) * 2014-06-25 2015-12-31 Verizon Patent And Licensing Inc. Method and System for Auto Switching Applications Based on Device Orientation
CN105898615A (zh) * 2015-12-25 2016-08-24 乐视网信息技术(北京)股份有限公司 一种视频显示窗口的切换方法及装置
CN109151504A (zh) * 2018-09-28 2019-01-04 上海哔哩哔哩科技有限公司 一种视频自适应播放方法、装置和存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3047851C (en) * 2016-12-21 2023-12-05 You I Labs Inc. System and method for cloud-based user interface application deployment
JP6567621B2 (ja) * 2017-10-04 2019-08-28 株式会社Nttドコモ 表示装置
CN110401766B (zh) * 2019-05-22 2021-12-21 华为技术有限公司 一种拍摄方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020928A (zh) * 2014-06-09 2014-09-03 联想(北京)有限公司 一种画面的呈现方法和装置
US20150378520A1 (en) * 2014-06-25 2015-12-31 Verizon Patent And Licensing Inc. Method and System for Auto Switching Applications Based on Device Orientation
CN105898615A (zh) * 2015-12-25 2016-08-24 乐视网信息技术(北京)股份有限公司 一种视频显示窗口的切换方法及装置
CN109151504A (zh) * 2018-09-28 2019-01-04 上海哔哩哔哩科技有限公司 一种视频自适应播放方法、装置和存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510210A (zh) * 2022-02-14 2022-05-17 惠州Tcl移动通信有限公司 一种折叠屏显示方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN113535284A (zh) 2021-10-22
EP4120074A1 (en) 2023-01-18
US20230298498A1 (en) 2023-09-21
EP4120074A4 (en) 2023-08-23

Similar Documents

Publication Publication Date Title
WO2021213120A1 (zh) 投屏方法、装置和电子设备
WO2020168965A1 (zh) 一种具有折叠屏的电子设备的控制方法及电子设备
EP4084450A1 (en) Display method for foldable screen, and related apparatus
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2020000448A1 (zh) 一种柔性屏幕的显示方法及终端
WO2021104008A1 (zh) 一种折叠屏的显示方法及相关装置
WO2020244623A1 (zh) 一种空鼠模式实现方法及相关设备
WO2021036771A1 (zh) 具有可折叠屏幕的电子设备及显示方法
US20220206682A1 (en) Gesture Interaction Method and Apparatus, and Terminal Device
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021052279A1 (zh) 一种折叠屏显示方法及电子设备
WO2021036585A1 (zh) 一种柔性屏显示方法和电子设备
WO2021063311A1 (zh) 具有折叠屏的电子设备的显示控制方法及电子设备
WO2021208723A1 (zh) 全屏显示方法、装置和电子设备
WO2020168968A1 (zh) 一种具有折叠屏的电子设备的控制方法及电子设备
WO2021023035A1 (zh) 一种镜头切换方法及装置
WO2020221060A1 (zh) 一种卡片处理方法及设备
WO2022001258A1 (zh) 多屏显示方法、装置、终端设备及存储介质
WO2021052407A1 (zh) 一种电子设备操控方法及电子设备
WO2022042770A1 (zh) 控制通信服务状态的方法、终端设备和可读存储介质
WO2020118490A1 (zh) 自动分屏的方法、图形用户界面及电子设备
WO2023103951A1 (zh) 一种折叠屏的显示方法及相关装置
WO2021238370A1 (zh) 显示控制方法、电子设备和计算机可读存储介质
WO2021073183A1 (zh) 始终显示方法及移动设备
WO2021121036A1 (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: 21789032

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021789032

Country of ref document: EP

Effective date: 20221012

NENP Non-entry into the national phase

Ref country code: DE