WO2023284568A1 - 一种电子设备的按键控制方法及电子设备 - Google Patents

一种电子设备的按键控制方法及电子设备 Download PDF

Info

Publication number
WO2023284568A1
WO2023284568A1 PCT/CN2022/103407 CN2022103407W WO2023284568A1 WO 2023284568 A1 WO2023284568 A1 WO 2023284568A1 CN 2022103407 W CN2022103407 W CN 2022103407W WO 2023284568 A1 WO2023284568 A1 WO 2023284568A1
Authority
WO
WIPO (PCT)
Prior art keywords
button
function
electronic device
mobile phone
screen
Prior art date
Application number
PCT/CN2022/103407
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 EP22841206.0A priority Critical patent/EP4350471A1/en
Publication of WO2023284568A1 publication Critical patent/WO2023284568A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1647Details related to the display arrangement, including those related to the mounting of the display in the housing including at least an additional display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0241Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call
    • H04M1/0245Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call using open/close detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1641Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1662Details related to the integrated keyboard
    • G06F1/1671Special purpose buttons or auxiliary keyboards, e.g. retractable mini keypads, keypads or buttons that remain accessible at closed laptop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H13/00Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
    • H01H13/02Details
    • H01H13/12Movable parts; Contacts mounted thereon
    • H01H13/14Operating parts, e.g. push-button
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/23Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof
    • H04M1/236Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof including keys on side or rear faces

