CN111314964B - Data flow control method and electronic equipment - Google Patents

Data flow control method and electronic equipment Download PDF

Info

Publication number
CN111314964B
CN111314964B CN202010075821.7A CN202010075821A CN111314964B CN 111314964 B CN111314964 B CN 111314964B CN 202010075821 A CN202010075821 A CN 202010075821A CN 111314964 B CN111314964 B CN 111314964B
Authority
CN
China
Prior art keywords
network mode
input
user
network
application program
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010075821.7A
Other languages
Chinese (zh)
Other versions
CN111314964A (en
Inventor
朱道专
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010075821.7A priority Critical patent/CN111314964B/en
Publication of CN111314964A publication Critical patent/CN111314964A/en
Application granted granted Critical
Publication of CN111314964B publication Critical patent/CN111314964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The embodiment of the invention discloses a data flow control method and electronic equipment, wherein the method is applied to the electronic equipment and comprises the following steps: receiving a first input of a user; responsive to the first input, displaying N network mode identifications of N application icons; receiving a second input of a user to a target application icon in the N application icons; and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon. The data flow control method disclosed by the embodiment of the invention can effectively monitor the data flow under the high-speed network.

Description

Data flow control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data flow control method and electronic equipment.
Background
With the advent of the 5G age, data networks have entered the high-speed age. With the continuous increase of the data network speed of the electronic device, a large amount of traffic is consumed by unintentional and rapid loading and downloading during the use of the electronic device, and the situation that the user use traffic exceeds the package traffic inevitably occurs.
At present, the supervision mode for the data traffic is mainly as follows: flow control is done for background applications. Specifically, the method comprises the following steps: the system monitors the flow consumption of the background application, and when the flow consumption exceeds a preset value, the system outputs prompt information to prompt the user that the background application consumes a large amount of flow, so that the consumption of the flow by the background application is effectively prevented. The monitoring mode of the data flow is effective to the low-speed network flow monitoring, but the network speed of the high-speed network is very fast at present, the low-speed network needs to load or download long-time content, and the low-speed network can be completed instantly under the high-speed network, so that the data flow under the high-speed network cannot be effectively monitored in the existing mode of performing flow control for background application.
Disclosure of Invention
The embodiment of the invention provides a data flow control method, which can solve the problem that a low-speed network flow supervision mode is not suitable for supervision of high-speed network data flow.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data flow control method, which is applied to an electronic device, where the method includes: receiving a first input of a user; responsive to the first input, displaying N network mode identifications of N application icons, the network mode identifications being used to characterize a network mode of an application corresponding to each application icon; receiving a second input of a user to a target application icon in the N application icons; responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon; wherein N is a positive integer.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the first receiving module is used for receiving a first input of a user; the first display module is used for responding to the first input and displaying N network mode identifiers of N application program icons, wherein the network mode identifiers are used for representing the network mode of an application program corresponding to each application program icon; the second receiving module is used for receiving second input of a user on a target application icon in the N application icons; the first adjusting module is used for responding to the second input and adjusting the network mode of the target application program corresponding to the target application program icon; wherein N is a positive integer.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program when executed by the processor implements the steps of any one of the data flow control methods described in the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of any of the data flow control methods described in the embodiments of the present invention.
In the embodiment of the invention, a first input of a user is received; in response to the first input, displaying N network mode identifications of N application icons; receiving a second input of a user to a target application icon in the N application icons; and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon, so that the user can flexibly, conveniently and rapidly switch the network mode of the application program, and the data traffic under the high-speed network can be effectively monitored due to high and flexible switching speed.
Drawings
FIG. 1 is one of the flow charts of a data flow control method provided by an embodiment of the present invention;
FIG. 2 is a first interface schematic diagram of a data flow control method according to an embodiment of the present invention;
FIG. 3 is a second interface schematic diagram of a data flow control method according to an embodiment of the present invention;
FIG. 4 is a second flowchart of a data flow control method according to an embodiment of the present invention;
FIG. 5 is a third interface schematic diagram of a data flow control method according to an embodiment of the present invention;
FIG. 6 is a fourth interface schematic diagram of a data flow control method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating interface changes before and after performing a second input in the data flow control method according to the embodiment of the present invention;
FIG. 8 is a fifth interface schematic diagram of a data flow control method according to an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, one of flowcharts of a data flow control method provided by an embodiment of the present invention is shown.
The data flow control method of the embodiment of the invention comprises the following steps:
step 101: a first input of a user is received.
The first input may be any suitable operation, such as: and the electronic equipment is subjected to shaking operation, operation of holding and pressing double side frames of the electronic equipment by one hand, or pressing operation of a main interface of the multi-electronic equipment.
Step 102: in response to the first input, N network mode identifications of N application icons are displayed.
Wherein N is a positive integer.
Fig. 2 and fig. 3 are schematic diagrams of interface changes of the electronic device before and after receiving the first input. Fig. 2 is a first interface schematic diagram before receiving the first input, fig. 3 is a second interface schematic diagram after receiving the first input, and comparing the two interface schematic diagrams can find that a network mode identifier is displayed on each application icon, where the network mode identifier is a "4G" identifier and a "5G" identifier shown in fig. 3. The network mode identification is used for representing the network mode of the application program corresponding to each application program icon. The network mode identification may also include a "2G" identification.
Step 103: a second input by the user of a target application icon of the N application icons is received.
The second input can trigger the electronic device to display a floating window after the target application icon is selected, and select the target network mode of the target application in the floating window; the second input may also be an operation to slide the target application icon to the reference application icon; the second input may also be a selection operation for a target application icon and a reference application icon, or the like. The specific operation included in the second input is not limited in the embodiment of the present invention.
Step 104: and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon.
For example: and if the network mode of the target application program before adjustment is the first network mode and the target network mode determined by the second input is the second network mode, adjusting the network mode of the target application program from the first network mode to the second network mode.
The data flow control method provided by the embodiment of the invention is characterized by receiving the first input of a user; in response to the first input, displaying N network mode identifications of N application icons; receiving a second input of a user to a target application icon in the N application icons; and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon, so that the user can flexibly, conveniently and rapidly switch the network mode of the application program, and the data traffic under the high-speed network can be effectively monitored due to high and flexible switching speed.
Referring to fig. 4, a second flowchart of a data flow control method according to an embodiment of the present invention is shown.
The data flow control method in the embodiment of the invention comprises the following steps:
Step 201: a first input of a user is received.
The first input may be any suitable operation, such as: and the electronic equipment is subjected to shaking operation, operation of holding and pressing double side frames of the electronic equipment by one hand, or pressing operation of a main interface of the multi-electronic equipment.
Step 202: in response to the first input, N network mode identifications of N application icons are displayed.
The network mode identification is used for representing the network mode of the application program corresponding to each application program icon. A schematic diagram of an electronic interface displaying N network mode identifications with N application icons is shown in fig. 3.
The network mode identification may be graphics, letters, numbers, text, etc., where different graphics characterize different network modes when the network mode identification is graphics, and different letters characterize different network modes when the network mode identification is letters. The combination of numbers and letters representing network modes is shown in fig. 3 as an example of network mode identification.
Step 203: a second input by the user of a target application icon of the N application icons is received.
The second input may be a double click operation, a single click operation, a press operation, or the like, on the target application icon.
Step 204: a floating window is displayed.
The floating window comprises a target program identifier, a first network mode identifier and a second network mode identifier, wherein the target program identifier is used for indicating a target application program corresponding to a target application program icon, the first network mode identifier is used for indicating a first network mode currently used by the target application program, and the second network mode identifier is used for indicating a second network mode to be switched.
The description will be made with reference to fig. 5 by taking the target application program as "WeChat" as an example. A schematic of a third interface with a floating window is shown in fig. 5. The floating window of fig. 5 includes: the target program identifier is "WeChat", the first network mode identifier is "5G" mode marked by the shaded portion, and the second network mode identifier available for switching is "4G" mode marked. The user may trigger the electronic device to switch the network mode of the target application from the first network mode to the second network mode by performing a second input of the second network mode identification in the floating window.
In an alternative way, a first preset control is further included in the floating window; after displaying the floating window, the electronic device may also receive a fourth input from the user to the first preset control; in response to the fourth input, a program identification of at least one application installed in the electronic device and a first network mode identification and a second network mode identification corresponding to each of the at least one application are displayed.
As shown in fig. 5, the first preset control may be the "all applications" option shown in fig. 5. The user may trigger the electronic device to display, in a list, a program identifier of at least one application installed in the electronic device and a first network identifier and a second network mode identifier corresponding to each of the at least one application by executing a fourth input on the first preset control. The fourth input may be a selected operation on the first preset control. A fourth interface diagram showing a program identifier of at least one application installed in the electronic device and a first network identifier and a second network mode identifier corresponding to each of the at least one application is shown in FIG. 6. The method for setting the first preset control, by executing the fourth input on the first preset control, triggers the electronic equipment to display the network mode identifiers of the application programs, and is convenient for a user to know the current network modes of other application programs except the target application program. Moreover, in the fourth interface shown in fig. 6, the user can switch the network modes of any one or more application programs, so that the operation is convenient.
An alternative way is shown in fig. 6, and a low-speed network mode such as a 4G mode and a high-speed network mode such as a 5G mode are displayed in a fourth interface schematic according to different colors or different filling backgrounds, so that the user can conveniently view the images.
Step 205: a third input of a user to the second network mode identification is received.
The third input may be a double click operation, a single click operation, a long press operation, or the like, for the second network mode identification.
Step 206: and responding to the third input, and switching the network mode of the target application program corresponding to the target application program icon from the first network mode to the second network mode.
Step 203 to step 206 illustrate that the network mode of the target application program is switched through the floating window, and in the specific implementation process, the electronic device may further receive a second input of the target application program icon and the reference application program icon from the user; in response to the second input, the network mode of the target application is adjusted to a third network mode, the third network mode being a current network mode of the reference application corresponding to the reference application icon.
The second user input to the target application icon and the reference application icon may include, but is not limited to: and sliding the target application program icon to the reference application program icon, and clicking the target application program icon and the reference application program icon successively. As shown in fig. 7, the user performs a second input to slide the "camera" icon to the "communication" icon, the network mode at the "camera" icon is identified as "4G", the network mode at the "communication" icon is identified as "5G", and the network mode at the "camera" icon is adjusted to "5G" by the slide operation, that is, the network mode of the camera application is adjusted from the 4G mode to the 5G mode. Fig. 7 (a) is a schematic diagram of an interface before the second input is performed, and fig. 7 (b) is a schematic diagram of an interface after the second input is performed.
The method is convenient to operate by sliding the target application program icon to the reference application program icon to adjust the network mode of the target application program.
In an alternative approach, the network mode of the target application may also be adjusted by voice input. The method comprises the steps that the electronic equipment receives voice information input by a user, wherein the voice information is used for indicating the electronic equipment to adjust a target application program from a first network mode to a second network mode; the electronic device adjusts the network mode of the target application in response to the voice information. The mode of adjusting the network mode of the application program through voice input is convenient to operate.
The above-mentioned method for adjusting the network mode of the target application program before the target application program is not started may also be used for adjusting the network mode of the target application program after a certain application program is started in a specific implementation process, where the adjustment method may be as follows:
when the current interface is a program interface of the second application program, receiving a fifth input of a user; in response to the fifth input, displaying a third preset control; receiving a sixth input of a user to a third preset control; and responding to the sixth input, and adjusting the network mode of the second application program based on the current control display state of the third preset control.
The second application program may be a target application program or other application programs installed in the electronic device. The fifth input may be an input triggering the display of a menu of functions, such as: executing a sliding operation in the current interface to trigger the input of a display function menu; for another example: and executing long-press triggering and displaying the input of the function menu in the current interface. The function menu comprises a third preset control, and the third preset control can represent the current network mode of the second application program. A fifth interface schematic diagram displaying a function menu is shown in fig. 8, the third control is the "5G" switch in fig. 8, filling is displayed after the "5G" switch to indicate that the current network mode of the second application program is the 5G mode, if filling is not displayed after the "5G" switch to indicate that the current network mode of the second application program is the 4G mode, a user can control whether the second application program starts the 5G network mode by clicking the "5G" switch.
When the second application program is started and the network mode is adjusted, besides the above-mentioned mode of adjusting the network mode in the function menu by the user, the electronic device may automatically adjust the network mode or the network speed of the started second application program, and the specific adjustment mode may be as follows:
After responding to the second input and adjusting the network mode of the target application program corresponding to the target application program icon, monitoring the network speed under the condition that the network mode corresponding to the second application program running in the foreground is the first network mode; under the condition that the network speed is lower than a preset value, switching a network mode corresponding to a second application program into a second network mode; wherein the network speed of the second network mode is higher than the network speed of the first network mode. For example: the second application program is currently used in a 4G network mode, the monitored network speed is 100KB/S, the user experience is affected by easy blocking under the network speed, and the electronic equipment can switch the second application program to a 5G network mode to adjust the network speed to 400KB/S. In the case where the network mode corresponding to the second application running in the foreground is the second network mode, steps 207 to 209 are executed.
In the mode of automatically adjusting the network mode or the network speed in the running process of the second application program, if the second application program uses the low-speed network in the foreground, the electronic equipment monitors the network speed, and when the network speed is too slow, the electronic equipment automatically cuts into the high-speed network, so that the network use experience of a user can be improved.
Step 207: and under the condition that the network mode corresponding to the second application program running in the foreground is the second network mode, acquiring the interface type of the currently displayed interface.
Interface types may include, but are not limited to: the video interface can be further subdivided according to different resolutions, and the game interface can be further subdivided into a single click game interface, a large game interface and the like.
Step 208: and determining a target network speed gear matched with the interface type.
The second network mode comprises at least two network speed levels, each network speed level corresponds to at least one interface type, and each network speed level corresponds to one network speed value.
An exemplary network speed level versus network speed value correspondence is shown in table 1:
network speed gear Network speed value
5G Level1 1Mb/s
5G Level2 3Mb/s
5G Level3 5Mb/s
5G Level4 10Mb/s
For example: when the currently displayed interface is a picture or a small video, a Level1 gear is used, when the currently displayed interface is detected to be a high-definition video picture, a Level2 gear is used, when the currently displayed interface is detected to be a 720P video picture, a Level3 gear is used, and when the currently displayed interface is detected to be a blue-light video picture, a Level4 gear is used. Different gears are corresponding to different application scenes, so that smooth use experience of users can be ensured under each scene, and the problem that excessive flow is consumed by adopting a high-speed network all the time can be effectively prevented.
Step 209: the network speed is adjusted to a target speed value.
The target speed value is located within a network speed range corresponding to the target network speed gear.
In an alternative way, the network mode and the network state of the application program used by the user are preset for the user of the preset type. In a specific implementation process, the electronic equipment identifies whether the user is a preset type user; under the condition that the user is identified as a preset type user, the current network is adjusted to a low-speed network corresponding to the first network mode; determining a limited application program corresponding to a user of a preset type; the restricted application is set to a network disabled state.
The preset type user can be children, old people and the like.
The method for presetting the limited application program aiming at the preset type of the user can effectively avoid adverse effects caused by networking of the preset type of the user through the limited application program. The method can effectively avoid the problem that the traffic is consumed rapidly by unintentional operation by limiting the mode that the user can use the first network mode only for the preset type of user.
One way of optionally identifying whether the user is a preset type of user is: performing normative recognition on the user operation of the continuous preset times; opening the front camera under the condition that the number of nonstandard operation times exceeds a preset value in the user operation of the preset times; collecting the head portraits of the users through a front camera; and identifying whether the user is a preset type user or not according to the acquired user head portrait.
The mode for identifying whether the user is the user of the preset type can improve the accuracy of user type identification.
The data flow control method provided by the embodiment of the invention is characterized by receiving the first input of a user; in response to the first input, displaying N network mode identifications of N application icons; receiving a second input of a user to a target application icon in the N application icons; and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon, so that the user can flexibly, conveniently and rapidly switch the network mode of the application program, and the data traffic under the high-speed network can be effectively monitored due to high and flexible switching speed. In addition, the flow control method provided by the embodiment of the invention can also adjust the network mode or the network speed of the second application program in the running process of the second application program, and can effectively save the consumption of flow on the premise of providing smooth network use experience for users. In addition, in the flow control method provided by the embodiment of the invention, a special flow control method is set for the preset type user, so that adverse effects caused by the networking of the limited application program of the preset type user can be effectively avoided, and the problem that the flow is rapidly consumed by unintentional operation of the preset type user can be effectively avoided.
Referring to fig. 9, a block diagram of an electronic device according to an embodiment of the present invention is shown. The electronic device can realize the details of the data flow control method in the first two method embodiments and achieve the same effect.
The electronic equipment of the embodiment of the invention comprises: a first receiving module 301, configured to receive a first input of a user; a first display module 302, configured to display N network mode identifiers of N application icons in response to the first input, where the network mode identifiers are used to characterize a network mode of an application corresponding to each application icon; a second receiving module 303, configured to receive a second input from a user to a target application icon of the N application icons; a first adjustment module 304, configured to adjust a network mode of a target application corresponding to the target application icon in response to the second input; wherein N is a positive integer.
Optionally, the electronic device further includes: the second display module is used for displaying a floating window before the first adjustment module responds to the second input to adjust the network mode of the target application program corresponding to the target application program icon after the second receiving module receives the second input of the target application program icon in the N application program icons, wherein the floating window comprises a target program identifier, a first network mode identifier and a second network mode identifier, the target program identifier is used for indicating the target application program corresponding to the target application program icon, the first network mode identifier is used for indicating a first network mode currently used by the target application program, and the second network mode identifier is used for indicating a second network mode to be switched; a third receiving module, configured to receive a third input of the second network mode identifier from the user; the first adjusting module is specifically configured to: and responding to the third input, and switching the network mode of the target application program corresponding to the target application program icon from the first network mode to the second network mode.
Optionally, the floating window further comprises a first preset control; the electronic device further includes: the fourth receiving module is used for receiving fourth input of the user to the first preset control after the second display module displays the floating window; and a third display module, configured to display, in response to the fourth input, a program identifier of at least one application installed in the electronic device and a first network mode identifier and a second network mode identifier corresponding to each of the at least one application.
Optionally, the second receiving module includes: a first sub-module for receiving a second input of a target application icon and a reference application icon by a user; the first adjusting module is specifically configured to: and responsive to the second input, adjusting the network mode of the target application to a third network mode, the third network mode being a current network mode of a reference application corresponding to the reference application icon.
Optionally, the electronic device further includes: the monitoring module is used for monitoring the network speed under the condition that the network mode corresponding to the second application program running in the foreground is the first network mode after the adjusting module responds to the second input and adjusts the network mode of the target application program corresponding to the target application program icon; the switching module is used for switching the network mode corresponding to the second application program into a second network mode under the condition that the network speed is monitored to be lower than a preset value; wherein the network speed of the second network mode is higher than the network speed of the first network mode.
Optionally, the electronic device further includes: the obtaining module is used for obtaining the interface type of the currently displayed interface under the condition that the network mode corresponding to the second application program running in the foreground is the second network mode after the first adjusting module responds to the second input and adjusts the network mode of the target application program corresponding to the target application program icon; the gear determining module is used for determining a target network speed gear matched with the interface type, wherein the second network mode comprises at least two network speed gears; the first network speed adjusting module is used for adjusting the network speed to a target speed value, and the target speed value is positioned in a network speed range corresponding to the target network speed level.
Optionally, the electronic device further includes: the identification module is used for identifying whether the user is a preset type user or not after the first adjustment module responds to the second input and adjusts the network mode of the target application program corresponding to the target application program icon; the second network speed adjusting module is used for adjusting the current network to a low-speed network corresponding to the first network mode under the condition that the user is identified as a preset type user; the limited application determining module is used for determining a limited application program corresponding to the preset type user; and the state setting module is used for setting the limited application program into a network forbidden state.
Optionally, the identification module includes: the normalization recognition sub-module is used for performing normalization recognition on the user operation of the continuous preset times; the starting sub-module is used for starting the front camera under the condition that the non-standard operation times in the user operation of the preset times exceed a preset value; the acquisition sub-module is used for acquiring the user head portrait through the front-facing camera; and the identification sub-module is used for identifying whether the user is a preset type user or not according to the acquired user head portrait.
Optionally, the electronic device further includes: a fifth receiving module, configured to receive a fifth input from the user when the current interface is a program interface of the second application program; the fourth display module is used for responding to the fifth input and displaying a third preset control; the sixth receiving module is used for receiving a sixth input of the user to the third preset control; and the second adjusting module is used for responding to the sixth input and adjusting the network mode of the second application program based on the current control display state of the third preset control.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to 8, and in order to avoid repetition, a description is omitted here.
The electronic equipment provided by the embodiment of the invention receives the first input of the user; in response to the first input, displaying N network mode identifications of N application icons; receiving a second input of a user to a target application icon in the N application icons; and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon, so that the user can flexibly, conveniently and rapidly switch the network mode of the application program, and the data traffic under the high-speed network can be effectively monitored due to high and flexible switching speed.
Referring to fig. 10, a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention is shown.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention, where the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power source 411. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 10 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
A user input unit 407 for receiving a first input of a user; a display unit 406, configured to display N network mode identifiers of N application icons in response to the first input, where the network mode identifiers are used to characterize a network mode of an application corresponding to each application icon; the user input unit 407 is further configured to receive a second input of a target application icon from the N application icons by a user; a processor 410, configured to adjust a network mode of a target application corresponding to the target application icon in response to the second input; wherein N is a positive integer.
The electronic equipment provided by the embodiment of the invention receives the first input of the user; in response to the first input, displaying N network mode identifications of N application icons; receiving a second input of a user to a target application icon in the N application icons; and responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon, so that the user can flexibly, conveniently and rapidly switch the network mode of the application program, and the data traffic under the high-speed network can be effectively monitored due to high and flexible switching speed.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the received downlink data by the processor 410; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 402, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 400. The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive an audio or video signal. The input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, the graphics processor 4041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphics processor 4041 may be stored in memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 405 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 406 is used to display information input by a user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like, where the display panel 4061 is a screen of an electronic device, and the screen of the electronic device includes N areas, under each of which a photosensor is correspondingly disposed.
The user input unit 407 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 4071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 410, and receives and executes commands sent from the processor 410. In addition, the touch panel 4071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 407 may include other input devices 4072 in addition to the touch panel 4071. In particular, other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 4071 may be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 410 to determine the type of touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of touch event. Although in fig. 10, the touch panel 4071 and the display panel 4061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 4071 may be integrated with the display panel 4061 to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 408 is an interface to which an external device is connected to the electronic apparatus 400. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
Memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 409 and invoking data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may also include a power supply 411 (e.g., a battery) for powering the various components, and preferably the power supply 411 may be logically connected to the processor 410 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 400 includes some functional modules, which are not shown, and are not described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 410, a memory 409, and a computer program stored in the memory 409 and capable of running on the processor 410, where the computer program when executed by the processor 410 implements each process of the above embodiment of the data flow control method, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the respective processes of the above-mentioned data flow control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (10)

1. A data flow control method applied to an electronic device, the method comprising:
receiving a first input of a user;
responsive to the first input, displaying N network mode identifications of N application icons, the network mode identifications being used to characterize a network mode of an application corresponding to each application icon;
receiving a second input of a user to a target application icon in the N application icons;
responding to the second input, and adjusting the network mode of the target application program corresponding to the target application program icon;
wherein N is a positive integer;
the receiving a second input of the target application icon by the user comprises:
receiving a second input of a user to the target application icon and the reference application icon;
The responding to the second input, adjusting the network mode of the target application program corresponding to the target application program icon, including:
and responsive to the second input, adjusting the network mode of the target application to a third network mode, the third network mode being a current network mode of a reference application corresponding to the reference application icon.
2. The method of claim 1, wherein after receiving the second input from the user to the target application icon of the N application icons, before adjusting the network mode of the target application corresponding to the target application icon in response to the second input, further comprises:
displaying a floating window, wherein the floating window comprises a target program identifier, a first network mode identifier and a second network mode identifier, the target program identifier is used for indicating a target application program corresponding to the target application program icon, the first network mode identifier is used for indicating a first network mode currently used by the target application program, and the second network mode identifier is used for indicating a second network mode to be switched;
Receiving a third input of the user to the second network mode identifier;
the responding to the second input, adjusting the network mode of the target application program corresponding to the target application program icon, including:
and responding to the third input, and switching the network mode of the target application program corresponding to the target application program icon from the first network mode to the second network mode.
3. The method of claim 2, wherein the floating window further comprises a first preset control;
after the displaying the floating window, the method further comprises:
receiving a fourth input of the user to the first preset control;
and displaying a program identification of at least one application program installed in the electronic device and a first network mode identification and a second network mode identification corresponding to each application program in the at least one application program in response to the fourth input.
4. The method of claim 1, wherein after said adjusting the network mode of the target application corresponding to the target application icon in response to the second input, the method further comprises:
Monitoring network speed under the condition that a network mode corresponding to a second application program running in the foreground is a first network mode;
under the condition that the network speed is lower than a preset value, switching the network mode corresponding to the second application program into a second network mode;
wherein the network speed of the second network mode is higher than the network speed of the first network mode.
5. The method of claim 1, wherein after said adjusting the network mode of the target application corresponding to the target application icon in response to the second input, the method further comprises:
acquiring the interface type of the currently displayed interface under the condition that the network mode corresponding to the second application program running in the foreground is the second network mode;
determining a target network speed gear matched with the interface type, wherein the second network mode comprises at least two network speed gears;
and adjusting the network speed to a target speed value, wherein the target speed value is positioned in a network speed range corresponding to the target network speed level.
6. The method of claim 1, wherein after said adjusting the network mode of the target application corresponding to the target application icon in response to the second input, the method further comprises:
Identifying whether the user is a preset type user;
under the condition that the user is identified as a preset type user, the current network is adjusted to a low-speed network corresponding to a first network mode;
determining a limited application program corresponding to the preset type user;
the restricted application is set to a network disabled state.
7. The method of claim 6, wherein the identifying whether the user is a preset type of user comprises:
performing normative recognition on the user operation of the continuous preset times;
opening the front camera under the condition that the number of nonstandard operation times exceeds a preset value in the preset number of user operations;
collecting the head portraits of the users through a front camera;
and identifying whether the user is a preset type user or not according to the acquired user head portrait.
8. The method of claim 1, wherein the current interface is a program interface of a second application, the method further comprising:
receiving a fifth input of the user;
displaying a third preset control in response to the fifth input;
receiving a sixth input of a user to the third preset control;
and responding to the sixth input, and adjusting the network mode of the second application program based on the current control display state of the third preset control.
9. An electronic device, the electronic device comprising:
the first receiving module is used for receiving a first input of a user;
the first display module is used for responding to the first input and displaying N network mode identifiers of N application program icons, wherein the network mode identifiers are used for representing the network mode of an application program corresponding to each application program icon;
the second receiving module is used for receiving second input of a user on a target application icon in the N application icons;
the first adjusting module is used for responding to the second input and adjusting the network mode of the target application program corresponding to the target application program icon;
wherein N is a positive integer;
the second receiving module includes: a first sub-module for receiving a second input of a target application icon and a reference application icon by a user; the first adjusting module is specifically configured to: and responsive to the second input, adjusting the network mode of the target application to a third network mode, the third network mode being a current network mode of a reference application corresponding to the reference application icon.
10. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the data flow control method according to any one of claims 1 to 8 when executed by the processor.
CN202010075821.7A 2020-01-22 2020-01-22 Data flow control method and electronic equipment Active CN111314964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010075821.7A CN111314964B (en) 2020-01-22 2020-01-22 Data flow control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075821.7A CN111314964B (en) 2020-01-22 2020-01-22 Data flow control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111314964A CN111314964A (en) 2020-06-19
CN111314964B true CN111314964B (en) 2023-09-15

Family

ID=71147038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075821.7A Active CN111314964B (en) 2020-01-22 2020-01-22 Data flow control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111314964B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880706B (en) * 2020-07-23 2021-12-14 维沃移动通信有限公司 Function switching method and device, electronic equipment and readable storage medium
CN114697953A (en) * 2020-12-30 2022-07-01 华为技术有限公司 Network type determining method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014200730A1 (en) * 2013-06-09 2014-12-18 Apple Inc. Device, method, and graphical user interface for sharing content from a respective application
CN104869595A (en) * 2015-05-04 2015-08-26 小米科技有限责任公司 Method and device for controlling data traffic
CN104883747A (en) * 2015-04-29 2015-09-02 联想(北京)有限公司 Information processing method and electronic equipment
CN106304223A (en) * 2015-05-21 2017-01-04 西安中兴新软件有限责任公司 A kind of network mode switching method, Apparatus and system
CN106293339A (en) * 2016-08-01 2017-01-04 深圳市先河系统技术有限公司 A kind of Application Program Interface display packing, system and electric terminal
WO2017206453A1 (en) * 2016-05-31 2017-12-07 宇龙计算机通信科技(深圳)有限公司 Application icon display method and system
CN108616947A (en) * 2018-04-11 2018-10-02 维沃移动通信有限公司 A kind of method and apparatus of network switching
CN109451550A (en) * 2017-08-29 2019-03-08 中兴通讯股份有限公司 A kind of network mode configuration method and mobile terminal
CN110198554A (en) * 2019-05-23 2019-09-03 维沃移动通信有限公司 A kind of network rate method of adjustment and terminal device
CN110445924A (en) * 2019-06-26 2019-11-12 维沃移动通信有限公司 Network task executes method and terminal device
CN110505660A (en) * 2019-07-23 2019-11-26 维沃移动通信有限公司 A kind of network rate method of adjustment and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140136709A1 (en) * 2012-11-15 2014-05-15 Research In Motion Limited System and Method for Resource Management in a Wireless Network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014200730A1 (en) * 2013-06-09 2014-12-18 Apple Inc. Device, method, and graphical user interface for sharing content from a respective application
CN104883747A (en) * 2015-04-29 2015-09-02 联想(北京)有限公司 Information processing method and electronic equipment
CN104869595A (en) * 2015-05-04 2015-08-26 小米科技有限责任公司 Method and device for controlling data traffic
CN106304223A (en) * 2015-05-21 2017-01-04 西安中兴新软件有限责任公司 A kind of network mode switching method, Apparatus and system
WO2017206453A1 (en) * 2016-05-31 2017-12-07 宇龙计算机通信科技(深圳)有限公司 Application icon display method and system
CN106293339A (en) * 2016-08-01 2017-01-04 深圳市先河系统技术有限公司 A kind of Application Program Interface display packing, system and electric terminal
CN109451550A (en) * 2017-08-29 2019-03-08 中兴通讯股份有限公司 A kind of network mode configuration method and mobile terminal
CN108616947A (en) * 2018-04-11 2018-10-02 维沃移动通信有限公司 A kind of method and apparatus of network switching
CN110198554A (en) * 2019-05-23 2019-09-03 维沃移动通信有限公司 A kind of network rate method of adjustment and terminal device
CN110445924A (en) * 2019-06-26 2019-11-12 维沃移动通信有限公司 Network task executes method and terminal device
CN110505660A (en) * 2019-07-23 2019-11-26 维沃移动通信有限公司 A kind of network rate method of adjustment and terminal device

Also Published As

Publication number Publication date
CN111314964A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111381924B (en) Interface display method, electronic equipment and medium
CN109078319B (en) Game interface display method and terminal
CN109379484B (en) Information processing method and terminal
CN111666009B (en) Interface display method and electronic equipment
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN111562896B (en) Screen projection method and electronic equipment
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN110012143B (en) Telephone receiver control method and terminal
CN109558046B (en) Information display method and terminal equipment
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN109889757B (en) Video call method and terminal equipment
CN108984145B (en) Brightness adjusting method and electronic equipment
CN110933494A (en) Picture sharing method and electronic equipment
CN110636225B (en) Photographing method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN111314964B (en) Data flow control method and electronic equipment
CN107729100B (en) Interface display control method and mobile terminal
CN107885423B (en) Picture processing method and mobile terminal
CN112217713B (en) Method and device for displaying message
CN111352566B (en) Parameter adjusting method and electronic equipment
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN109739430B (en) Display method and mobile terminal
CN109660750B (en) Video call method and terminal
CN109462727B (en) Filter adjusting method and mobile terminal
CN111694536A (en) Audio control method, electronic device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant