CN113553181A - User space management and control method, terminal and storage medium - Google Patents

User space management and control method, terminal and storage medium Download PDF

Info

Publication number
CN113553181A
CN113553181A CN202110828861.9A CN202110828861A CN113553181A CN 113553181 A CN113553181 A CN 113553181A CN 202110828861 A CN202110828861 A CN 202110828861A CN 113553181 A CN113553181 A CN 113553181A
Authority
CN
China
Prior art keywords
user space
preset
target
management
control
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.)
Pending
Application number
CN202110828861.9A
Other languages
Chinese (zh)
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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN202110828861.9A priority Critical patent/CN113553181A/en
Publication of CN113553181A publication Critical patent/CN113553181A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a user space management and control method, a terminal and a storage medium, wherein the method comprises the following steps: when the current time reaches a preset control time, determining a target user space and a target control operation corresponding to the preset control time; and executing the target control operation on the target user space. On one hand, the target user space is dynamically closed according to the current time, so that the resource waste caused by long-term continuous background operation of the target user space can be avoided, and the cruising ability of the equipment is improved; on the other hand, the target user space is automatically and dynamically started and operated in the background according to the current time, and the problem that the user needs to wait for starting the running time required by the closed state target space when the user needs to operate the target user space in the foreground is solved.

Description