Definitions

  • the present application relates to the field of terminal technologies, and in particular to a button control method of an electronic device and the electronic device.
  • the present application provides a button control method for electronic equipment, electronic equipment, computer storage media and computer program products, which can realize adaptive adjustment of the function of the buttons on the electronic equipment, so that the buttons on the electronic equipment It can be consistent with the user's usage habits and improve the user experience.
  • the present application provides a button control method for an electronic device.
  • the electronic device may include a display screen and at least one button.
  • the display screen may be a folding screen, and the physical form of the folding screen may include a folded state or an unfolded state.
  • at least one button includes a first button, the function of the first button is the first function when the physical form of the folding screen is a folded state, and the function of the first button is a second function when the physical form of the folding screen is an unfolded state ;
  • the method may include: when the physical form is in the folded state, if the first key is triggered, outputting the first function; when the physical form is in the unfolded state, if the first key is triggered, outputting the second function.
  • the user can adaptively adjust the required response function of the buttons on the electronic device according to the physical form of the folding screen of the electronic device, so that the folding screen of the electronic device can also be in different physical forms.
  • At least one key also includes a second key, the function of the second key is the third function when the physical form of the folding screen is in the folded state, and the function of the second key is when the physical form of the folding screen is in the unfolded state: A fourth function; wherein, the first function is the same as the fourth function, and the second function is the same as the third function.
  • the folding screen of the electronic device includes an inner screen and an outer screen
  • the inner screen includes a first screen and a second screen
  • the outer screen is located on the first body of the electronic device
  • the first screen is located on the first body
  • the second screen is located on the second body of the electronic device; wherein, both the first button and the second button are set on the first body.
  • both the first button and the second button are located on the first side of the first body.
  • the two buttons are arranged on the same side of the electronic device, so as to facilitate user operation and improve user operation experience.
  • the function of the first button when the physical form is in the folded state, the function of the first button is to switch the machine, and the function of the second button is to adjust the volume; when the physical form is in the unfolded state , the function of the first button is to adjust the volume, and the function of the second button is to switch the machine.
  • the method may further include: acquiring a folding angle of the folding screen; and determining a physical form according to the folding angle. In this way, the physical form of the folding screen can be known through the folding angle of the folding screen.
  • determining the physical form according to the folding angle may specifically include: when the folding angle is greater than a preset angle, determining that the physical form is in an unfolded state; when the folding angle is less than or When it is equal to the preset angle, it is determined that the physical form is a folded state. In this way, according to the folding angle and the preset preset angle, the physical shape of the folding screen can be determined.
  • the method may further include: after detecting that the electronic device rotates around the z-axis, according to the electronic device on the plane where the x-axis and y-axis are located, Relative to the rotation angle of the reference state of the electronic device, determine the fifth function of the third button in the at least one button, wherein the z-axis is an axis perpendicular to the display screen of the electronic device, and the x-axis is an axis parallel to the side of the electronic device , the y-axis is the axis perpendicular to the plane where the x-axis and the z-axis are located.
  • the reference state means that the lower side of the electronic device is parallel to the horizontal plane, and the distance between the upper side of the electronic device and the horizontal plane is greater than or equal to the lower side and the horizontal plane.
  • the state of the electronic device at the distance; when the third key is triggered, the fifth function is output. In this way, when the electronic device rotates, according to the rotation angle of the electronic device, the corresponding function of each button in the button group on the electronic device can be adaptively adjusted, so that when the electronic device rotates, the buttons that meet the user's usage habits can also be provided. functions to improve user experience.
  • the third button is the same as the first button
  • the fifth function is the same as the first function or the second function.
  • the holding posture of the electronic device being held includes left-handed holding or right-handed holding, and when the holding posture is left-handed holding, the fourth button in at least one key
  • the function of the button is the sixth function
  • the function of the fourth button is the seventh function when the holding posture is held by the right hand.
  • the method may also include: when the holding posture is held by the left hand, if the fourth button is triggered, output the first Six functions; when the holding posture is right-handed, if the fourth button is triggered, the seventh function is output.
  • the function that each button in the button group on the electronic device needs to respond to can be adaptively adjusted according to the user's current holding posture of the electronic device, so that when the user holds the electronic device
  • the holding posture of the device occurs, it can also provide button functions that meet the user's usage habits, avoiding the problem that the function of the buttons on the electronic device is not synchronized with the normal use function when the user holds the electronic device. user experience.
  • the fourth button is the same as the first button.
  • the sixth function is the same as the first function or the second function
  • the seventh function is the same as the first function or the second function
  • the sixth function is the same as the first function Seven functions are different.
  • the present application provides a button control method for an electronic device
  • the electronic device may include a display screen and at least one button, and at least one button includes a third button
  • the method may include: After the rotation of the axis, according to the rotation angle of the electronic device on the plane where the x-axis and y-axis are located relative to the reference state of the electronic device, determine the fifth function that the third button needs to respond to, wherein the z-axis is perpendicular to the electronic device
  • the z-axis is perpendicular to the electronic device
  • the reference state means that the lower side of the electronic device is parallel to the horizontal plane
  • the state of the electronic device when the distance between the upper side and the horizontal plane of the electronic device is greater than or equal to the distance between the lower side and the horizontal plane; when the third button is
  • the corresponding function of each button in the button group on the electronic device can be adaptively adjusted, so that when the electronic device rotates, the buttons that meet the user's usage habits can also be provided. functions to improve user experience.
  • the present application provides a button control method for an electronic device
  • the electronic device may include a display screen and at least one button
  • the at least one button includes a fourth button
  • the holding posture of the electronic device includes left hand holding Or hold it with the right hand
  • the function of the fourth button is the sixth function when the holding posture is held by the left hand
  • the function of the fourth button is the seventh function when the holding posture is held by the right hand
  • the method may include: When the left hand is holding, if the fourth button is triggered, the sixth function is output; when the holding posture is right hand holding, if the fourth button is triggered, the seventh function is output.
  • the function that each button in the button group on the electronic device needs to respond to can be adaptively adjusted according to the user's current holding posture of the electronic device, so that when the user holds the electronic device
  • the holding posture of the device occurs, it can also provide button functions that meet the user's usage habits, avoiding the problem that the function of the buttons on the electronic device is not synchronized with the normal use function when the user holds the electronic device. user experience.
  • the present application provides an electronic device, which is characterized in that it includes:
  • the display screen is a folding screen
  • At least one memory for storing programs
  • At least one processor is used to execute the program stored in the memory.
  • the processor is used to execute any one of the first aspect and the first aspect, or execute the second aspect and the second aspect. Any implementation manner, or execute the third aspect and any implementation manner of the third aspect.
  • the fourth aspect and any one of the implementation methods of the fourth aspect are respectively related to the first aspect and any of the implementation methods of the first aspect, or to the second aspect and any of the implementation methods of the second aspect, or to the third aspect Corresponding to any implementation manner of the third aspect.
  • the technical effects corresponding to the second aspect and any one of the implementations in the second aspect please refer to the above-mentioned first aspect and any one of the implementations in the first aspect, or the second aspect and any one of the implementations in the second aspect, Or the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect will not be described in detail here.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the computer program runs on the electronic device, the electronic device executes any one of the first aspect and the first aspect.
  • the fifth aspect and any one of the implementation methods of the fifth aspect are respectively related to the first aspect and any of the implementation methods of the first aspect, or to the second aspect and any of the implementation methods of the second aspect, or to the third aspect Corresponding to any implementation manner of the third aspect.
  • the technical effect corresponding to the fifth aspect and any one of the implementations in the fifth aspect please refer to the above-mentioned first aspect and any one of the implementations in the first aspect, or the second aspect and any one of the implementations in the second aspect, Or the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect will not be described in detail here.
  • the present application provides a computer program product.
  • the computer program product runs on an electronic device
  • the electronic device executes the first aspect and any one of the implementation methods of the first aspect, or executes the second aspect and the first aspect. Either one of the implementation methods of the second aspect, or execute the third aspect and any one of the implementation methods of the third aspect.
  • the sixth aspect and any one of the implementation methods of the sixth aspect are respectively with the first aspect and any of the implementation methods of the first aspect, or with the second aspect and any of the implementation methods of the second aspect, or with the third aspect Corresponding to any implementation manner of the third aspect.
  • the technical effects corresponding to the sixth aspect and any one of the implementations in the sixth aspect please refer to the above-mentioned first aspect and any one of the implementations in the first aspect, or the second aspect and any one of the implementations in the second aspect, Or the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect will not be described in detail here.
  • FIG. 1 is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application
  • Fig. 2 is a schematic diagram of the process of changing the folding screen of a mobile phone from a folded state to an unfolded state according to an embodiment of the present application;
  • Fig. 3 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an operating system architecture of a mobile phone provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an operating system architecture of a mobile phone provided in an embodiment of the present application.
  • FIG. 6 is a schematic flow chart of a key control method for a mobile phone provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the steps of a key control method for a mobile phone provided in an embodiment of the present application.
  • FIG. 8 is a schematic flow chart of a key control method for a mobile phone provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a key layout on a mobile phone provided by an embodiment of the present application.
  • Fig. 10 is a schematic diagram of a mobile phone held by the right hand provided in the embodiment of the present application.
  • Fig. 11 is a schematic diagram of a mobile phone held by the left hand provided by the embodiment of the present application.
  • Fig. 12 is a schematic flow chart of a key control method for a mobile phone provided in an embodiment of the present application.
  • Fig. 13 is a schematic diagram of the change of a mobile phone rotation process provided by the embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • a and/or B may indicate: A exists alone, A and B exist at the same time, and B exists alone, Wherein A and B can be singular or plural.
  • the character "/" generally indicates that the contextual objects are an "or" relationship.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • the term “connected” includes both direct and indirect connections, unless otherwise stated.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include one or more of these features.
  • the embodiment of the present application provides a button control method of an electronic device, which can be applied to electronic devices with folding screens such as mobile phones and tablet computers, and the embodiment of the present application does not impose any limitation on this.
  • the method can adaptively adjust the functions of the buttons on the electronic device according to the shape of the folding screen, so that the functions of the buttons on the electronic device can be dynamically adjusted following the shape of the folding screen, thereby meeting the needs of users in different scenarios, and improving the user experience. experience.
  • FIG. 1 shows a schematic structural diagram of a mobile phone.
  • the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an environmental Light sensor 180L, bone conduction sensor 180M, etc.
  • the structure shown in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 100 .
  • the mobile phone 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transmit data between the mobile phone 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect to other mobile phones 100, such as AR devices.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 can receive wireless charging input through the wireless charging coil of the mobile phone 100 . While charging the battery 142, the charging management module 140 can also supply power to the mobile phone 100 through the power management module 141.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in handset 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. applied on the mobile phone 100 (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the mobile phone 100 can use the wireless communication module 160 to send location information to other mobile phones 100, such as its own location information and/or its stored location information, and can also use the wireless communication module 160 to receive information sent by other mobile phones 100. location information, etc.
  • the mobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the display screen 194 may be a folding screen. As shown in FIG.
  • the folding screen may include an inner screen 21 and an outer screen 22 .
  • the inner screen 21 may include a screen 211 and a screen 212 .
  • the screen 212 can be called the first screen
  • the screen 211 can be called the second screen
  • the body where the outer screen 22 is located can be called the first body
  • the screen 212 is located on the first body
  • the screen 211 can be called the second screen.
  • the fuselage where 211 is located can be called the second fuselage.
  • the angle between the screen 211 and the screen 212 can be understood as the folding angle ⁇ of the folding screen. Wherein, when the folding screen is in the unfolded state (ie, the folding angle ⁇ is 0 degrees), that is, the state shown in (A) of FIG.
  • the mobile phone 100 can use the outer screen 22 for display.
  • the folding angle ⁇ of the folding screen is greater than the preset angle (for example: greater than 15 degrees or 20 degrees, etc.)
  • the mobile phone 100 can use the inner screen 21 for display, that is, the states shown in (B) and (C) of FIG. 2 .
  • the folding angle ⁇ of the folding screen is smaller than the preset angle
  • the mobile phone 100 can also use the outer screen 22 for display.
  • FIG. 2 shows the change process of the physical form of the folding screen from the folded state to the unfolded state. In the state shown in (A) of FIG.
  • the folding angle ⁇ of the folding screen gradually increases, and the mobile phone 100 can reach the state shown in (B) of FIG.
  • this state can be called a half-expanded state.
  • the mobile phone 100 can reach the state shown in (C) of FIG. 2 , wherein the state It can be called the fully expanded state.
  • a button 232 can be set on the fuselage where the outer screen 22 of the mobile phone 100 is located, and a button 231 can be set on the fuselage where the screen 211 in the inner screen 21 of the mobile phone 100 is located;
  • the button 232 is located above the button 231 .
  • the button 231 may be called a first button
  • the button 232 may be called a second button
  • the side of the mobile phone 100 where the button 231 and the button 232 are located may be called a first side.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 .
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the mobile phone 100 by executing instructions stored in the internal memory 121 and/or instructions stored in the memory provided in the processor; method.
  • the mobile phone 100 can realize the audio function through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100 .
  • the angular velocity of the mobile phone 100 about three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the mobile phone 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the mobile phone 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the acceleration sensor 180E can detect the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of mobile phones, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the mobile phone 100 can detect the folding angle ⁇ of the folding screen shown in (B) of FIG. 2 through the gyro sensor 180B and the acceleration sensor 180E.
  • a gyro sensor 180B and an acceleration sensor 180E can be provided on the body a where the screen 211 in the inner screen 21 of the mobile phone 100 is located, and the screen 212 in the inner screen 21 of the mobile phone 100 is located
  • a gyro sensor 180B and an acceleration sensor 180E are provided on the body b of the body.
  • the gyro sensor on the fuselage a where the screen 211 is located can detect the rotational angular velocity of the fuselage a when it rotates, and the acceleration sensor on the fuselage a where the screen 211 is located can detect the acceleration generated when the fuselage a moves, and then the mobile phone 100 can
  • the magnitude and direction of the gravity G are determined according to the data detected by the gyro sensor and the acceleration sensor on the fuselage a where the screen 211 is located.
  • the mobile phone 100 can also determine the magnitude and direction of the gravity G according to the data detected by the gyro sensor and the acceleration sensor on the body b where the screen 212 is located. Further, as shown in FIG.
  • corresponding coordinate systems may be set on the body a where the screen 211 is located and the body b where the screen 212 is located.
  • a Cartesian coordinate system 01 can be set on the fuselage a.
  • the x-axis is parallel to the side a1 of the fuselage a
  • the y-axis is parallel to the side a2 of the fuselage a
  • the z-axis is perpendicular to x
  • the plane formed by the x-axis and the y-axis points out of the fuselage a.
  • a Cartesian coordinate system 02 can be set on the fuselage b.
  • the x-axis is parallel to the side b1 of the fuselage b
  • the y-axis is parallel to the side b2 of the fuselage b
  • the z-axis is perpendicular to x
  • the plane formed by the y-axis and the y-axis points out of the fuselage b.
  • the component G1 of gravity G on the x-axis and z-axis in Cartesian coordinate system 01 is the same as the component G2 of gravity G on the x-axis and z-axis plane in Cartesian coordinate system 02 Equal in size but in different directions.
  • the angle between the components G1 and G2 is the angle between the Cartesian coordinate system 01 and the Cartesian coordinate system 02, and also the angle between the fuselage a and the fuselage b (that is, the folding angle ⁇ ).
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile phone 100 can use the magnetic sensor 180D to detect the folding angle ⁇ of the folding screen of the mobile phone 100 .
  • at least one magnetic element can be respectively arranged on the body a and the body b, and the mobile phone 100 can use a magnetic sensor to detect the magnetic field between the magnetic elements on the body a and the body b. Strength, and then determine the folding angle ⁇ of the folding screen according to the strength of the magnetic field.
  • the mapping relationship between the strength of the magnetic field between the magnetic elements on the fuselage a and the fuselage b and the folding angle ⁇ can be calibrated in advance, so that the magnetic elements on the fuselage a and the fuselage b After the intensity of the magnetic field between is obtained, according to the pre-calibrated mapping relationship, the folding angle ⁇ can be obtained.
  • the mobile phone 100 can also directly determine the physical form of the folding screen of the mobile phone 100 according to the strength of the magnetic field between the magnetic elements on the body a and the body b detected by the magnetic sensor.
  • the strength of the magnetic field between the magnetic elements on the fuselage a and the fuselage b is greater than a preset value, it can be determined that the physical form of the folding screen is a folded state, and when the magnetic element on the fuselage a and the fuselage b When the intensity of the magnetic field between is less than or equal to the preset value, it can be determined that the physical form of the folding screen is an unfolded state.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K can also be arranged on the surface of the mobile phone 100, which is different from the location of the display screen 194, for example, arranged on the back or side of the mobile phone 100, etc., wherein the back of the mobile phone 100 refers to The side facing away from the display screen currently used by the handset 100 .
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 can be a mechanical key or a touch key.
  • the mobile phone 100 can receive key input and generate key signal input related to user settings and function control of the mobile phone 100 .
  • both the buttons 231 and 232 can be arranged on the side of the mobile phone 100 . It can be understood that, when the mobile phone 100 includes multiple buttons, the multiple buttons can be arranged on the same side of the mobile phone 100, or can be arranged on different sides of the mobile phone 100, which can be determined according to the actual situation, and is not limited here. .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the mobile phone 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the mobile phone 100 adopts eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100 .
  • the software system of the above-mentioned mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the mobile phone 100 is illustrated by taking the Android system with a layered architecture as an example.
  • FIG. 4 is a block diagram of the software structure of the mobile phone 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a phone manager, a resource manager, a notification manager, a key management service, a view system, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the phone manager is used to provide communication functions of the mobile phone 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, making a sound, vibrating the mobile phone, and flashing the indicator light, etc.
  • the button management service can determine the function that the button needs to respond to according to the folding state of the folding screen on the mobile phone 100 , and when a button event occurs on the mobile phone 100 , respond to the button event with the determined function that the button needs to respond to.
  • the view system can include visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the Android system library.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), status monitoring service, 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the state monitoring service may call a sensor service (sensor service) to start sensors such as the gyroscope sensor 180B, the acceleration sensor 180E, and the magnetic sensor 180D shown in FIG. 1 for detection.
  • the state monitoring service can calculate the current folding angle ⁇ of the folding screen on the mobile phone 100 according to the detection data reported by each sensor, and determine the folding state of the folding screen of the mobile phone 100 according to the folding angle ⁇ .
  • the state monitoring service may also report the determined folding state of the folding screen of the mobile phone 100 to the above-mentioned button management service.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • FIG. 5 shows a schematic diagram of data flow within the system in the mobile phone 100 .
  • the gyroscope sensor and acceleration sensor at the hardware layer, or the magnetic sensor can report the detected data to the sensor driver, and the sensor driver can send the gyroscope sensor and acceleration sensor through the sensor service.
  • the detected data, or the data detected by the magnetic sensor is reported to the status monitoring service.
  • the state monitoring service can determine the folding angle of the folding screen according to the data detected by the gyro sensor and the acceleration sensor, or the data detected by the magnetic sensor, and then determine the folding state of the folding screen.
  • the status monitoring service can report the folding status of the folding screen to the button management service.
  • the key driver at the kernel layer can determine the key event and report the key event to the status monitoring service.
  • the status monitoring service can report the button event to the button management service. After that, according to the folding state of the folding screen, the button management service decides the function of each button under the button event, and/or outputs the corresponding function.
  • FIG. 6 shows a schematic flowchart of a key control method of the mobile phone 100 .
  • the method may include the following steps:
  • the folding angle of the folding screen on the mobile phone can be obtained through the sensor on the mobile phone 100 .
  • the folding angle of the folding screen can be obtained through the gyro sensor 180B and the acceleration sensor 180E in FIG. 1 , or the folding angle of the folding screen can be obtained through the magnetic sensor 180D in FIG. 1 , see the above description for details, I won't repeat them here.
  • S602. Determine the physical form of the folding screen according to the folding angle, where the physical form includes a folded state or an unfolded state.
  • the physical form of the folding screen may be determined according to the folding angle, wherein the physical form includes a folded state or an unfolded state.
  • the folded state may refer to the form of the mobile phone 100 when the folding angle is less than or equal to the preset angle, for example, the form shown in (A) of FIG. 2 ; the unfolded state may refer to the form when the folded angle is greater than the preset angle.
  • the form of the mobile phone 100 is, for example, the forms shown in (B) and (C) of FIG. 2 .
  • the folding angle is (0, 20 degrees]
  • the physical form may be a folded state
  • the folding angle is (20 degrees, 180 degrees)
  • the physical form may be an unfolded state.
  • the button group includes at least one button, and the button groups corresponding to different physical forms
  • the target function that each key needs to respond to is different.
  • the target function to be responded to by each button in the button group on the mobile phone 100 can be determined according to the physical form, wherein the button group includes at least one button, and the button groups corresponding to different physical forms The target function that each key needs to respond to is different.
  • the mapping relationship between the functions that each button in the button group on the mobile phone 100 needs to respond to and the physical form of the folding screen can be preset, so that after the key event is obtained, according to the physical form of the folding screen, By querying the mapping relationship, it is possible to determine the target function that each button in the button group on the mobile phone 100 needs to respond to in the current physical form of the folding screen.
  • the mapping relationship between the functions to be responded to by each button in the button group on the mobile phone 100 and the physical form of the folding screen is preset, as shown in Table 1.
  • the buttons in the button group include button a and button b, where, when the physical form of the folding screen is in the unfolded state, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is volume Adjustment; when the physical form of the folding screen is in the folded state, the function required to respond to button a is volume adjustment, and the function required to respond to button b is to switch the machine on and off.
  • the function that button a in the button group on the mobile phone 100 needs to respond to is volume adjustment, and the function that button b needs to respond to is power on and off.
  • the functions corresponding to power on and off may include power on, power off, screen lock, screen bright, etc., which are not limited here.
  • buttons in the button group include button a, button b and button c, where, when the physical form of the folding screen is in the unfolded state, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to The function is to increase the volume, and the function to be responded to by button c is to decrease the volume; when the physical form of the folding screen is folded, the function to be responded to by button a is to increase the volume, and the function to be responded to by button b is to switch on and off , the function that the button c needs to respond to is to lower the volume.
  • the function that button a needs to respond to in the button group on the mobile phone 100 is to increase the volume, and the function that button b needs to respond to is to switch machine, the function that the button c needs to respond to is to lower the volume.
  • the key event can be responded to with the target function.
  • the target function to be responded to by each button in the button group on the mobile phone 100 is: the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is a switch machine, in the button event, if the user triggers button a, the function corresponding to volume adjustment will be executed at this time, and if the user triggers button b, the function corresponding to power on/off will be executed at this time.
  • S603 can also be replaced with "according to the physical form, determine the target function that each key in the key group on the mobile phone 100 needs to respond to.
  • the key group includes at least one key, wherein the keys corresponding to different physical forms Each button in the group needs to respond to different target functions", and at the same time, S604 can be replaced with "when the button event is obtained, respond to the button event with the determined target function". That is to say, after determining the physical form of the folding screen, the function of each key can be determined according to the physical form, and then, when a key is triggered, the function of the key can be determined to respond to the key event, that is Output the function of the key.
  • the key a in the folded state is the folded state
  • the determined function of the key a in the folded state is to lower the volume
  • key a may be called the first key.
  • the function to be responded to by key a (that is, the first key) may be referred to as the first function.
  • the function to be responded to by the key a can be called the second function.
  • the first function when the physical form of the folding screen is in the folded state, if the key a (i.e. the first key) is triggered, the first function is output; when the physical form of the folding screen is in the expanded state, if the key a (i.e. the first key) is triggered When the key) is triggered, the second function is output.
  • the key b can be referred to as a second key.
  • the function to be responded to by the key b (that is, the second key) can be referred to as the third function.
  • the function to be responded to by the key b can be called the fourth function.
  • the third function is output; when the physical form of the folding screen is in the unfolded state, if the button b (ie, the second When the key) is triggered, the fourth function is output.
  • the first function may be the same as the fourth function
  • the second function may be the same as the third function.
  • the functions required to respond to each button in the key group on the mobile phone 100 are adaptively adjusted, so that the folding screen of the mobile phone 100 is in different physical forms. Downtime can also provide button functions that meet the user's usage habits, avoiding the problem that the functions of the buttons on the mobile phone 100 are not synchronized with the normal use functions when the folding screen of the mobile phone 100 is in a different physical form, and improving user experience.
  • the mobile phone 100 described above is taken as an example below to introduce the button control method of the electronic device provided in the embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a key control method of the mobile phone 100 .
  • the two buttons may be button 231 and button 232 shown in FIG. 2 .
  • button 231 and button 232 are all positioned at the upper area of the side of mobile phone 100, and button 231 is positioned at the bottom of button 232, now button 231 can be referred to as the down key, and the button 232 can be referred to as the upper key; for the down key.
  • the method may include the following steps:
  • the mobile phone 100 when the mobile phone 100 is powered on, it can be determined whether the mobile phone 100 is normally powered on. Wherein, when the mobile phone 100 is powered on normally, execute S702; when the mobile phone 100 is abnormally powered on, execute S703.
  • the operating modes of the mobile phone 100 may include: a normal mode and an abnormal mode.
  • the normal mode can be understood as a mode for normally starting the mobile phone 100 , for example, long pressing the power button on the mobile phone 100 .
  • the abnormal mode can be understood as a mode other than the normal mode, for example, a recovery mode or a fastboot mode. Due to controlling the mobile phone 100 to enter different operating modes, it is often necessary to select different keys for control. Therefore, when judging whether the mobile phone 100 is normally powered on, it can be judged according to the number and/or function of the keys operated by the user when controlling the mobile phone 100 to power on. . For example, when the user only presses one button to start the mobile phone, it can be determined that the mobile phone 100 is normally started; when the user presses multiple buttons simultaneously to start the mobile phone, it can be determined that the mobile phone 100 is abnormally started.
  • S701 does not need to be executed every time. Wherein, when the mobile phone 100 is in the power-off state before executing S701, this step may be executed every time. And after the mobile phone 100 has been turned on normally, you can choose not to execute this step, but directly execute S702.
  • the folding angle of the folding screen on the mobile phone 100 may be obtained after the mobile phone 100 is powered on, that is, when the user is using the mobile phone 100 normally.
  • the folding angle of the folding screen can be obtained through the gyroscope sensor 180B and the acceleration sensor 180E on the mobile phone 100 , or the folding screen angle can be obtained through the magnetic sensor 180D (such as a Hall sensor) on the mobile phone 100 .
  • the magnetic sensor 180D such as a Hall sensor
  • the folding angle see the above description for details, and will not repeat them here.
  • a gyro sensor and an acceleration sensor may be selected in this step to obtain the folding angle of the folding screen.
  • the folding angle of the folding screen on the mobile phone 100 may be obtained when the mobile phone 100 is powered on.
  • the folding angle of the folding screen can be acquired through a magnetic sensor (such as a Hall sensor) on the mobile phone 100 at this time.
  • S702 obtains the folding angle of the folding screen after the mobile phone 100 is turned on, while S703 obtains the folding angle of the folding screen when the mobile phone 100 is turned on.
  • the physical form of the folding screen can be determined according to the folding angle.
  • the physical form includes a folded state or an unfolded state. For details, see the description in S602 in FIG. 6 above, which will not be repeated here.
  • the key a or the key b on the mobile phone 100 is triggered (for example: pressed to trigger, etc.), it can be determined that the key event is acquired.
  • the rule m including the mapping relationship between the function of the button and the folded state.
  • the button event can be responded to with the button function set by the rule m, and the rule m includes the mapping relationship between the function of the button and the folded state.
  • the rule m may be that when the physical form of the folding screen is in the folded state, the key function of the button 231 (ie, the up key) is a volume adjustment key, and the key function of the key 232 (ie, the down key) ) The corresponding button function is the switch button (ie the power button).
  • the button event can be responded to with the button function set by rule n, and the rule n includes the mapping relationship between the function of the button and the unfolded state.
  • the rule n may be that when the physical form of the folding screen is in the unfolded state, the key function of the button 231 (ie, the down key) is the power on/off key (ie, the power button). key), the button function of the button 232 (ie the upper button) is the volume adjustment button.
  • the user can adjust the volume by manipulating the up key (ie, key 231 ) on the mobile phone 100 , or operate the down key (ie, key 232 ) on the mobile phone 100 to switch the phone on and off.
  • the user can adjust the volume by manipulating the up key (ie, the key 232 ) on the mobile phone 100 , or operate the down key (ie, the key 231 ) on the mobile phone 100 to switch the phone on and off.
  • the button control method of the electronic device provided by the embodiment of the present application.
  • another method for controlling keys of an electronic device provided by an embodiment of the present application is introduced.
  • the method is mainly based on the user's current holding posture of the electronic device, and adaptively adjusts the function of each button in the button group on the electronic device to respond, so that when the user's holding posture of the electronic device occurs, it can also Provide button functions that conform to the user's usage habits, avoid the problem that the functions of the buttons on the electronic device are not synchronized with the normal use functions when the user holds the electronic device in a holding posture, and improve the user experience. For example, take the current common electronic device as a mobile phone with a large screen as an example.
  • buttons are on the right side of the phone.
  • he wants to operate the buttons he needs to use his right hand to operate. (such as the handrail of the bus and subway) will be very inconvenient to operate, so it is necessary to automatically recognize the user's left or right hand holding the mobile phone at this time according to the user's holding posture, and then adaptively adjust the required response function of the buttons on the mobile phone. It facilitates user operation and improves user experience.
  • FIG. 8 shows a schematic flowchart of a key control method of the mobile phone 100 .
  • the keys of the mobile phone 100 described in FIG. 8 may include at least two keys, which are respectively arranged on different sides of the screen of the mobile phone 100 .
  • the key 233 is set on the left side of the screen of the mobile phone 100
  • the key 234 is set on the right side of the screen of the mobile phone 100 .
  • the method includes the following steps:
  • S801. Determine the current holding posture of the user holding the mobile phone 100, where the holding posture includes holding with a left hand or holding with a right hand.
  • a touch device (such as the touch sensor 180K shown in FIG. 1 ) may be provided on the mobile phone 100, and the touch device may report the user's current touch position periodically or in real time. Furthermore, according to the touch position, a preset grip algorithm is used to determine the current grip posture of the user holding the mobile phone, wherein the grip posture includes left-hand grip or right-hand grip.
  • the position of each point that is, each touch position
  • the shape of the contact surface between the user's palm and the mobile phone 100 is determined. After that, compare the shape of the contact surface with the preset left-hand grip shape and right-hand grip shape, determine the similarity between the shape of the contact surface and the preset left-hand grip shape, and determine the degree of similarity of the contact surface. The similarity of the shape to the preset right-hand grip shape. Finally, the gripping shape corresponding to the value with the highest similarity is selected as the current gripping posture.
  • the current grip posture is left-hand grip; when the shape of the contact surface is the same as the preset right-hand grip shape When the similarity is the highest, the current holding posture is right hand holding.
  • the button group includes at least one button, wherein the buttons corresponding to different holding postures Each key in the group needs to respond to a different target function.
  • the target function that each button in the button group on the mobile phone 100 needs to respond to can be determined according to the holding posture.
  • the button group includes at least one button, wherein the button groups corresponding to different holding postures
  • the target functions that each key needs to respond to are different.
  • the mapping relationship between the functions that each button in the button group on the mobile phone 100 needs to respond to and the holding posture can be preset, so that after the key event is obtained, the mapping relationship can be queried according to the holding posture , that is, the target function to be responded to by each key in the key group on the mobile phone 100 under the current holding posture can be determined.
  • the preset mapping relationship between the functions to be responded to by each button in the button group on the mobile phone 100 and the holding posture can be as shown in Table 3.
  • the buttons in the button group include button a and button b, wherein, when the holding posture is left-handed, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is volume adjustment; When the holding posture is right-handed, the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is to switch on and off.
  • the function required to respond to button a in the button group on the mobile phone 100 is volume adjustment, and the function required to respond to button b is to switch the phone on and off.
  • the functions corresponding to power on and off may include power on, power off, screen lock, screen bright, etc., which are not limited here.
  • the mapping relationship between the function to be responded to and the holding posture of each button in the button group on the mobile phone 100 can also be preset as shown in Table 4.
  • the buttons in the button group include button a, button b, and button c, wherein, when the holding posture is left-handed, the function that button a needs to respond to is switching on and off, and the function that button b needs to respond to is
  • the function required to respond to button c is to decrease the volume
  • the function required to respond to button a is to increase the volume
  • the function required to respond to button b is to switch on and off
  • the function required to respond to button c is to increase the volume.
  • the responsive function is to lower the volume.
  • the function required to respond to key a in the key group on the mobile phone 100 is to increase the volume, and the function required to respond to key b is to switch the phone on and off.
  • the desired response of the key c is to lower the volume.
  • the key event can be responded to with the target function.
  • the target function to be responded to by each button in the button group on the mobile phone 100 is: the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is a switch machine, in the button event, if the user triggers button a, the function corresponding to volume adjustment will be executed at this time, and if the user triggers button b, the function corresponding to power on/off will be executed at this time.
  • the function of the button 233 is to adjust the volume
  • the function of the button 234 is to switch the machine
  • the function of 234 is volume adjustment, as shown in Figure 10, the user's holding posture is the right hand at this time, when the user triggers the button 234, the mobile phone 100 can respond to the volume adjustment function; as shown in Figure 11, At this time, the user's holding posture is left hand holding, and at this time, when the user triggers the button 233, the mobile phone 100 can respond to the function of volume adjustment.
  • S802 can also be replaced with "according to the holding posture, determine the target function that each button in the button group on the mobile phone 100 needs to respond to.
  • the button group includes at least one button, wherein different holding postures correspond to Each button in the button group needs to respond to a different target function", and at the same time, S803 can be replaced with "when the button event is obtained, respond to the button event with the determined target function". That is to say, after the holding posture is determined, the function of each button can be determined according to the holding posture first, and then, when a certain button is triggered, the function of the button can be determined to respond to the button event, that is, the output The function of this key.
  • the button a when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
  • the volume of the output audio if the currently determined holding posture is right-hand holding, and the determined function of the button a under the right-hand holding is to lower the volume, then when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
  • the volume of the output audio if the currently determined holding posture is right-hand holding, and the determined function of the button a under the right-hand holding is to lower the volume, then when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
  • the volume of the output audio if the currently determined holding posture is right-hand holding, and the determined function of the button a under the right-hand holding is to lower the volume, then when the button a is triggered, it can output the lowering volume, that is, lowering the mobile phone 100.
  • the volume of the output audio if the currently determined
  • the key a can be called the fourth key, and the function required to respond to the key a when the holding posture is held by the left hand can be called the sixth function, and the required response of the key a can be called when the holding posture is held by the right hand
  • the function can be called the seventh function; wherein, when the holding posture is left-handed, if the fourth button is triggered, the sixth function is output; when the holding posture is right-handed, if the fourth button is triggered, the output Seventh function.
  • the fourth button may be the same as the first button described above.
  • the sixth function may be the same as the first function or the second function described above
  • the seventh function may be the same as the first function or the second function described above, wherein the sixth function is different from the seventh function .
  • the mobile phone 100 According to the user's current holding posture of the mobile phone, adaptively adjust the function that each button in the key group on the mobile phone 100 needs to respond to, so that when the user holds the mobile phone 100 When the gesture occurs, it can also provide button functions that meet the user's usage habits, avoiding the problem that the function of the buttons on the mobile phone 100 is not synchronized with the normal use function when the user holds the mobile phone 100 when the holding posture occurs, and improves the user experience.
  • an embodiment of the present application provides another method for controlling a button of an electronic device.
  • the method can adaptively adjust the response function of each button in the button group on the electronic device according to the rotation angle of the electronic device when the electronic device rotates, so that when the electronic device rotates, it can also provide buttons that meet the user's usage habits functions to improve user experience.
  • the display screen on the mobile phone 100 at this time may be a folding screen or a non-folding screen, which is not limited here.
  • the physical form of the folding screen may be a folded state or an unfolded state, which is not limited here.
  • Fig. 12 shows a schematic flow chart of a key control method of a mobile phone 100, as shown in Fig. 12, the method may include the following steps:
  • a spatial coordinate system may be pre-built, wherein, in the spatial coordinate system, the x-axis is an axis parallel to the side of the mobile phone 100, the z-axis is an axis perpendicular to the display screen of the mobile phone 100, and the y-axis is an axis perpendicular to x axis and the axis of the plane on which the z-axis lies.
  • the gyroscope sensor in the mobile phone 100 (such as the gyroscope sensor 180B shown in FIG. 1 ) can be used to obtain information on the plane where the x-axis and y-axis are located relative to the mobile phone 100.
  • the rotation angle of the reference state of 100 wherein, the reference state refers to the state of the mobile phone 100 when the lower side of the mobile phone 100 is parallel to the horizontal plane
  • the button group includes at least one button, wherein each of the button groups corresponding to different rotation angles
  • the target function for which the keys need to respond differs.
  • the target function to be responded to by each button in the button group of the mobile phone 100 can be determined according to the rotation angle.
  • the button group includes at least one button, wherein each button in the button group corresponding to a different rotation angle The target function of the desired response is different.
  • the mapping relationship between the function to be responded to by each button in the button group on the mobile phone 100 and the rotation angle of the mobile phone 100 can be preset, so that after the key event is obtained, according to the obtained rotation angle, By querying the mapping relationship, it is possible to determine the target function that each button in the button group on the mobile phone 100 needs to respond to at the rotation angle.
  • the mapping relationship between the function to be responded to by each button in the button group on the mobile phone 100 and the rotation angle is preset, as shown in Table 5.
  • the buttons in the button group include button a and button b, wherein, when the rotation angle is 0°, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is volume adjustment; the rotation angle When the angle is 90°, the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is to switch on and off; when the rotation angle is 180°, the function to be responded to by button a is to switch on and off, and the function to be responded to by button b It is volume adjustment; when the rotation angle is 270°, the function that button a needs to respond to is volume adjustment, and the function that button b needs to respond to is power on and off; when the rotation angle is 360°, the function that button a needs to respond to is power on and off, The function to be responded to by button
  • the function that the key a in the key group on the mobile phone 100 needs to respond to is volume adjustment, and the function that key b needs to respond to is power on and off.
  • the functions corresponding to power on and off may include power on, power off, screen lock, screen bright, etc., which are not limited here.
  • buttons in the button group include button a, button b and button c, where, when the rotation angle is 0°, the function that button a needs to respond to is power on and off, and the function that button b needs to respond to is to increase Volume, the function that the button c needs to respond to is to decrease the volume; when the rotation angle is 90°, the function that the button a needs to respond to is to increase the volume, the function that the button b needs to respond to is turning on and off, and the function that the button c needs to respond to is Decrease the volume; when the rotation angle is 180°, the response function of button a is to increase the volume, the response function of button b is to switch on and off, and the response function of button c is to reduce the volume; when the rotation angle is 270°, the response function of button The function to be responded to by a is to
  • the function of the key a in the key group on the mobile phone 100 is to increase the volume, and the function of the key b is to switch the machine on and off.
  • the function that the button c needs to respond to is to lower the volume.
  • the key event can be responded to with the target function.
  • the target function to be responded to by each button in the button group on the mobile phone 100 is: the function to be responded to by button a is volume adjustment, and the function to be responded to by button b is a switch machine, in the button event, if the user triggers button a, the function corresponding to volume adjustment will be executed at this time, and if the user triggers button b, the function corresponding to power on/off will be executed at this time.
  • button a may be called a third button, and the function to be responded to by button a may be a fifth function; wherein, when the third button is triggered, the fifth function may be output.
  • the third key and the first key described above may be the same key, and in this case, the fifth function is the same as the first function or the second function described above.
  • the mobile phone 100 is pre-defined when the mobile phone is not rotated and the mobile phone is in a normal use state, and the physical form of the folding screen of the mobile phone 100 is unfolded (that is, the state shown in (A) of FIG. 13 ), this When the status bar in the mobile phone 100 is located at the top of the screen of the mobile phone 100, this state can be understood as the reference state described above), the function of the button 235 is volume adjustment, and the function of the button 236 is to switch the machine. When the key 235 is pressed, the mobile phone 100 can respond to the function of volume adjustment, and when the user presses the key 236, the mobile phone 100 can respond to the function of switching on and off.
  • the mobile phone 100 switches from the state shown in (A) of FIG. 13 to the state shown in (B) of FIG. 13 .
  • the function of the button 235 is to switch on and off, and the function of the button 236 is to adjust the volume.
  • the mobile phone 100 can respond to the function of volume adjustment.
  • the mobile phone 100 is switched from the state shown in Figure 13 (B) to the state shown in Figure 13 (C). state.
  • the function of the button 235 is to switch on and off, and the function of the button 236 is to adjust the volume.
  • the mobile phone 100 can respond to the function of volume adjustment.
  • the mobile phone 100 is switched from the state shown in Figure 13 (C) to the state shown in Figure 13 (D). state.
  • the function of the button 235 is to switch on and off, and the function of the button 236 is to adjust the volume.
  • the mobile phone 100 can respond to the function of volume adjustment.
  • the mobile phone 100 is switched from the state shown in (D) of FIG. 13 to the one shown in (A) of FIG. 13 . state.
  • the function of the buttons on the mobile phone 100 can also be adaptively adjusted according to the rotation angle. This adjustment process is similar to that of the mobile phone shown in FIG. 13 .
  • the physical form of the folding screen of 100 is similar to that in the unfolded state, and will not be repeated here.
  • S1202 can also be replaced with "according to the rotation angle, determine the target function that each button in the button group of the mobile phone 100 needs to respond to.
  • the button group includes at least one button, wherein the button groups corresponding to different rotation angles
  • the target function that needs to be responded to by each key is different”
  • S1203 can be replaced with "when the key event is obtained, respond to the key event with the determined target function”. That is to say, after the rotation angle is determined, the function of each button can be determined according to the rotation angle, and then, when a button is triggered, the function of the button can be determined to respond to the button event, that is, the button can be output function. For example, if the currently determined rotation angle is 90°, and the function of the key a is to decrease the volume, then when the key a is triggered, the volume can be decreased, that is, the volume of the output audio of the mobile phone 100 can be decreased.
  • the general mobile phone 100 will switch between horizontal and vertical screens, and at this time the positions of the buttons on the mobile phone 100 will also change accordingly. Therefore, when the mobile phone 100 is rotated, according to the rotation Angle, the function of adaptively adjusting the response required by each button in the button group on the electronic device, can make it possible to provide button functions that meet the user's usage habits when the electronic device rotates, thereby improving user experience.
  • the mobile phone 100 can be simultaneously selected according to any two or three of the physical form of the folding screen of the mobile phone 100, the user's holding posture of the mobile phone 100, or the rotation angle of the mobile phone 100.
  • the functions of the buttons on the mobile phone 100 are adaptively adjusted, and the specific adjustment process may combine the above-mentioned embodiments, which will not be repeated here.
  • FIG. 14 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • a chip 1400 includes one or more processors 1401 and an interface circuit 1402 .
  • the chip 1400 may also include a bus 1403 . in:
  • the processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1401 or instructions in the form of software.
  • the above-mentioned processor 1401 may be a general-purpose processor, a digital communicator (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
  • DSP digital communicator
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the interface circuit 1402 can be used for sending or receiving data, instructions or information.
  • the processor 1401 can use the data, instructions or other information received by the interface circuit 1402 to process, and can send the processing completion information through the interface circuit 1402 .
  • the chip further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • the memory stores executable software modules or data structures, and the processor can execute corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).
  • the interface circuit 1402 may be used to output an execution result of the processor 1401 .
  • processor 1401 and the interface circuit 1402 can be realized by hardware design, software design, or a combination of software and hardware, which is not limited here.
  • each step in the foregoing method embodiments may be implemented by logic circuits in the form of hardware or instructions in the form of software in the processor.
  • the chip can be applied to the above-mentioned electronic device (such as the mobile phone 100) to implement the method provided in the embodiment of the present application.
  • processor in the embodiments of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor can be a microprocessor, or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or known in the art any other form of storage medium.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted via a computer-readable storage medium.
  • the computer instructions may be transmitted from one website site, computer, server, or data center to another website site by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.

Abstract

一种电子设备的按键控制方法及电子设备,该电子设备包括显示屏和至少一个按键,显示屏为折叠屏,其中,在用户使用电子设备的过程中,可以根据电子设备的折叠屏的物理形态自适应调整电子设备上按键所需响应的功能,使得在电子设备的折叠屏处于不同的物理形态下时也能够提供符合用户使用习惯的按键功能,避免了出现在电子设备的折叠屏处于不同的物理形态下时电子设备上的按键的功能与正常使用功能不同步的问题,提升了用户体验。

Description

一种电子设备的按键控制方法及电子设备
本申请要求于2021年7月16日提交中国国家知识产权局、申请号为202110808766.2、申请名称为“一种电子设备的按键控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种电子设备的按键控制方法及电子设备。
背景技术
随着电子技术的发展,电子设备(比如,手机等)上显示屏的形态发生了较大的变化,电子设备(比如,手机等)本身的形态也出现了多样化、在某些使用场景下,由于电子设备(比如,手机等)的形态或者用户握持的差异,会出现电子设备(比如,手机等)原始的使用按键与正常使用习惯不符合的情况,影响用户的使用体验。
发明内容
为了实现上述的技术目的,本申请提供了一种电子设备的按键控制方法、电子设备、计算机存储介质和计算机程序产品,能够实现自适应调整电子设备上按键的功能,从而使得电子设备上的按键能够与用户的使用习惯相符,提升了用户体验。
第一方面,本申请提供了一种电子设备的按键控制方法,该电子设备可以包括显示屏和至少一个按键,该显示屏可以为折叠屏,该折叠屏的物理形态可以包括折叠态或展开态,其中,至少一个按键包括第一按键,在折叠屏的物理形态为折叠态时第一按键的功能为第一功能,在折叠屏的物理形态为展开态时第一按键的功能为第二功能;该方法可以包括:在物理形态为折叠态时,若第一按键被触发,输出第一功能;在物理形态为展开态时,若第一按键被触发,输出第二功能。这样,在用户使用电子设备的过程中,可以根据电子设备的折叠屏的物理形态自适应调整电子设备上按键所需响应的功能,使得在电子设备的折叠屏处于不同的物理形态下时也能够提供符合用户使用习惯的按键功能,避免了出现在电子设备的折叠屏处于不同的物理形态下时电子设备上的按键的功能与正常使用功能不同步的问题,提升了用户体验。
根据第一方面,至少一个按键还包括第二按键,在折叠屏的物理形态为折叠态时第二按键的功能为第三功能,在折叠屏的物理形态为展开态时第二按键的功能为第四功能;其中,第一功能与第四功能相同,第二功能与第三功能相同。这样,当电子设备上包括两个按键时,在电子设备的折叠屏处于不同状态时,这两个按键的功能可以相互替换,以提供符合用户使用习惯的按键功能,提升用户体验。
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备的折叠屏包括内屏和外屏,内屏包括第一屏和第二屏,外屏位于电子设备的第一机身,第一屏位于第一机身,第二屏位于电子设备的第二机身;其中,第一按键和第二按键均设置在第一机身上。这样,将两个按键设置在同一机身上,可以在折叠屏的物理形态发生变化时也能提供符合用户习惯的按键功能。
根据第一方面,或者以上第一方面的任意一种实现方式,第一按键和第二按键均位于第一机身的第一侧。这样,将两个按键设置在电子设备的同一侧,以便于用户操作,提升用户操作体验。
根据第一方面,或者以上第一方面的任意一种实现方式,在物理形态为折叠态时,第一按键的功能为开关机,第二按键的功能为音量调节;在物理形态为展开态时,第一按键的功能为音量调节,第二按键的功能为开关机。
根据第一方面,或者以上第一方面的任意一种实现方式,该方法还可以包括:获取折叠屏的折叠角度;根据折叠角度,确定物理形态。这样,通过折叠屏的折叠角度即可以获知到折叠屏的物理形态。
根据第一方面,或者以上第一方面的任意一种实现方式,根据折叠角度,确定物理形态,具体可以包括:在折叠角度大于预设角度时,确定物理形态为展开态;在折叠角度小于或等于预设角度时,确定物理形态为折叠态。这样,根据折叠角度和预先设定的预设角度,即可以确定出折叠屏的物理形态。
根据第一方面,或者以上第一方面的任意一种实现方式,该方法还可以包括:在检测到电子设备以z轴为轴发生转动后,根据电子设备在x轴和y轴所在的平面上相对电子设备的基准态的转动角度,确定至少一个按键中第三按键的第五功能,其中,z轴为垂直于电子设备的显示屏的轴,x轴为与电子设备的侧部平行的轴,y轴为垂直于x轴和z轴所在的平面的轴,基准态是指电子设备的下侧边与水平面平行,且电子设备的上侧边与水平面的距离大于或等于下侧边与水平面的距离时电子设备所处的状态;在第三按键被触发时,输出第五功能。这样,在电子设备发生转动时,可以根据电子设备的转动角度,自适应调整电子设备上按键组中各个按键所需响应的功能,使得在电子设备发生转动时时也能够提供符合用户使用习惯的按键功能,提升用户体验。
根据第一方面,或者以上第一方面的任意一种实现方式,第三按键与第一按键相同,第五功能与第一功能或第二功能相同。
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备被握持的握持姿势包括左手握持或右手握持,在握持姿势为左手握持时至少一个按键中的第四按键的功能为第六功能,在握持姿势为右手握持时第四按键的功能为第七功能,该方法还可以包括:在握持姿势为左手握持时,若第四按键被触发,输出第六功能;在握持姿势为右手握持时,若第四按键被触发,输出第七功能。这样,在用户握持电子设备的姿势发生变化时,可以根据用户当前握持电子设备的握持姿势,自适应调整电子设备上按键组中各个按键所需响应的功能,使得在用户握持电子设备的握持姿势发生时也能够提供符合用户使用习惯的按键功能,避免了出现在用户握持电子设备的握持姿势发生时电子设备上的按键的功能与正常使用功能不同步的问题,提升了用户体验。
根据第一方面,或者以上第一方面的任意一种实现方式,第四按键与第一按键相同。
根据第一方面,或者以上第一方面的任意一种实现方式,第六功能与第一功能或第二功能相同,第七功能与第一功能或第二功能相同,其中,第六功能与第七功能不同。
第二方面,本申请提供了一种电子设备的按键控制方法,该电子设备可以包括显示屏和至少一个按键,至少一个按键包括第三按键;该方法可以包括:在检测到电子设备以z轴为轴发生转动后,根据电子设备在x轴和y轴所在的平面上相对电子设备的基准态的转动角度,确定第三按键所需响应的第五功能,其中,z轴为垂直于电子设备的显示屏的轴,x轴为与电 子设备的侧部平行的轴,y轴为垂直于x轴和z轴所在的平面的轴,基准态是指电子设备的下侧边与水平面平行,且电子设备的上侧边与水平面的距离大于或等于下侧边与水平面的距离时电子设备所处的状态;在第三按键被触发时,输出第五功能。这样,在电子设备发生转动时,可以根据电子设备的转动角度,自适应调整电子设备上按键组中各个按键所需响应的功能,使得在电子设备发生转动时时也能够提供符合用户使用习惯的按键功能,提升用户体验。
第三方面,本申请提供了一种电子设备的按键控制方法,该电子设备可以包括显示屏和至少一个按键,至少一个按键包括第四按键,电子设备被握持的握持姿势包括左手握持或右手握持,在握持姿势为左手握持时第四按键的功能为第六功能,在握持姿势为右手握持时第四按键的功能为第七功能,该方法可以包括:在握持姿势为左手握持时,若第四按键被触发,输出第六功能;在握持姿势为右手握持时,若第四按键被触发,输出第七功能。这样,在用户握持电子设备的姿势发生变化时,可以根据用户当前握持电子设备的握持姿势,自适应调整电子设备上按键组中各个按键所需响应的功能,使得在用户握持电子设备的握持姿势发生时也能够提供符合用户使用习惯的按键功能,避免了出现在用户握持电子设备的握持姿势发生时电子设备上的按键的功能与正常使用功能不同步的问题,提升了用户体验。
第四方面,本申请提供了一种电子设备,其特征在于,包括:
至少一个按键;
显示屏,显示屏为折叠屏;
至少一个存储器,用于存储程序;
至少一个处理器,用于执行存储器存储的程序,当存储器存储的程序被执行时,处理器用于执行第一方面及第一方面的任意一种实现方式,或者执行第二方面及第二方面的任意一种实现方式,或者执行第三方面及第三方面的任意一种实现方式。
第四方面及第四方面的任意一种实现方式分别与第一方面及第一方面的任意一种实现方式,或者与第二方面及第二方面的任意一种实现方式,或者与第三方面及第三方面的任意一种实现方式相对应。第二方面以及第二方面中任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面中任意一种实现方式,或者第二方面及第二方面的任意一种实现方式,或者第三方面及第三方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第五方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行第一方面及第一方面的任意一种实现方式,或者执行第二方面及第二方面的任意一种实现方式,或者执行第三方面及第三方面的任意一种实现方式。
第五方面及第五方面的任意一种实现方式分别与第一方面及第一方面的任意一种实现方式,或者与第二方面及第二方面的任意一种实现方式,或者与第三方面及第三方面的任意一种实现方式相对应。第五方面以及第五方面中任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面中任意一种实现方式,或者第二方面及第二方面的任意一种实现方式,或者第三方面及第三方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第六方面,本申请提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行第一方面及第一方面的任意一种实现方式,或者执行第二方面及第二方面的任意一种实现方式,或者执行第三方面及第三方面的任意一种实现方式。
第六方面及第六方面的任意一种实现方式分别与第一方面及第一方面的任意一种实现方式,或者与第二方面及第二方面的任意一种实现方式,或者与第三方面及第三方面的任意一种实现方式相对应。第六方面以及第六方面中任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面中任意一种实现方式,或者第二方面及第二方面的任意一种实现方式,或者第三方面及第三方面的任意一种实现方式所对应的技术效果,此处不再赘述。
附图说明
下面对实施例或现有技术描述中所需使用的附图作简单地介绍。
图1是本申请实施例提供的一种手机的硬件结构示意图;
图2是本申请实施例提供的一种手机的折叠屏由折叠态向展开态变化的过程示意图;
图3是本申请实施例提供的一种手机的结构示意图;
图4是本申请实施例提供的一种手机的操作系统架构示意图;
图5是本申请实施例提供的一种手机的操作系统架构示意图;
图6是本申请实施例提供的一种手机的按键控制方法的流程示意图;
图7是本申请实施例提供的一种手机的按键控制方法的步骤示意图;
图8是本申请实施例提供的一种手机的按键控制方法的流程示意图;
图9是本申请实施例提供的一种手机上按键布置的示意图;
图10是本申请实施例提供的一种右手握持手机的示意图;
图11是本申请实施例提供的一种左手握持手机的示意图;
图12是本申请实施例提供的一种手机的按键控制方法的流程示意图;
图13是本申请实施例提供的一种手机转动过程的变化示意图;
图14是本申请实施例提供的一种芯片的结构示意图。
具体实施方式
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含 地包括一个或者更多个该特征。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例提供了一种电子设备的按键控制方法,可应用于手机、平板电脑等具有折叠屏的电子设备中,本申请实施例对此不作任何限制。其中,该方法可以根据折叠屏的形态自适应调整电子设备上按键的功能,从而使得电子设备上按键的功能可以跟随折叠屏的形态动态进行调整,进而满足不同场景下的用户需求,提升了用户体验。
示例性的,以手机为上述电子设备举例,图1示出了一种手机的结构示意图。如图1所示,该手机100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他手机100,例如AR设备等。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过手机100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过 电源管理模块141为手机100供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在手机100上的包括无线局域网(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)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。示例性的,手机100可以利用无线通信模块160向其他的手机100发送位置信息,例如其自身的位置信息和/或其存储的位置信息,也可以利用无线通信模块160接收其他的手机100发送的位置信息等。
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶 显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。示例性的,显示屏194可以为折叠屏,如图2所示,折叠屏可以包括内屏21和外屏22。其中,内屏21可以包括屏211和屏212。示例性的,屏212可以称之为第一屏,屏211可以称之为第二屏,外屏22所在的机身可以称之为第一机身,屏212位于第一机身上,屏211所在的机身可以称之为第二机身。屏211和屏212之间的夹角可以理解为折叠屏的折叠角度θ。其中,当折叠屏处于未展开状态(即折叠角度θ为0度)时,即图2的(A)所示的状态,手机100可以使用外屏22进行显示。当折叠屏的折叠角度θ大于预设角度(比如:大于15度或20度等)时,手机100可以使用内屏21进行显示,即图2的(B)和(C)所示的状态。此外,当折叠屏的折叠角度θ小于预设角度时,手机100也可以使用外屏22进行显示。继续参阅图2,图2示出了折叠屏的物理形态由折叠态到展开态的变化过程,其中,手机100在图2的(A)所示的状态下,由折叠态翻转展开,随着折叠屏的折叠角度θ逐渐增大,手机100可以到达图2的(B)所示的状态,其中,该状态可以称之为半展开状态。在图2的(B)所示的状态下,继续翻转,直至折叠角度θ达到最大值,即达到180度,此时手机100可以到达图2的(C)所示的状态,其中,该状态可以称之为全展开状态。示例性的,继续参阅图2,在手机100的外屏22所在的机身上可以设置一个按键232,在手机100的内屏21中的屏211所在的机身上可以设置一个按键231;当手机100的折叠屏处于展开态(即图2的(B)和(C)所在的状态)时,按键231和按键232均位于手机100的侧部的上方区域,其中,按键231位于按键232的下方;当手机100的折叠屏处于折叠态(即图2的(A)所在的状态)时,按键232位于按键231的上方。示例性的,按键231可以称之为第一按键,按键232可以称之为第二按键,按键231和按键232所在的手机100的一侧可以称之为第一侧。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行手机100的各种功能应用以及数据处理;例如,执行本申请实施例所提供的方法。
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测手机100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消手机100的抖动,实现 防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
加速度传感器180E可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别手机姿态,应用于横竖屏切换,计步器等应用。
在一些实施例中,手机100可以通过陀螺仪传感器180B和加速度传感器180E检测图2的(B)所示的折叠屏的折叠角度θ。示例性的,继续参阅图2,可以在手机100的内屏21中的屏211所在的机身a上设置陀螺仪传感器180B和加速度传感器180E,以及在手机100的内屏21中的屏212所在的机身b上设置陀螺仪传感器180B和加速度传感器180E。屏211所在的机身a上的陀螺仪传感器可检测机身a转动时的转动角速度,屏211所在的机身a上的加速度传感器可以检测机身a运动时产生的加速度,进而,手机100可以根据屏211所在的机身a上的陀螺仪传感器和加速度传感器检测到数据确定重力G的大小和方向。同样的,手机100也可以根据屏212所在的机身b上陀螺仪传感器和加速度传感器检测到数据确定重力G的大小和方向。进一步地,如图3所示,可以在屏211所在的机身a上和屏212所在的机身b上分别设置对应的坐标系。例如,可以在机身a上设置笛卡尔坐标系01,笛卡尔坐标系01中x轴与机身a的侧边a1平行,y轴与机身a的侧边a2平行,z轴垂直于x轴和y轴组成的平面指向机身a外。同样,可以在机身b上设置笛卡尔坐标系02,笛卡尔坐标系02中x轴与机身b的侧边b1平行,y轴与机身b的侧边b2平行,z轴垂直于x轴和y轴组成的平面指向机身b外。检测到机身a在笛卡尔坐标系01中的重力G的大小和方向,以及机身b在笛卡尔坐标系02中的重力G的大小和方向后,由于笛卡尔坐标系01与笛卡尔坐标系02中y轴的指向相同,因此,重力G在笛卡尔坐标系01中x轴和z轴上的分量G1,与重力G在笛卡尔坐标系02中x轴和z轴平面上的分量G2大小相等,但方向不同。此时,分量G1与G2之间的夹角即为笛卡尔坐标系01与笛卡尔坐标系02之间的夹角,同样,也是机身a和机身b之间的夹角(即折叠角度θ)。
磁传感器180D包括霍尔传感器。手机100可以利用磁传感器180D检测手机100的折叠屏的折叠角度θ。在一个例子中,继续参阅图3,可以在机身a和机身b上分别设置至少一个磁性元件,手机100可以利用磁传感器检测机身a和机身b上的磁性元件之间的磁场的强度,进而根据磁场强度确定出折叠屏的折叠角度θ。示例性的,可以预先标定机身a和机身b上的磁性元件之间的磁场的强度与折叠角度θ之间的映射关系,这样,在获取到机身a和机身b上的磁性元件之间的磁场的强度后,根据预先标定的映射关系,即可以获取到折叠角度θ。此外,手机100也可以根据磁传感器检测到的机身a和机身b上的磁性元件之间的磁场的强度,直接确定手机100的折叠屏的物理形态。例如,当机身a和机身b上的磁性元件之间的磁场的强度大于预设值时,可以确定折叠屏的物理形态为折叠态,当机身a和机身b上的磁性元件之间的磁场的强度小于或等于预设值时,可以确定折叠屏的物理形态为展开态。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同,例如,设置在手机100的背部或侧部等,其中,手机100的背部是指与手机100当前所使用的显示屏相背离的一侧。
按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。示例性的,继续参阅图2,按键231和232均可以设置于手机100的侧部。可以理解的是,当手机100上包括多个按键时,多个按键可以布置在手机100的同一侧,也可以布置在手机100的不同侧,具体可根据实际情况而定,此处不做限定。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。手机100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。
上述手机100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明手机100的软件结构。
图4是本发明实施例的手机100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图4所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,电话管理器,资源管理器,通知管理器、按键管理服务、视图系统等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
电话管理器用于提供手机100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,手机振动,指示灯闪烁等。
按键管理服务可以根据手机100上折叠屏的折叠状态确定按键所需响应的功能,以及在手机100上出现按键事件时,以确定出的按键所需响应的功能响应该按键事件。
视图系统可以包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的系统库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),状态监测服务,2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
状态监测服务可以调用传感器服务(sensor service)启动如图1中所示的陀螺仪传感器180B、加速度传感器180E、磁传感器180D等传感器进行检测。状态监测服务可以根据各个传感器上报的检测数据计算手机100上折叠屏当前的折叠角度θ,以及根据折叠角度θ确定手机100的折叠屏的折叠状态。此外,状态监测服务也可以将确定出的手机100的折叠屏的折叠状态上报给上述的按键管理服务。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
与图4类似的,图5示出了一种手机100中系统内部的数据流向示意图。如图5所示,硬件层的陀螺仪传感器和加速度传感器,或者磁传感器可将检测到的数据上报给传感器(sensor)驱动,传感器驱动通过传感器服务(sensor service)可以将陀螺仪传感器和加速度传感器检测到的数据,或者磁传感器检测到的数据上报状态监测服务。状态监测服务可以根据陀螺仪传感器和加速度传感器检测到的数据,或者根据磁传感器检测到的数据确定出折叠屏的折叠角度,进而确定出折叠屏的折叠状态。状态监测服务可以将折叠屏的折叠状态上报给按键管理服务。
此外,硬件层的按键被触发(比如:按压触碰)时,内核层的按键驱动可以确定出该按键事件,以及将该按键事件上报状态监测服务。状态监测服务可以将该按键事件上报至按键 管理服务。之后,由按键管理服务根据折叠屏的折叠状态决策在该按键事件下当前各个按键的功能,和/或输出相应的功能。
以上即是对手机100的硬件结构和软件架构的相关介绍。接下来,继续以手机100作为本发明实施例中的电子设备为例,结合附图详细阐述本发明实施例提供的一种具有折叠屏的电子设备的控制方法。
示例性的,图6示出了一种手机100的按键控制方法的流程示意图。如图6所示,该方法可以包括以下步骤:
S601、获取手机100的折叠屏的折叠角度。
具体的,可以通过手机100上的传感器获取到手机上折叠屏的折叠角度。示例性的,可以通过图1中的陀螺仪传感器180B和加速度传感器180E获取到折叠屏的折叠角度,也可以通过图1中的磁传感器180D获取到折叠屏的折叠角度,详见上文描述,此处不再赘述。
S602、根据折叠角度,确定折叠屏的物理形态,物理形态包括折叠态或展开态。
具体的,获取到手机100上折叠屏的折叠角度后,可以根据该折叠角度,确定出折叠屏的物理形态,其中,物理形态包括折叠态或展开态。示例性的,折叠态可以是指折叠角度小于或等于预设角度时的手机100的形态,例如,图2的(A)所示的形态;展开态可以是指折叠角度大于预设角度时的手机100的形态,例如,图2的(B)和(C)所示的形态。举例来说,当折叠角度处于(0,20度]时,物理形态可以为折叠态,当折叠角度处于(20度,180度)时,物理形态可以为展开态。
S603、在获取到按键事件时,根据物理形态,确定手机100上的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的物理形态所对应的按键组中各个按键所需响应的目标功能不同。
具体的,当手机100上的按键被触发(比如:按压触发等)时,即可以确定获取到按键事件。在获取到按键事件后,可以根据物理形态,确定手机100上的按键组中各个按键所需响应的目标功能,其中,按键组中包括至少一个按键,且不同的物理形态所对应的按键组中各个按键所需响应的目标功能不同。
示例性的,可以预先设定手机100上按键组中各个按键所需响应的功能与折叠屏的物理形态之间的映射关系,这样,在获取到按键事件后,可以根据折叠屏的物理形态,查询该映射关系,即可以确定出在折叠屏当前所处的物理形态下手机100上的按键组中各个按键所需响应的目标功能。
举例来说,预先设定手机100上按键组中各个按键所需响应的功能与折叠屏的物理形态之间的映射关系,可以如表一所示。在表一中,按键组中的按键包括按键a和按键b,其中,在折叠屏的物理形态为展开态时,按键a所需响应的功能是开关机,按键b所需响应的功能是音量调节;在折叠屏的物理形态为折叠态时,按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机。因此,当在获取到按键事件时,若折叠屏当前的物理形态为折叠态,则手机100上的按键组中按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机。在一个例子中,开关机对应的功能可以包括开机、关机、锁屏、亮屏等等,此处不做限定。
表一
Figure PCTCN2022103407-appb-000001
此外,预先设定手机100上按键组中各个按键所需响应的功能与折叠屏的物理形态之间的映射关系,也可以如表二所示。在表二中,按键组中的按键包括按键a、按键b和按键c,其中,在折叠屏的物理形态为展开态时,按键a所需响应的功能是开关机,按键b所需响应的功能是增大音量,按键c所需响应的功能是降低音量;在折叠屏的物理形态为折叠态时,按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量。因此,当在获取到按键事件时,若折叠屏当前的物理形态为折叠态,则手机100上的按键组中按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量。
表二
Figure PCTCN2022103407-appb-000002
S604、以确定出的目标功能响应按键事件。
具体的,在确定出手机100上的按键组中各个按键所需响应的目标功能,即可以以该目标功能响应按键事件。例如,继续参阅上述表一,若当前确定出的手机100上的按键组中各个按键所需响应的目标功能为:按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机,则在按键事件中,若用户触发的是按键a,此时则执行音量调节对应的功能,若用户触发的是按键b,此时则执行开关机对应的功能。
可以理解的是,S603也可以替换为“根据物理形态,确定手机100上的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的物理形态所对应的按键组中各个按键所需响应的目标功能不同”,同时,S604可以替换为“在获取到按键事件时,以确定出的目标功能响应按键事件”。也即是说,在确定出折叠屏的物理形态后,可以先根据物理形态确定各个按键的功能,之后,在某个按键被触发时,可以以确定出该按键的功能响应该按键事件,即输出该按键的功能。举例来说,当前确定出的折叠屏的物理形态为折叠态, 且确定出的在折叠态下按键a的功能为降低音量,则在按键a被触发时,可以输出降低音量,即降低手机100的输出音频的音量。
示例性的,按键a可以称之为第一按键。在折叠屏的物理形态为折叠态时,按键a(即第一按键)所需响应的功能可以称之为第一功能。在折叠屏的物理形态为展开态时,按键a(即第一按键)所需响应的功能可以称之为第二功能。其中,当折叠屏的物理形态为折叠态时,若按键a(即第一按键)被触发时,则输出第一功能;当折叠屏的物理形态为展开态时,若按键a(即第一按键)被触发时,则输出第二功能。
此外,按键b可以称之为第二按键。在折叠屏的物理形态为折叠态时,按键b(即第二按键)所需响应的功能可以称之为第三功能。在折叠屏的物理形态为展开态时,按键b(即第二按键)所需响应的功能可以称之为第四功能。其中,当折叠屏的物理形态为折叠态时,若按键b(即第二按键)被触发时,则输出第三功能;当折叠屏的物理形态为展开态时,若按键b(即第二按键)被触发时,则输出第四功能。示例性的,第一功能可以与第四功能相同,第二功能可以与第三功能相同。
由此,在用户使用手机100的过程中,根据手机100的折叠屏的物理形态自适应调整手机100上按键组中各个按键所需响应的功能,使得在手机100的折叠屏处于不同的物理形态下时也能够提供符合用户使用习惯的按键功能,避免了出现在手机100的折叠屏处于不同的物理形态下时手机100上的按键的功能与正常使用功能不同步的问题,提升了用户体验。
以上即是对本申请实施例提供的电子设备的按键控制方法的相关介绍。为便于理解,下面继续以上文所描述的手机100为例,对本申请实施例提供的电子设备的按键控制方法进行介绍。
示例性的,图7示出了一种手机100的按键控制方法的流程示意图。在图7中,手机100上具有两个按键,该两个按键可以为图2中所示的按键231和按键232。示例性的,继续参阅图2,在图2的(B)和(C)中,按键231和按键232均位于手机100的侧部的上方区域,且按键231位于按键232的下方,此时按键231可以称之为下键,按键232可以称之为上键;在图2的(A)中,按键231位于按键232的上方,此时按键231可以称之为上键,按键232可以称之为下键。继续参阅7,如图7所示,该方法可以包括以下步骤:
S701、判断手机100是否属于正常开机。
具体的,在手机100开机时,可以判断手机100是否处于正常开机。其中,在手机100属于正常开机时,则执行S702,;在手机100属于非正常开机时,则执行S703。
示例性的,一般的,手机100的运行模式可以包括:正常模式和非正常模式。其中,正常模式可以理解为正常启动手机100的模式,例如,长按手机100上的开关机键等。非正常模式可以理解为是除正常模式以外的模式,例如:刷机(recovery)模式或快速启动(fastboot)模式等。由于控制手机100进入不同的运行模式,往往需要选择不同的按键进行控制,因此,在判断手机100是否属于正常开机时,可以根据用户在控制手机100开机时操作的按键的数量和/或功能判断。例如,当用户仅按一个按键进行开机时,可以判断手机100属于正常开机;当用户同时按多个按键进行开机时,可以判断手机100属于非正常开机。
可以理解的是,S701并非每次都需要执行。其中,在执行S701之前手机100处于关机状态时,该步骤可以每次均执行。而在手机100已经正常开机后,则可以选择不用再执行该步骤,而是直接执行S702。
S702、在手机100开机后获取手机100上的折叠屏的折叠角度。
具体的,在判断出手机100属于正常开机后,可以在手机100开机后,即在用户正常使用手机100过程中,获取手机100上的折叠屏的折叠角度。
示例性的,继续参阅图1,可以通过手机100上的陀螺仪传感器180B和加速度传感器180E获取折叠屏的折叠角度,也可以通过手机100上的磁传感器180D(比如:霍尔传感器)获取折叠屏的折叠角度,详见上文描述,此处不再赘述。在一个例子中,由于磁传感器的检测精度较低,因此在该步骤中可以选用陀螺仪传感器和加速度传感器获取折叠屏的折叠角度。
S703、在手机100开机时获取折叠屏的折叠角度。
具体的,在判断出手机100属于非正常开机后,可以在手机100开机时,获取手机100上的折叠屏的折叠角度。
示例性的,由于此时手机100上的陀螺仪传感器和加速度传感器暂未启动运行,因此此时可以通过手机100上的磁传感器(比如:霍尔传感器)获取折叠屏的折叠角度。
可以理解的是,S702和S703的不同之处在于,S702是在手机100开机后获取折叠屏的折叠角度,而S703是在手机100开机时获取折叠屏的折叠角度。
S704、根据折叠角度,确定折叠屏的物理形态,物理形态包括折叠态或展开态。
具体的,确定出折叠角度后,可以根据该折叠角度,确定折叠屏的物理形态,物理形态包括折叠态或展开态,详见上文图6的S602中的描述,此处不再赘述。
S705、确定获取到按键事件。
具体的,当手机100上的按键a或按键b被触发(比如:按压触发等)时,即可以确定获取到按键事件。
S706、判断折叠屏的物理形态是否是折叠态。
具体的,在S704中判断出折叠屏的物理形态后,在该步骤中即可以确定出折叠屏的物理形态是否是折叠态。其中,当折叠屏的物理形态是折叠态时,则执行S707;当折叠屏的物理形态不是折叠态(即是展开态)时,则执行S708。
S707、以规则m设定的按键功能响应按键事件,规则m中包括按键的功能与折叠态之间的映射关系。
具体的,在折叠屏的物理形态是折叠态时,则可以以规则m设定的按键功能响应按键事件,规则m中包括按键的功能与折叠态之间的映射关系。
示例性的,继续参阅图2的(A),规则m可以为在折叠屏的物理形态是折叠态时,按键231(即上键)响应的按键功能是音量调节键,按键232(即下键)响应的按键功能是开关机键(即power键)。
S708、以规则n设定的按键功能响应按键事件,规则n中包括按键的功能与展开态之间的映射关系。
具体的,在折叠屏的物理形态是展开态时,则可以以规则n设定的按键功能响应按键事件,规则n中包括按键的功能与展开态之间的映射关系。
示例性的,继续参阅图2的(B)和(C),规则n可以为在折叠屏的物理形态是展开态时,按键231(即下键)响应的按键功能是开关机键(即power键),按键232(即上键)响应的按键功能是音量调节键。
由此,当手机100的折叠屏处于折叠态时,用户可以通过操控手机100上的上键(即按键231)调整音量,或者,操作手机100上的下键(即按键232)进行开关机。当手机100的折叠屏处于展开态时,用户可以通过操控手机100上的上键(即按键232)调整音量,或者, 操作手机100上的下键(即按键231)进行开关机。
以上即是对本申请实施例提供的电子设备的按键控制方法。接下来介绍本申请实施例提供的另一种电子设备的按键控制方法。其中,该方法主要是根据用户当前握持电子设备的握持姿势,自适应调整电子设备上按键组中各个按键所需响应的功能,使得在用户握持电子设备的握持姿势发生时也能够提供符合用户使用习惯的按键功能,避免了出现在用户握持电子设备的握持姿势发生时电子设备上的按键的功能与正常使用功能不同步的问题,提升了用户体验。例如,以当前常见电子设备为手机,且手机的屏幕较大为例,当用户左手握持手机时,按键在手机右侧,此时如果要操作按键,需要使用右手去操作,在某些场景(如公交地铁手扶把手)下操作会很不方便,因而需要根据用户的握持姿势,自动识别此时用户使用左手或者右手握持手机,进而自适应调整手机上按键所需响应的功能,方便用户操作,提升用户体验。
示例性的,继续以上文所描述的手机100为例,此时手机100上的显示屏可以为折叠屏,也可以为非折叠屏,此处不做限定。其中,图8示出了一种手机100的按键控制方法的流程示意图。在图8中所描述的手机100的按键可以包括至少两个按键,且分别设置在手机100的屏幕的不同侧。例如,如图9所示,按键233设置在手机100的屏幕的左侧,按键234设置在手机100的屏幕的右侧。
如图8所示,该方法包括以下步骤:
S801、确定用户当前握持手机100的握持姿势,其中,握持姿势包括左手握持或右手握持。
具体的,在手机100上可以设置有触控器件(比如:图1中所示的触摸传感器180K),该触控器件可以周期性或实时上报用户当前的触摸位置。进而根据该触摸位置,使用预设的握持算法确定出用户当前握持手机的握持姿势,其中,握持姿势包括左手握持或右手握持。
示例性的,可以通过获取触控器件产生的触控电容值,确定用户当前与手机100接触的各个点的位置(即各个触摸位置)。进而根据各个点的位置,确定出用户的手掌与手机100的接触面的形状。之后,将该接触面的形状与预先设定的左手握持形状和右手握持形状进行对比,确定该接触面的形状与预先设定的左手握持形状的相似度,以及确定该接触面的形状与预先设定的右手握持形状的相似度。最后,选取相似度最高的值对应的握持形状作为当前的握持姿势。例如,当该接触面的形状与预先设定的左手握持形状的相似度最高时,则当前的握持姿势为左手握持;当该接触面的形状与预先设定的右手握持形状的相似度最高时,则当前的握持姿势为右手握持。
S802、在获取到按键事件时,根据握持姿势,确定手机100上的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的握持姿势所对应的按键组中各个按键所需响应的目标功能不同。
具体的,当手机100上的按键被触发(比如:按压触发等)时,即可以确定获取到按键事件。在获取到按键事件后,可以根据握持姿势,确定手机100上的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的握持姿势所对应的按键组中各个按键所需响应的目标功能不同。
示例性的,可以预先设定手机100上按键组中各个按键所需响应的功能与握持姿势之间的映射关系,这样,在获取到按键事件后,可以根据握持姿势,查询该映射关系,即可以确 定出在当前握持姿势下手机100上的按键组中各个按键所需响应的目标功能。
举例来说,预先设定手机100上按键组中各个按键所需响应的功能与握持姿势之间的映射关系,可以如表三所示。在表三中,按键组中的按键包括按键a和按键b,其中,在握持姿势为左手握持时,按键a所需响应的功能是开关机,按键b所需响应的功能是音量调节;在握持姿势为右手握持时,按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机。因此,当在获取到按键事件时,若当前的握持姿势为右手握持,则手机100上的按键组中按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机。在一个例子中,开关机对应的功能可以包括开机、关机、锁屏、亮屏等等,此处不做限定。
表三
Figure PCTCN2022103407-appb-000003
此外,预先设定手机100上按键组中各个按键所需响应的功能与握持姿势之间的映射关系,也可以如表四所示。在表四中,按键组中的按键包括按键a、按键b和按键c,其中,在握持姿势为左手握持时,按键a所需响应的功能是开关机,按键b所需响应的功能是增大音量,按键c所需响应的功能是降低音量;在握持姿势为右手握持时,按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量。因此,当在获取到按键事件时,若握持姿势为右手握持,则手机100上的按键组中按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量。
表四
Figure PCTCN2022103407-appb-000004
S803、以确定出的目标功能响应按键事件。
具体的,在确定出手机100上的按键组中各个按键所需响应的目标功能,即可以以该目标功能响应按键事件。例如,继续参阅上述表三,若当前确定出的手机100上的按键组中各个按键所需响应的目标功能为:按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机,则在按键事件中,若用户触发的是按键a,此时则执行音量调节对应的功能,若 用户触发的是按键b,此时则执行开关机对应的功能。
举例来说,若手机100中预先定义的在左手握持状态下,按键233的功能是音量调节,按键234的功能是开关机;在右手握持状态下,按键233的功能是开关机,按键234的功能是音量调节,则如图10所示,此时用户的握持姿势为右手握持,这时在用户触发按键234时,手机100可以响应音量调节的功能;如图11所示,此时用户的握持姿势为左手握持,这时在用户触发按键233时,手机100可以响应音量调节的功能。
可以理解的是,S802也可以替换为“根据握持姿势,确定手机100上的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的握持姿势所对应的按键组中各个按键所需响应的目标功能不同”,同时,S803可以替换为“在获取到按键事件时,以确定出的目标功能响应按键事件”。也即是说,在确定出握持姿势后,可以先根据握持姿势确定各个按键的功能,之后,在某个按键被触发时,可以以确定出该按键的功能响应该按键事件,即输出该按键的功能。举例来说,当前确定出的握持姿势为右手握持,且确定出的在右手握持下按键a的功能为降低音量,则在按键a被触发时,可以输出降低音量,即降低手机100的输出音频的音量。示例性的,按键a可以称之为第四按键,在握持姿势为左手握持时按键a所需响应的功能可以称之为第六功能,在握持姿势为右手握持时按键a所需响应的功能可以称之为第七功能;其中,在握持姿势为左手握持时,若第四按键被触发,输出第六功能;在握持姿势为右手握持时,若第四按键被触发,输出第七功能。示例性的,第四按键可以与上文所描述的第一按键相同。此外,第六功能可以与上文所描述的第一功能或第二功能相同,第七功能可以与上文所描述的第一功能或第二功能相同,其中,第六功能与第七功能不同。
由此,在用户使用手机100的过程中,根据用户当前握持手机的握持姿势,自适应调整手机100上按键组中各个按键所需响应的功能,使得在用户握持手机100的握持姿势发生时也能够提供符合用户使用习惯的按键功能,避免了出现在用户握持手机100的握持姿势发生时手机100上的按键的功能与正常使用功能不同步的问题,提升了用户体验。
在一个例子中,除了上述所描述的电子设备的按键控制方法外,本申请实施例还提供了另一种电子设备的按键控制方法。该方法可以在电子设备发生转动时,根据电子设备的转动角度,自适应调整电子设备上按键组中各个按键所需响应的功能,使得在电子设备发生转动时时也能够提供符合用户使用习惯的按键功能,提升用户体验。
示例性的,继续以上文所描述的手机100为例,此时手机100上的显示屏可以为折叠屏,也可以为非折叠屏,此处不做限定。其中,当手机100上的显示屏为折叠屏时,该折叠屏的物理形态可以是折叠态,也可以是展开态,此处不做限定。图12示出了一种手机100的按键控制方法的流程示意图,如图12所示,该方法可以包括以下步骤:
S1201、在检测到手机100以z轴为轴发生转动时,获取手机100在x轴和y轴所在的平面上相对手机100的基准态的转动角度,其中,z轴为垂直于手机100的显示屏的轴,x轴为与手机100的侧部平行的轴,y轴为垂直于x轴和z轴所在的平面的轴,基准态是指手机100的下侧边与水平面平行,且手机100的上侧边与水平面的距离大于或等于手机100的下侧边与水平面的距离时手机100所处的状态。
具体的,可以预先构建空间坐标系,其中,在空间坐标系中,x轴为与手机100的侧部平行的轴,z轴为垂直于手机100的显示屏的轴,y轴为垂直于x轴和z轴所在的平面的轴。 在手机100以z轴为轴发生转动时,可以利用手机100中的陀螺仪传感器(比如图1中所示的陀螺仪传感器180B),获取手机100在x轴和y轴所在的平面上相对手机100的基准态的转动角度,其中,基准态是指手机100的下侧边与水平面平行时手机100所处的状态
S1202、在获取到按键事件时,根据转动角度,确定手机100的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的转动角度所对应的按键组中各个按键所需响应的目标功能不同。
具体的,当手机100上的按键被触发(比如:按压触发等)时,即可以确定获取到按键事件。在获取到按键事件后,可以根据转动角度,确定手机100的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的转动角度所对应的按键组中各个按键所需响应的目标功能不同。
示例性的,可以预先设定手机100上按键组中各个按键所需响应的功能与手机100的转动角度之间的映射关系,这样,在获取到按键事件后,可以根据获取到的转动角度,查询该映射关系,即可以确定出在该转动角度下手机100上的按键组中各个按键所需响应的目标功能。
举例来说,预先设定手机100上按键组中各个按键所需响应的功能与转动角度之间的映射关系,可以如表五所示。在表五中,按键组中的按键包括按键a和按键b,其中,转动角度为0°时,按键a所需响应的功能是开关机,按键b所需响应的功能是音量调节;转动角度90°时,按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机;转动角度180°时,按键a所需响应的功能是开关机,按键b所需响应的功能是音量调节;转动角度270°时,按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机;转动角度为360°时,按键a所需响应的功能是开关机,按键b所需响应的功能是音量调节。因此,当在获取到按键事件时,若手机100的转动角度为90°,则手机100上的按键组中按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机。在一个例子中,开关机对应的功能可以包括开机、关机、锁屏、亮屏等等,此处不做限定。
表五
Figure PCTCN2022103407-appb-000005
此外,预先设定手机100上按键组中各个按键所需响应的功能与转动角度之间的映射关系,也可以如表六所示。在表六中,按键组中的按键包括按键a、按键b和按键c,其中,转动角度为0°时,按键a所需响应的功能是开关机,按键b所需响应的功能是增大音量,按键c所需响应的功能是降低音量;转动角度90°时,按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量;转动角度180°时,按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量;转动角度270°时,按键a所需响应的功能是开关机,按键b所需响应的功能是降低音 量,按键c所需响应的功能是增大音量;转动角度为360°时,按键a所需响应的功能是开关机,按键b所需响应的功能是增大音量,按键c所需响应的功能是降低音量。因此,当在获取到按键事件时,若手机100的转动角度为90°,则手机100上的按键组中按键a所需响应的功能是增大音量,按键b所需响应的功能是开关机,按键c所需响应的功能是降低音量。
表六
Figure PCTCN2022103407-appb-000006
可以理解的是,表五和表六中的转动角度仅是示意性说明,具体可根据实际情况进行调整,此处不做限定。
S1203、以确定出的目标功能响应按键事件。
具体的,在确定出手机100上的按键组中各个按键所需响应的目标功能,即可以以该目标功能响应按键事件。例如,继续参阅上述表五,若当前确定出的手机100上的按键组中各个按键所需响应的目标功能为:按键a所需响应的功能是音量调节,按键b所需响应的功能是开关机,则在按键事件中,若用户触发的是按键a,此时则执行音量调节对应的功能,若用户触发的是按键b,此时则执行开关机对应的功能。示例性的,按键a可以称之为第三按键,按键a所需响应的功能可以为第五功能;其中,在第三按键被触发时,可以输出第五功能。示例性的,第三按键和上文描述的第一按键可以为同一按键,此时,第五功能与上文所描述的第一功能或第二功能相同。
举例来说,若手机100中预先定义的在手机未转动且手机处于正常使用状态下,以及手机100的折叠屏的物理形态为展开状时(即图13的(A)所示的状态,此时手机100中的状态栏位于手机100的屏幕的顶部,该状态可以理解为上文所描述的基准态),按键235的功能是音量调节,按键236的功能是开关机,此时,在用户触发按键235时,手机100可以响应音量调节的功能,在用户触发按键236时,手机100可以响应开关机的功能。在用户控制手机100逆时针旋转90度后,手机100则由图13的(A)所示的状态切换为图13的(B)所示的状态。其中,在图13的(B)所示的状态下,按键235的功能是开关机,按键236的功能是音量调节,这时在用户触发按键236时,手机100可以响应音量调节的功能。在图13的(B)所示的状态下,用户继续控制手机100逆时针旋转90度后,手机100则由图13的(B)所示的状态切换为图13的(C)所示的状态。其中,在图13的(C)所示的状态下,按键235的功能是开关机,按键236的功能是音量调节,这时在用户触发按键236时,手机100可以响应音量调节的功能。在图13的(C)所示的状态下,用户继续控制手机100逆时针旋转90度后,手机100则由图13的(C)所示的状态切换为图13的(D)所示的状态。其中,在图13的(D)所示的状态下,按键235的功能是开关机,按键236的功能是音量调节,这时在 用户触发按键236时,手机100可以响应音量调节的功能。在图13的(D)所示的状态下,用户继续控制手机100逆时针旋转90度后,手机100则由图13的(D)所示的状态切换为图13的(A)所示的状态。可以理解的是,在图13中,当手机100的折叠屏的物理形态为折叠态时,也可以根据转动角度自适应调整手机100上的按键的功能,该调整过程与图13所示的手机100的折叠屏的物理形态为展开态时类似,此处不再赘述。
可以理解的是,S1202也可以替换为“根据转动角度,确定手机100的按键组中各个按键所需响应的目标功能,按键组中包括至少一个按键,其中,不同的转动角度所对应的按键组中各个按键所需响应的目标功能不同”,同时,S1203可以替换为“在获取到按键事件时,以确定出的目标功能响应按键事件”。也即是说,在确定出转动角度后,可以先根据转动角度确定各个按键的功能,之后,在某个按键被触发时,可以以确定出该按键的功能响应该按键事件,即输出该按键的功能。举例来说,当前确定出的转动角度为90°,且此时按键a的功能为降低音量,则在按键a被触发时,可以输出降低音量,即降低手机100的输出音频的音量。
可以理解的是,在手机100发生转动后,一般的手机100将会出现横竖屏切换,此时手机100上的按键的位置也会相应的发生变化,因此,在手机100发生转动时,根据转动角度,自适应调整电子设备上按键组中各个按键所需响应的功能,可以使得在电子设备发生转动时时也能够提供符合用户使用习惯的按键功能,进而提升用户体验。
可以理解的是,本申请实施例中,手机100可以同时根据手机100的折叠屏的物理形态、用户握持手机100的握持姿势或手机100的转动角度中的任意两种或三种情况,自适应调整手机100上按键的功能,具体调整过程可以将上述实施例进行组合,此处不再赘述。
可以理解的是,本申请的任意实施例的任意特征的全部或部分在不矛盾的前提下,可以自由地、任何地组合。组合后的技术方案也在本申请的范围之内。此外,本申请的任意实施例中的各个步骤的执行顺序在不矛盾的前提下,可根据实际情况进行调整,调整后的技术方案也在本申请的范围之内。
基于上述实施例中的方法,本申请实施例还提供了一种芯片。请参阅图14,图14为本申请实施例提供的一种芯片的结构示意图。如图14所示,芯片1400包括一个或多个处理器1401以及接口电路1402。可选的,芯片1400还可以包含总线1403。其中:
处理器1401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1401可以是通用处理器、数字通信器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。接口电路1402可以用于数据、指令或者信息的发送或者接收,处理器1401可以利用接口电路1402接收的数据、指令或者其它信息,进行加工,可以将加工完成信息通过接口电路1402发送出去。
可选的,芯片还包括存储器,存储器可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。可选的,存储器存储了可执行软件模块或者数据结构,处理器可以通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。
可选的,接口电路1402可用于输出处理器1401的执行结果。
需要说明的,处理器1401、接口电路1402各自对应的功能既可以通过硬件设计实现,也可以通过软件设计来实现,还可以通过软硬件结合的方式来实现,这里不作限制。
应理解,上述方法实施例的各步骤可以通过处理器中的硬件形式的逻辑电路或者软件形式的指令完成。其中,该芯片可应用于上述电子设备(比如:手机100)中,以实现本申请实施例中提供的方法。
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性地存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。