User space management and control method, terminal and storage medium
Technical Field
The present application relates to the field of terminal control technologies, and in particular, to a user space management and control method, a terminal, and a storage medium.
Background
At present that mobile phone performance is increasingly powerful, a mobile phone can have a plurality of users, user spaces created by each user are mutually isolated and do not influence each other, when one user space is located in a foreground, other user spaces run in a background, and the user spaces can be switched, namely, the user space running in the foreground can be switched to run in the background, the user space running in the background can also be switched to run in the foreground, and one mobile phone can meet the use requirement of multiple people. However, in reality, other secondary user spaces except the primary user space running in the foreground are continuously running in the background, even if the user does not use the requirements of the secondary user spaces, so that the resource consumption of the mobile phone is serious, and the cruising ability of the mobile phone is shortened.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: the multi-user space continues to run in the background, which can result in excessive power consumption of the device.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a user space management and control method, a terminal, and a storage medium, which aim to solve the technical problem in the prior art that a multi-user space continues to run in the background, resulting in too high power consumption of a device.
In order to solve the technical problem, the present application provides a user space management and control method, which is applied to a mobile terminal, and includes the following steps:
s10, when the current time reaches a preset control time, determining a target user space and a target control operation corresponding to the preset control time;
and S20, executing the target management and control operation on the target user space.
Optionally, the step of S10 includes:
when the current time reaches a preset control time, determining a first preset user space corresponding to the preset control time according to a preset mapping relation;
and determining a target user space according to the running state of the first preset user space.
Optionally, determining a target user space according to the operating state of the first preset user space includes:
determining whether a first user space with a foreground operating state exists in the first preset user space;
if not, taking the first preset user space as a target user space; and/or the presence of a gas in the gas,
and if so, taking a first preset user space except the first user space as a target user space.
Optionally, determining a target user space according to the operating state of the first preset user space includes:
determining whether a first user space with a foreground operating state exists in the first preset user space, and determining whether a second user space added with a preset locking mark exists in the first preset user space;
if not, taking the first preset user space as a target user space; and/or the presence of a gas in the gas,
and if a first user space with the operating state being a foreground operating state exists in the first preset user space and/or a second user space added with a preset locking mark exists in the first preset user space, taking the first preset user space except the first user space and/or the second user space as a target user space.
Optionally, before determining, according to a preset mapping relationship, a first preset user space corresponding to the preset management and control time, the method further includes:
determining historical background running time periods of each user space according to the historical running logs;
and determining a preset mapping relation between preset control time and a corresponding first preset user space according to the historical background running time period.
Optionally, a historical log of runs of each user space is recorded.
Optionally, if the target management and control operation is to close a target user space; executing the target management and control operation on the target user space, including:
recording the current running application of the target user space, and closing the target user space;
the preset control time comprises preset running time; after the target management and control operation is performed on the target user space, the method further includes:
and when the current time reaches the preset running time of the target user space, the background runs the target user space, and the running of the current running application of the target user space is recovered.
Optionally, the user space management and control method further includes:
when a user space management and control instruction is detected, determining a user space to be managed and controlled and a target management and control operation according to the user space management and control instruction;
and executing the target management and control operation on the user space to be managed and controlled.
Optionally, after determining the target user space and the target management and control operation corresponding to the preset management and control time when the current time reaches the preset management and control time, the method further includes:
outputting prompt information for executing target control operation on the target user space;
and when a confirmation instruction based on the prompt information is received, executing the target management and control operation on the target user space.
The present application further provides a terminal, including: the system comprises a memory and a processor, wherein the memory is stored with a user space management program, and the user space management program realizes the steps of the method when being executed by the processor.
The present application also provides a computer storage medium having a computer program stored thereon, which, when being executed by a processor, carries out the steps of the method as described above.
As described above, according to the user space management and control method, when the current time reaches the preset management and control time, the target user space and the target management and control operation corresponding to the preset management and control time are determined; and executing the target control operation on the target user space. On one hand, the target user space is dynamically closed according to the current time, so that the resource waste caused by long-term continuous background operation of the target user space can be avoided, and the cruising ability of the equipment is improved; on the other hand, the target user space is automatically and dynamically started and operated in the background according to the current time, and the problem that the user needs to wait for starting the running time required by the closed state target space when the user needs to operate the target user space in the foreground is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a user space management and control method according to a first embodiment;
fig. 4 is a flowchart illustrating a user space managing and controlling method according to a second embodiment;
fig. 5 is a flowchart illustrating a user space management and control method according to a third embodiment.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
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, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then S10 in specific implementation, which should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present application may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 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 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (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 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
First embodiment
Referring to fig. 3, fig. 3 is a flowchart illustrating a user space management and control method according to a first embodiment of the present invention, where the user space management and control method includes:
s10, when the current time reaches a preset control time, determining a target user space and a target control operation corresponding to the preset control time;
optionally, the target management and control operation includes closing the user space or running the user space in the background.
At present that mobile phone performance is increasingly powerful, a mobile phone can have a plurality of users, user spaces created by each user are mutually isolated and do not influence each other, when one user space is located in a foreground, other user spaces run in a background, and the user spaces can be switched, namely, the user space running in the foreground can be switched to run in the background, the user space running in the background can also be switched to run in the foreground, and one mobile phone can meet the use requirement of multiple people. However, since other secondary user spaces except the primary user space running in the foreground are continuously running in the background, sometimes the user does not use the requirements of the secondary user spaces, which may cause the consumption of mobile phone resources to be serious and shorten the cruising ability of the mobile phone.
In this context, the present embodiment provides a user space management and control scheme, which determines a target user space and a target management and control operation corresponding to a preset management and control time when a current time reaches the preset management and control time; the target management and control operation comprises closing a user space or operating the user space in a background; and executing the target control operation on the target user space. On one hand, the target user space is dynamically closed according to the current time, so that the resource waste caused by long-term continuous background operation of the target user space can be avoided, and the cruising ability of the equipment is improved; on the other hand, the target user space is automatically and dynamically started and operated in the background according to the current time, the problem that the user needs to wait for starting the operation time required by the closed state target space when the user needs to operate the target user space in the foreground is solved, and the perception of the user to the background user space is reduced.
The user space management and control method is applied to user space management and control equipment, and the user space management and control equipment can be a terminal, a robot or a PC (personal computer) device. The user space management and control equipment is internally provided with an operating system which has a function of supporting a multi-user mechanism, wherein the multi-user mechanism refers to that a plurality of mutually isolated and mutually unaffected spaces are opened in one equipment and are used by a plurality of users in a time-sharing mode, or the same user is used in different use scenes (such as a working mode, a leisure mode, a parent mode, a child mode and the like). Under the multi-user mechanism, at least one user space runs in the foreground, and other user spaces run in the background or are in a closed state.
In this embodiment, the user space management and control device may monitor the current time, and when it is monitored that the current time reaches the preset management and control time, determine, according to the preset management and control time, a corresponding target user space in which management and control operations are to be performed, and a target management and control operation corresponding to the preset management and control time, where the target management and control operation is of two types, and may be to close the user space or to operate the user space in the background.
In an implementation scenario, the preset control time, the target user space corresponding to the preset control time, and the target control operation to be executed on the target user space are preset in an associated manner, that is, according to the preset control time, the target user space to be currently controlled and the target control operation to be executed on the target user space can be directly determined.
Optionally, the preset control time includes a preset operation time and/or a preset closing time, which may be automatically determined by analyzing, by the user space control device, a historical operation log of each user space in the device recorded by the user space control device. Optionally, a background running time period of each user space is determined according to the historical running log, then a starting background running time (as a preset closing time) and an ending background running time (as a preset running time) of the background running time period of each user space are used as preset control times, correspondingly, a target control operation corresponding to the preset closing time is used for closing a target user space, and a target control operation corresponding to the preset running time is used for running the target user space in the background.
The preset control time and the associated target user space and target control operation may also be manually set by a user or manager of the user space control device according to the use condition of each user space, and the setting of the preset control time is not specifically limited in this embodiment.
To assist in understanding, to cite an example, if a device has three user spaces, A, B and C, the background run time period for user space a is determined from the historical run logs to be 12:00 to the next day 07:00, the background running time period of the B user space is 21:00 to the next day 12:00, the background running time period of the C user space is 07:00 to 21:00, therefore, set 07: 00. 12:00 and 21:00 are preset control time, wherein target user spaces corresponding to 07:00 are A and C, target control operation corresponding to A is that the user space A is operated in the background, and target control operation corresponding to C is that the user space C is closed; 12:00, the corresponding target user spaces are A and B, the target control operation corresponding to A is to close the user space A, and the target control operation corresponding to B is to run the user space C in the background; the target user spaces corresponding to the 21:00 are B and C, the target control operation corresponding to the B is to close the user space B, and the target control operation corresponding to the C is to run the user space C in the background.
Optionally, after determining the target user space and the target management and control operation corresponding to the preset management and control time, prompt information for performing the target management and control operation on the target user space may be further output, for example, "the device will perform the target management and control operation on the target user space, please confirm whether to perform", prompt the user device to perform the target management and control operation on the target user space, and ask the user to confirm whether to perform, when receiving a confirmation instruction based on the prompt information, perform S20, and/or, if not receiving the confirmation instruction, not perform S20. By means of the method, the transparency of the user for controlling the user space is improved, and the user can know the running state of the user space in time.
S20, executing the target management and control operation on the target user space.
In this embodiment, after determining the target user space and the target management and control operation corresponding to the current time, the corresponding target management and control operation may be performed on each target user space, for example, the user space is closed or the user space is run in the background.
In the embodiment, when the current time reaches a preset control time, a target user space and a target control operation corresponding to the preset control time are determined; the target management and control operation comprises closing a user space or operating the user space in a background; and executing the target control operation on the target user space. On one hand, the target user space is dynamically closed according to the current time, so that the resource waste caused by long-term continuous background operation of the target user space can be avoided, and the cruising ability of the equipment is improved; on the other hand, the target user space is automatically and dynamically started and operated in the background according to the current time, and the problem that the target user space in a waiting closed state is started and operated when a user needs to operate the target user space in the foreground is solved.
Second embodiment
Based on the above embodiments, a second embodiment of the user space management and control method of the present invention is provided. Referring to fig. 4, fig. 4 is a flowchart illustrating a user space management and control method according to a second embodiment of the present invention.
The preset management and control time includes a preset off time, and S10 includes:
s11, when the current time reaches a preset control time, determining a first preset user space corresponding to the preset control time according to a preset mapping relation;
and S12, determining a target user space according to the running state of the first preset user space.
In this embodiment, a mapping relationship between a preset control time and a first preset user space is preset, when it is monitored that the current time reaches the preset control time, a first preset user space corresponding to the preset control time (current time) is obtained according to the mapping relationship between the preset control time and the first preset user space, a target user space is determined from the first preset user space according to a current operating state of the first preset user space, and then the target user space is closed. Optionally, the first preset space reflects a user space that should be in a background running state at the preset control time under a conventional condition.
Optionally, the number of the first preset user spaces is greater than or equal to 1.
In this embodiment, considering that there may be an extraordinary situation in the running time of each user space, the extraordinary situation is described with reference to the example in the first embodiment, and if the current time is 07:00, determining corresponding target user spaces as a and C, operating the user space a in a background mode by the target management and control operation corresponding to a, and operating the user space C in a closed mode by the target management and control operation corresponding to C, but if the user space operated by the device foreground is C, if the user space C is directly closed, or if the user space operated by the device foreground is a, if the user space operated by the device foreground is directly switched from foreground operation to background operation, the user experience of the user may be reduced. In order to avoid such a situation, in this implementation scenario, the preset control time is not directly associated with the target user space, but the preset control time is associated with the corresponding user space to be controlled, and then the target user space is determined according to the current operating state of the user space to be controlled, and optionally, the user space whose operating state is a non-foreground operating state in the user space to be controlled is determined as the target user space.
Therefore, the situation that the user space running in the foreground is directly closed or switched to run in the background under the condition that the user does not allow the user can be avoided, and the intelligence of user space management and control is improved.
Optionally, S12 includes:
a1, determining whether a first user space with the operating state being a foreground operating state exists in the first preset user space;
a2, if not, taking the first preset user space as a target user space; and/or the presence of a gas in the gas,
a3, if yes, using the first preset user space except the first user space as the target user space.
In this embodiment, after determining a first preset user space corresponding to a preset control time, the operating state of each first preset user space needs to be further determined, and if at the current time, a user space (i.e., a first user space) with an operating state being a foreground operating state exists in the first preset user space, which indicates that a user in the first user space does not use the first user space according to an expected usage habit, the first preset user space except the first user space is used as a target user space, so as to avoid directly closing or switching the user space in which the foreground operates to a background operation without permission of the user; and/or if the first preset user space with the operating state of the foreground operating state does not exist in the first preset user space, which indicates that the users in the first preset user space all use the user space according to the expected use habit, the first preset user space can be directly used as the target user space.
The target user space is determined according to the running state of the first preset user space, so that the situation that the user space running in the foreground is directly closed or switched to run in the background under the condition that the user does not allow the user space to run can be avoided, and the intelligence of user space management and control is improved.
Optionally, S12 includes:
b1, determining whether a first user space with the operating state being a foreground operating state exists in the first preset user space, and determining whether a second user space added with a preset locking mark exists in the first preset user space;
b2, if there is no first user space with the operating state being the foreground operating state in the first preset user space and there is no second user space added with a preset locking mark in the first preset user space, taking the first preset user space as a target user space; and/or the presence of a gas in the gas,
b3, if a first user space with the operating state being a foreground operating state exists in the first preset user space, and/or a second user space with a preset locking mark added exists in the first preset user space, taking the first preset user space except the first user space and/or the second user space as a target user space.
In view of that a user may need to maintain an operating state of a user space of the user space as a background operating state or an off state, in this embodiment, when a user has a state maintaining requirement for some user spaces (second user spaces), a preset locking flag may be added to the second user space, where the preset locking flag is used to indicate that user space management and control do not manage and control the second user space.
Optionally, after determining a first preset user space corresponding to a preset control time, further determining an operating state of each first preset user space and existence of a preset locking mark, and if at the current time, a user space (i.e., a first user space) exists in the first preset user space whose operating state is a foreground operating state, and/or a second user space added with the preset locking mark exists in the first preset user space, taking the first preset user space except the first user space and/or the second user space as a target user space, so as to avoid directly closing or switching the user space in which the foreground operates to a background operation without permission of a user; and/or if the first preset user space does not have a first user space with the operating state being the foreground operating state and the first preset user space does not have a second user space added with the preset locking mark, directly taking the first preset user space as the target user space.
The embodiment provides a scheme for determining the target user space according to the user-defined requirement on the basis of determining the target user space according to the operating state of the user space, so that the user-defined management and control requirement of the user can be met, and the intelligence of user space management and control is improved.
Optionally, before S11, the method further includes:
c1, determining the historical background running time period of each user space according to the historical running log;
and c2, determining a preset mapping relation between preset control time and a corresponding first preset user space according to the historical background running time period.
Optionally, a historical log of runs of each user space is recorded.
In this embodiment, the user space management and control device records a historical operation log of each user space, where the historical operation log includes an operation state of each user space at each time, so that the historical background operation time period of each user space can be determined according to the historical operation log, and then the initial background operation time (as the preset closing time) and the ending background operation time (as the preset operation time) of the background operation time period of each user space are used as the preset management and control time,
optionally, the preset mapping relationship may further include a target management and control operation. To assist in understanding, to cite an example, if a device has three user spaces, A, B and C, the background run time period for user space a is determined from the historical run logs to be 12:00 to the next day 07:00, the background running time period of the B user space is 21:00 to the next day 12:00, the background running time period of the C user space is 07:00 to 21:00, therefore, set 07: 00. 12:00 and 21:00 are preset control times, the preset mapping relationship is 07:00 (preset management and control time) -a user space (first preset user space) -background running a user space (target management and control operation), 07:00 (preset management and control time) -C user space (first preset user space) -close C user space (target management and control operation), 12:00 (preset management and control time) -a user space (first preset user space) -closing a user space (target management and control operation), 12:00 (preset control time) -B user space (first preset user space) -background running B user space (target control operation), 21:00 (preset management and control time) -B user space (first preset user space) -close B user space (target management and control operation), 21:00 (preset control time) -C user space (first preset user space) -background running C user space (target control operation).
Third embodiment
On the basis of the first embodiment and/or the second embodiment of the user space management and control method, a third embodiment of the user space management and control method is provided. Referring to fig. 5, fig. 5 is a flowchart illustrating a user space management and control method according to a second embodiment of the present invention.
Optionally, if the target management and control operation is to close a target user space, S20 includes:
d1, recording the progress of the current running application of the target user space, and closing the target user space;
the preset management and control time comprises preset operation time, and after S20, the method further comprises:
d2, when the current time reaches the preset running time of the target user space, the target user space is run in the background, and the current running application of the target user space and the progress of the current running application are restored.
In view of the defect that when the target user space is closed and then the running target user space is started again in the background, the progress of the application running in the background of the target user space may be lost before the target user space is closed. And then, when the current time reaches the preset operation time of the target user space, the background starts and operates the target user space, and the current operation application of the target user space and the progress of the current operation application are recovered according to the recorded progress of the current operation application of the target user space, so that the loss of the application progress caused by closing the target user space is avoided, the user experience is poor, and the perception of the user on the management and control of the background user space is further reduced.
Optionally, the user space management and control method further includes:
e1, when a user space management and control instruction is detected, determining a user space to be managed and controlled and a target management and control operation according to the user space management and control instruction;
e2, executing the target management and control operation on the user space to be managed and controlled.
Considering the situation that a user may need to manually manage and control the user space due to personal needs, the present embodiment provides a scheme for manually managing and controlling the user space. When the user space management and control instruction is detected through user space management and control, the user space to be managed and controlled and the target management and control operation needing to be executed on the user space to be managed and controlled can be determined according to the user space management and control instruction, and then the target management and control operation is executed on the user space to be managed and controlled.
Optionally, the user space management and control instruction may be initiated by a user through a preset manual management and control interface of the user space management and control device, and the user may set a user space to be managed and a target management and control operation in the preset manual management and control interface.
The application further provides a mobile terminal, which includes a memory and a processor, wherein the memory stores a user space management and control program, and the user space management and control program is executed by the processor to implement the steps of the user space management and control method in any of the embodiments.
The present application further provides a computer-readable storage medium, where a user space management and control program is stored on the computer-readable storage medium, and when being executed by a processor, the user space management and control program implements the steps of the user space management and control method in any of the above embodiments.
In the embodiments of the mobile terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the embodiments of the user space management and control method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, 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. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A user space management and control method is characterized by comprising the following steps:
s10, when the current time reaches a preset control time, determining a target user space and a target control operation corresponding to the preset control time;
and S20, executing the target management and control operation on the target user space.
2. The method of claim 1, wherein the step of S10 includes:
when the current time reaches a preset control time, determining a first preset user space corresponding to the preset control time according to a preset mapping relation;
and determining a target user space according to the running state of the first preset user space.
3. The method of claim 2, wherein determining a target user space based on the operating state of the first predetermined user space comprises:
determining whether a first user space with a foreground operating state exists in the first preset user space;
if not, taking the first preset user space as a target user space; and/or the presence of a gas in the gas,
and if so, taking a first preset user space except the first user space as a target user space.
4. The method of claim 2, wherein determining a target user space based on the operating state of the first predetermined user space comprises:
determining whether a first user space with a foreground operating state exists in the first preset user space, and determining whether a second user space added with a preset locking mark exists in the first preset user space;
if not, taking the first preset user space as a target user space; and/or the presence of a gas in the gas,
and if a first user space with the operating state being a foreground operating state exists in the first preset user space and/or a second user space added with a preset locking mark exists in the first preset user space, taking the first preset user space except the first user space and/or the second user space as a target user space.
5. The method according to any one of claims 2 to 4, wherein before determining the first preset user space corresponding to the preset management and control time according to the preset mapping relationship, the method further comprises:
determining historical background running time periods of each user space according to the historical running logs;
and determining a preset mapping relation between preset control time and a corresponding first preset user space according to the historical background running time period.
6. The method according to any one of claims 1 to 4, wherein if the target management operation is closing a target user space;
executing the target management and control operation on the target user space, including:
recording the current running application of the target user space, and closing the target user space;
the preset control time comprises preset running time; after the target management and control operation is performed on the target user space, the method further includes:
and when the current time reaches the preset running time of the target user space, the background runs the target user space, and the running of the current running application of the target user space is recovered.
7. The method of any one of claims 1 to 4, wherein the user space management method further comprises:
when a user space management and control instruction is detected, determining a user space to be managed and controlled and a target management and control operation according to the user space management and control instruction;
and executing the target management and control operation on the user space to be managed and controlled.
8. The method according to any one of claims 1 to 4, wherein after determining a target user space and a target management and control operation corresponding to a preset management and control time when the current time reaches the preset management and control time, the method further comprises:
outputting prompt information for executing target control operation on the target user space;
and when a confirmation instruction based on the prompt information is received, executing the target management and control operation on the target user space.
9. A terminal, characterized in that the terminal comprises: memory, a processor, wherein the memory has stored thereon a user space management program, which when executed by the processor implements the steps of the user space management method according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, realizes the steps of the user space management method according to any one of claims 1 to 8.
CN202110828861.9A 2021-07-21 2021-07-21 User space management and control method, terminal and storage medium Pending CN113553181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110828861.9A CN113553181A (en) 2021-07-21 2021-07-21 User space management and control method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110828861.9A CN113553181A (en) 2021-07-21 2021-07-21 User space management and control method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113553181A true CN113553181A (en) 2021-10-26

Family

ID=78132339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110828861.9A Pending CN113553181A (en) 2021-07-21 2021-07-21 User space management and control method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113553181A (en)

Similar Documents

Publication Publication Date Title
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN108121681B (en) Hot plug implementation method, terminal and storage medium
CN113645345A (en) Data transmission method, mobile terminal and storage medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN112346824A (en) Screen projection application control method and device and computer readable storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN108900696B (en) Data processing method, terminal and computer readable storage medium
CN115914719A (en) Screen projection display method, intelligent terminal and storage medium
CN107404568B (en) Control switch management method and mobile terminal
CN115278842A (en) Mobile terminal screen projection method, mobile terminal and storage medium
CN112333326B (en) Screen projection display control method and device and computer readable storage medium
CN114363318A (en) Data processing method, intelligent terminal and storage medium
CN113824176A (en) Charging method, earphone, terminal and storage medium
CN113867586A (en) Icon display method, intelligent terminal and storage medium
CN109144747B (en) Data processing method, terminal and computer readable storage medium
CN113342244A (en) Interface display method, mobile terminal and storage medium
CN113381924A (en) Processing method, mobile terminal and storage medium
CN110058761B (en) Copy selection method, mobile terminal and computer readable storage medium
CN113553181A (en) User space management and control method, terminal and storage medium
CN109669594B (en) Interaction control method, equipment and computer readable storage medium
CN109144345B (en) Application message display method and device, mobile terminal and readable storage medium
CN107479747B (en) Touch display method and device and computer storage medium
CN114186271A (en) Processing method, intelligent terminal and storage medium
CN115016852A (en) Information processing method, intelligent terminal and storage medium
CN114879873A (en) Application program control method, intelligent terminal and 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