Claims (15)

  1. 一种电子设备的按键控制方法,其特征在于,所述电子设备包括显示屏和至少一个按键,所述显示屏为折叠屏,所述折叠屏的物理形态包括折叠态或展开态,其中,所述至少一个按键包括第一按键,在所述物理形态为折叠态时所述第一按键的功能为第一功能,在所述物理形态为展开态时所述第一按键的功能为第二功能,所述方法包括:
    在所述物理形态为折叠态时,若所述第一按键被触发,输出第一功能;
    在所述物理形态为展开态时,若所述第一按键被触发,输出第二功能。
  2. 根据权利要求1所述的方法,其特征在于,所述至少一个按键还包括第二按键,在所述物理形态为折叠态时所述第二按键的功能为第三功能,在所述物理形态为展开态时所述第二按键的功能为第四功能;
    其中,所述第一功能与所述第四功能相同,所述第二功能与所述第三功能相同。
  3. 根据权利要求2所述的方法,其特征在于,所述折叠屏包括内屏和外屏,所述内屏包括第一屏和第二屏,所述外屏位于所述电子设备的第一机身,所述第一屏位于所述第一机身,所述第二屏位于所述电子设备的第二机身;
    其中,所述第一按键和所述第二按键均设置在所述第一机身上。
  4. 根据权利要求3所述的方法,其特征在于,所述第一按键和所述第二按键均位于所述第一机身的第一侧。
  5. 根据权利要求2-3任一所述的方法,其特征在于,在所述物理形态为折叠态时,所述第一按键的功能为开关机,所述第二按键的功能为音量调节;
    在所述物理形态为展开态时,所述第一按键的功能为音量调节,所述第二按键的功能为开关机。
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述方法还包括:
    获取所述折叠屏的折叠角度;
    根据所述折叠角度,确定所述物理形态。
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述折叠角度,确定所述物理形态,具体包括:
    在所述折叠角度大于预设角度时,确定所述物理形态为展开态;
    在所述折叠角度小于或等于预设角度时,确定所述物理形态为折叠态。
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述方法还包括:
    在检测到所述电子设备以z轴为轴发生转动后,根据所述电子设备在x轴和y轴所在的平面上相对所述电子设备的基准态的转动角度,确定所述至少一个按键中第三按键的第五功能,其中,z轴为垂直于所述电子设备的显示屏的轴,x轴为与所述电子设备的侧部平行的轴,y轴为垂直于x轴和z轴所在的平面的轴,基准态是指所述电子设备的下侧边与水平面平行,且所述电子设备的上侧边与水平面的距离大于或等于所述下侧边与水平面的距离时所述电子设备所处的状态;
    在所述第三按键被触发时,输出所述第五功能。
  9. 根据权利要求8所述的方法,其特征在于,所述第三按键与所述第一按键相同,所述第五功能与所述第一功能或所述第二功能相同。
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述电子设备被握持的握持姿势包 括左手握持或右手握持,在所述握持姿势为左手握持时所述至少一个按键中的第四按键的功能为第六功能,在所述握持姿势为右手握持时所述第四按键的功能为第七功能,所述方法还包括:
    在所述握持姿势为左手握持时,若所述第四按键被触发,输出所述第六功能;
    在所述握持姿势为右手握持时,若所述第四按键被触发,输出所述第七功能。
  11. 根据权利要求10所述的方法,其特征在于,所述第四按键与所述第一按键相同。
  12. 根据权利要求11所述的方法,其特征在于,所述第六功能与所述第一功能或所述第二功能相同,所述第七功能与所述第一功能或所述第二功能相同,其中,所述第六功能与所述第七功能不同。
  13. 一种电子设备,其特征在于,包括:
    至少一个按键;
    显示屏,所述显示屏为折叠屏;
    至少一个存储器,用于存储程序;
    至少一个处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求1-12任一所述的方法。
  14. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-12任一所述的方法。
  15. 一种计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-12任一所述的方法。
PCT/CN2022/103407 2021-07-16 2022-07-01 一种电子设备的按键控制方法及电子设备 WO2023284568A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22841206.0A EP4350471A1 (en) 2021-07-16 2022-07-01 Button control method for electronic device, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110808766.2A CN115617117A (zh) 2021-07-16 2021-07-16 一种电子设备的按键控制方法及电子设备
CN202110808766.2 2021-07-16

Publications (1)

Publication Number Publication Date
WO2023284568A1 true WO2023284568A1 (zh) 2023-01-19

Family

ID=84856050

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/103407 WO2023284568A1 (zh) 2021-07-16 2022-07-01 一种电子设备的按键控制方法及电子设备

Country Status (3)

Country Link
EP (1) EP4350471A1 (zh)
CN (1) CN115617117A (zh)
WO (1) WO2023284568A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777731A (zh) * 2018-05-17 2018-11-09 Oppo广东移动通信有限公司 按键配置方法、装置、移动终端及存储介质
CN109992189A (zh) * 2019-02-22 2019-07-09 华为技术有限公司 屏幕控制方法、电子设备及存储介质
CN110058686A (zh) * 2019-03-27 2019-07-26 南京维沃软件技术有限公司 一种控制方法及终端设备
CN110456864A (zh) * 2019-10-08 2019-11-15 芯海科技(深圳)股份有限公司 柔性设备的控制方法、柔性设备以及存储介质
CN112486346A (zh) * 2019-09-12 2021-03-12 北京小米移动软件有限公司 按键模式设置方法、装置及存储介质
WO2021118201A1 (ko) * 2019-12-13 2021-06-17 삼성전자 주식회사 폴더블 전자 장치 및 상기 폴더블 전자 장치에서 사용자 인터페이스를 표시하는 방법
CN114661177A (zh) * 2020-12-22 2022-06-24 深圳市柔宇科技股份有限公司 可弯折的电子设备及其基于弯折状态变化的切换控制方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777731A (zh) * 2018-05-17 2018-11-09 Oppo广东移动通信有限公司 按键配置方法、装置、移动终端及存储介质
CN109992189A (zh) * 2019-02-22 2019-07-09 华为技术有限公司 屏幕控制方法、电子设备及存储介质
CN110058686A (zh) * 2019-03-27 2019-07-26 南京维沃软件技术有限公司 一种控制方法及终端设备
CN112486346A (zh) * 2019-09-12 2021-03-12 北京小米移动软件有限公司 按键模式设置方法、装置及存储介质
CN110456864A (zh) * 2019-10-08 2019-11-15 芯海科技(深圳)股份有限公司 柔性设备的控制方法、柔性设备以及存储介质
WO2021118201A1 (ko) * 2019-12-13 2021-06-17 삼성전자 주식회사 폴더블 전자 장치 및 상기 폴더블 전자 장치에서 사용자 인터페이스를 표시하는 방법
CN114661177A (zh) * 2020-12-22 2022-06-24 深圳市柔宇科技股份有限公司 可弯折的电子设备及其基于弯折状态变化的切换控制方法

Also Published As

Publication number Publication date
EP4350471A1 (en) 2024-04-10
CN115617117A (zh) 2023-01-17

Similar Documents

Publication Publication Date Title
WO2020155876A1 (zh) 控制屏幕显示的方法及电子设备
WO2022100315A1 (zh) 应用界面的生成方法及相关装置
WO2021063074A1 (zh) 一种分屏显示方法与电子设备
JP7325554B2 (ja) タッチスクリーン表示方法および電子デバイス
WO2021057868A1 (zh) 一种界面切换方法及电子设备
WO2021104030A1 (zh) 一种分屏显示方法及电子设备
KR102534354B1 (ko) 시스템 탐색 바 표시 제어 방법, 그래픽 사용자 인터페이스 및 전자 디바이스
WO2021036628A1 (zh) 一种具有折叠屏的设备的触控方法与折叠屏设备
WO2021129253A1 (zh) 显示多窗口的方法、电子设备和系统
WO2021179924A1 (zh) 一种显示蓝牙设备标识的方法及电子设备
WO2022042656A1 (zh) 一种界面显示方法及设备
WO2022057512A1 (zh) 分屏方法、装置及电子设备
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
CN109416615B (zh) 处理触摸事件的方法和适用于该方法的电子装置
WO2022083465A1 (zh) 电子设备的投屏方法及其介质和电子设备
WO2021129254A1 (zh) 控制屏幕显示的方法和电子设备
WO2022089407A1 (zh) 一种显示方法及电子设备
CN108984259B (zh) 界面显示方法、装置及终端
WO2024032124A1 (zh) 卷轴屏开合方法及相关产品
WO2023284568A1 (zh) 一种电子设备的按键控制方法及电子设备
CN112181915A (zh) 执行业务的方法、装置、终端和存储介质
WO2022089216A1 (zh) 一种界面显示的方法和电子设备
CN108519913B (zh) 应用程序的运行状态管理方法、装置、存储介质及终端
WO2024082989A1 (zh) 全屏显示方法、电子设备及计算机可读存储介质
WO2024067601A1 (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: 22841206

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022841206

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022841206

Country of ref document: EP

Effective date: 20240104

NENP Non-entry into the national phase

Ref country code: DE