CN113127069B - Dual-system-based location service management method and device and terminal equipment - Google Patents

Dual-system-based location service management method and device and terminal equipment Download PDF

Info

Publication number
CN113127069B
CN113127069B CN201911409331.XA CN201911409331A CN113127069B CN 113127069 B CN113127069 B CN 113127069B CN 201911409331 A CN201911409331 A CN 201911409331A CN 113127069 B CN113127069 B CN 113127069B
Authority
CN
China
Prior art keywords
operating system
value
location service
running
state parameter
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
CN201911409331.XA
Other languages
Chinese (zh)
Other versions
CN113127069A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201911409331.XA priority Critical patent/CN113127069B/en
Publication of CN113127069A publication Critical patent/CN113127069A/en
Application granted granted Critical
Publication of CN113127069B publication Critical patent/CN113127069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a position service management method, a device and terminal equipment based on a dual system. The position service management method based on the double systems comprises the following steps: stopping running the position service called by the application program in the first operating system in the process that the operating system running in the foreground is switched from the first operating system to the second operating system; setting a global state parameter as a first value, wherein the global state parameter is used for indicating an operation state of the location service, the operation state comprises an idle state and an operation state, and the first value corresponds to the idle state. The state of the hardware resource providing the location service is clearly indicated through the global state parameters which are set in the first operating system and the second operating system and are effective, so that the situation that the upper layer application calls the location service is avoided, and the running stability of the double operating systems is improved.

Description

Dual-system-based location service management method and device and terminal equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a dual-system-based location service management method, apparatus, and terminal device.
Background
The global positioning system (Global Positioning System, GPS) is a high-precision radio navigation positioning system based on airborne satellites that provides accurate geographic location and accurate time information anywhere in the world as well as near earth space. Many terminal devices are provided with GPS resources, so that guarantee is provided for application of the terminal devices.
With the continuous development of terminal technology, a dual operating system may be installed on a terminal device, one operating system being visible to a foreground user and one operating system being invisible to a background user. Applications running between two operating systems are isolated from each other.
Because the GPS resource on the terminal equipment is only one set, the GPS resource can only be used by the application in the foreground operating system. In the context of dual operating system foreground and background switching, how to ensure switching of GPS resources to ensure that upper layer application states do not go wrong is a problem to be solved.
Disclosure of Invention
The application provides a position service management method, a device and terminal equipment based on a dual system, which ensure that the upper application state is free from error and improve the running stability of the dual operation system.
In a first aspect, an embodiment of the present application provides a dual-system-based location service management method, including:
stopping running the position service called by the application program in the first operating system in the process that the operating system running in the foreground is switched from the first operating system to the second operating system;
setting a global state parameter as a first value, wherein the global state parameter is used for indicating an operation state of the location service, the operation state comprises an idle state and an operation state, and the first value corresponds to the idle state.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
after an operating system running in the foreground is switched from the first operating system to the second operating system, acquiring the value of the global state parameter;
and determining whether to run the position service called by the application program in the second operating system according to the value of the global state parameter.
Optionally, in a possible implementation manner of the first aspect, the determining whether to run the location service invoked by the application program in the second operating system according to the value of the global state parameter includes:
if the value of the global state parameter is the first value, determining to run a location service called by an application program in the second operating system;
and if the value of the global state parameter is a second value, determining that the location service called by the application program in the second operating system is not operated, wherein the second value corresponds to the running state.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
and if the position service called by the application program in the second operating system is determined to be operated, setting the global state parameter as a second value, wherein the second value corresponds to the operation state.
Optionally, in a possible implementation manner of the first aspect, the location service includes a GPS service or a beidou satellite navigation system service.
In a second aspect, an embodiment of the present application provides a dual-system-based location service management apparatus, including:
the first operation module is used for stopping operating the position service called by the application program in the first operation system in the process that the operating system operated in the foreground is switched from the first operation system to the second operation system;
the system comprises a setting module, a setting module and a control module, wherein the setting module is used for setting a global state parameter as a first numerical value, the global state parameter is used for indicating the running state of the location service, the running state comprises an idle state and a running state, and the first numerical value corresponds to the idle state.
Optionally, in a possible implementation manner of the second aspect, the method further includes an acquiring module and a second running module;
the acquisition module is used for acquiring the value of the global state parameter after the operating system running in the foreground is switched from the first operating system to the second operating system;
and the second operation module is used for determining whether to operate the position service called by the application program in the second operating system according to the value of the global state parameter.
Optionally, in a possible implementation manner of the second aspect, the second operation module is specifically configured to:
if the value of the global state parameter is the first value, determining to run a location service called by an application program in the second operating system;
and if the value of the global state parameter is a second value, determining that the location service called by the application program in the second operating system is not operated, wherein the second value corresponds to the running state.
Optionally, in a possible implementation manner of the second aspect, the setting module is further configured to:
and if the second operation module determines to operate the location service called by the application program in the second operation system, setting the global state parameter as a second value, wherein the second value corresponds to the operation state.
Optionally, in a possible implementation manner of the second aspect, the location service includes a GPS service or a beidou satellite navigation system service.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory and a processor;
the memory is used for storing program instructions;
the processor is configured to invoke the program instructions stored in the memory to implement a method provided by any embodiment of the first aspect of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium comprising: a readable storage medium and a computer program for implementing the method provided by any embodiment of the first aspect of the present application.
In a fifth aspect, the present application provides a program product comprising a computer program (i.e. executing instructions), the computer program being stored in a readable storage medium. The computer program may be read from a readable storage medium by a processor executing the computer program for carrying out the method provided by any one of the embodiments of the first aspect of the application.
The application provides a position service management method, a device and a terminal device based on a dual system, wherein in the process of switching the dual operation systems, a first operation system running in the foreground stops running position service, hardware resources for providing position service are actively released, the value of a global state parameter is set to be a first value, the running state of the position service is indicated to be an idle state through the global state parameter, so that after the system switching is completed, a second operation system switching to the foreground can use the idle hardware resources for providing the position service, the upper application state is ensured not to go wrong, and the running stability of the dual operation system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is an interface schematic diagram of a terminal device according to an embodiment of the present application;
fig. 2 is a schematic diagram of another interface of a terminal device according to an embodiment of the present application;
FIG. 3 is a flowchart of a dual system based location service management method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a dual-system-based location service management device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a hardware configuration diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
With the continuous development of terminal technology, a dual operating system may be installed on a terminal device, where one operating system runs in the foreground and is visible to a user, and the other operating system runs in the background and is not visible to the user. The application does not limit the types of the two operating systems, and only needs to support the hardware of the terminal equipment. For example, both operating systems may be android operating systems or iOS operating systems. The terminal device can install a plurality of Application programs (APP) under each operating system, and the number, name and implementation function of the APP installed in each operating system are not limited in the application. The APP runs on the hardware resources and software resources of the terminal device. Alternatively, the hardware resources may include, but are not limited to, at least one of the following: chips, processors, memories, sensors, etc., the software resources may include, but are not limited to, at least one of the following: type, version, language, etc. of the operating system. Applications running between two operating systems are isolated from each other and may be implemented based on virtualization technology, container technology, etc.
For example, assume that the terminal device is a mobile phone, and two android operating systems are installed on the mobile phone, which are respectively called a system 1 and a system 2. Fig. 1-2 show interface diagrams of terminal devices under different operating systems. As shown in fig. 1, the operating system running in the foreground is a system 1, the operating system running in the background is a system 2, and the operating system running in the foreground can be distinguished by the icon and the information shown in the upper left corner. 9 APP are installed in the system 1, and the names are APP1 to APP9 in sequence. As shown in fig. 2, the operating system running in the foreground is a system 2, the operating system running in the background is a system 1, and the operating system running in the foreground can be distinguished by the icon and the information shown in the upper left corner. 6 APP are installed in the system 2, and names are APP 1-3 and APP 14-16 in sequence. Wherein, APP 1-3 are installed in system 1 and system 2.
It should be noted that, the embodiment of the present application does not limit the type of the terminal device. The terminal device may also be referred to as a User Equipment (UE), a Mobile Station (MS), or a Mobile Terminal (MT), etc., and may provide voice/data services to a user, for example, a handheld device having a wireless connection function, an in-vehicle device, etc. Currently, examples of some terminal devices are: a mobile phone, a tablet, a notebook, a palm, a mobile internet device (mobile internet device, MID), a wearable device (e.g., a smartwatch, a smartband, a pedometer, etc.), a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (self driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city, or a wireless terminal in smart home (smart home), etc.
Currently, system applications or installed APPs on terminal devices may need to rely on location services, e.g., position location, route planning, etc. And the hardware resources on the terminal device for providing the location service are usually only one set, which are used by the application in the operating system running in the foreground. In the context of dual operating system foreground and background switching, how to use unique location service hardware resources to ensure that the upper layer application state is free from errors becomes a problem to be solved.
In view of the above technical problems, the embodiments of the present application provide a dual-system-based location service management method, by setting a global state parameter, it may indicate that an operation state of a location service is an idle state or an operation state, so that in a scenario of front-to-back switching of dual operating systems, active release of a hardware resource for providing a location service by a foreground operating system is ensured, it is ensured that the hardware resource can be used after a background operating system is switched to a foreground operation, it is ensured that an upper application state is free from errors, and operation stability of the dual operating systems is improved.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments.
It should be noted that the terms "first," "second," "third," "fourth," and the like in this disclosure, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged where appropriate.
It should be noted that in the embodiments of the present application, the running state of the location service has the same meaning as the state of the hardware resource providing the location service, and may be interchanged where appropriate.
Fig. 3 is a flowchart of a dual system-based location service management method according to an embodiment of the present application. In the dual-system-based location service management method provided in this embodiment, the execution subject may be a dual-system-based location service management device or a terminal device. As shown in fig. 3, the dual-system-based location service management method provided in this embodiment may include:
s301, stopping running the position service called by the application program in the first operating system in the process that the operating system running in the foreground is switched from the first operating system to the second operating system.
Specifically, in order to facilitate distinguishing between different operating systems, before the operating systems are switched, the operating system running in the foreground is referred to as a first operating system, and the operating system running in the background is referred to as a second operating system. And stopping running the position service called by each application program in the first operating system in the switching process of the operating systems, so that the hardware resources for providing the position service are actively released.
Alternatively, the location services may include, but are not limited to, GPS services or Beidou satellite navigation system services. Correspondingly, the terminal equipment can comprise related hardware resources for providing GPS service or Beidou satellite navigation system service.
It should be noted that, in this embodiment, the mode of triggering the first operating system to switch to the second operating system is not limited, and any existing triggering mode may be used. For example, when the user operates an entity button or a virtual button on the terminal device, the terminal device receives an instruction input by the user, so as to trigger the operating system running in the foreground to be switched from the first operating system to the second operating system. For another example, the terminal device has a touch display screen, and when the user performs a preset gesture operation, for example, one or more of clicking, double clicking, sliding, and drawing a preset pattern on the touch display screen of the terminal device, the terminal device receives an instruction input by the user, so as to trigger the operating system running in the foreground to be switched from the first operating system to the second operating system.
S302, setting a global state parameter as a first numerical value.
The global state parameter is used for indicating an operation state of the location service, the operation state comprises an idle state and an operation state, and the first numerical value corresponds to the idle state.
Specifically, the global state parameter is a parameter that is valid in both the first operating system and the second operating system. Different values of the global state parameter may be used to indicate different operational states of the location service. And when the value of the global state parameter is a first value, the global state parameter is used for indicating that the running state of the location service is in an idle state, and the global state parameter indicates that no hardware resource providing the location service is used by an operating system.
Note that, in this embodiment, the specific value of the first numerical value is not limited.
It can be seen that, in the dual-system-based location service management method provided in this embodiment, in the process of switching between dual operating systems, the first operating system running in the foreground stops running the location service, actively releases the hardware resource that provides the location service, and sets the value of the global state parameter to be the first value, and indicates that the running state of the location service is in an idle state through the global state parameter, so that after the system switching is completed, the second operating system that is switched to the foreground can use the idle hardware resource that provides the location service, thereby ensuring that the upper application state is free from errors, and improving the running stability of the dual operating system.
Alternatively, a thread may be added for setting and maintaining global state parameters.
The global state parameters are maintained through the newly added thread, so that modification of the existing position service related thread is avoided, the method is simple and easy to implement, and the management efficiency of the position service is improved.
Optionally, the dual-system-based location service management method provided in this embodiment may further include:
and after the operating system running in the foreground is switched from the first operating system to the second operating system, acquiring the value of the global state parameter.
And determining whether to run the location service called by the application program in the second operating system according to the value of the global state parameter.
Specifically, for the second operating system, after the background operation is switched to the foreground operation, the value of the global state parameter can be obtained. Because different values of the global state parameters indicate different running states of the location service, whether the application program in the second operating system can call the location service or not can be determined through the values of the global state parameters, and running stability of the double operating system for calling the location service is improved.
Optionally, determining whether to run the location service invoked by the application program in the second operating system according to the value of the global state parameter may include:
and if the value of the global state parameter is the first value, determining to run the location service called by the application program in the second operating system.
And if the value of the global state parameter is a second value, determining that the position service called by the application program in the second operating system is not operated, wherein the second value corresponds to the running state.
It should be noted that, in this embodiment, the specific value of the second value is not limited, and the value of the second value is different from the value of the first value.
Optionally, the dual-system-based location service management method provided in this embodiment may further include:
and if the position service called by the application program in the second operating system is determined to be operated, setting the global state parameter as a second numerical value, wherein the second numerical value corresponds to the operation state.
Specifically, after the second operating system is switched from the background operation to the foreground operation, if the value of the current global state parameter is the first value, it indicates that the first operating system has released the hardware resource that provides the location service, and therefore, the second operating system can use the hardware resource to call the location service. And after the application program in the second operating system calls the location service, setting the global state parameter as a second numerical value, and indicating the running state of the location service as the running state. The method has the advantages that the value of the global state parameter which is effective in both the first operating system and the second operating system is updated in time, the running state of the location service is correctly indicated, and therefore guarantee is provided for the two operating systems to call the location service, and the running stability of the dual operating systems is improved.
Fig. 4 is a schematic structural diagram of a dual-system-based location service management device according to an embodiment of the present application. The dual-system-based location service management apparatus provided in this embodiment is configured to execute the dual-system-based location service management method provided in the embodiment shown in fig. 3. As shown in fig. 4, the dual system-based location service management apparatus provided in this embodiment may include:
a first operation module 41, configured to stop operating a location service called by an application program in a first operating system in a process that an operating system running in a foreground is switched from the first operating system to a second operating system;
the setting module 42 is configured to set a global state parameter to a first value, where the global state parameter is used to indicate an operation state of the location service, the operation state includes an idle state and an operation state, and the first value corresponds to the idle state.
Optionally, the system further comprises an acquisition module and a second operation module;
the acquisition module is used for acquiring the value of the global state parameter after the operating system running in the foreground is switched from the first operating system to the second operating system;
and the second operation module is used for determining whether to operate the position service called by the application program in the second operating system according to the value of the global state parameter.
Optionally, the second operation module is specifically configured to:
if the value of the global state parameter is the first value, determining to run a location service called by an application program in the second operating system;
and if the value of the global state parameter is a second value, determining that the location service called by the application program in the second operating system is not operated, wherein the second value corresponds to the running state.
Optionally, the setting module 42 is further configured to:
and if the second operation module determines to operate the location service called by the application program in the second operation system, setting the global state parameter as a second value, wherein the second value corresponds to the operation state.
Optionally, the location service includes a GPS service or a beidou satellite navigation system service.
The dual-system-based location service management device provided in this embodiment is configured to execute the dual-system-based location service management method provided in the embodiment shown in fig. 3, and the technical principle and the technical effect thereof are similar, and are not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device may include a processor 51 and a memory 52. The memory 52 is configured to store instructions, and the processor 51 is configured to execute the instructions stored in the memory 52, so that the terminal device executes the dual-system-based location service management method provided in the embodiment shown in fig. 3, and the technical principles and technical effects are similar, and are not repeated herein.
The present application is not limited to the device configuration and specific structure of the terminal device. Fig. 6 is a hardware configuration diagram of a terminal device according to an embodiment of the present application.
As shown in fig. 6, the terminal device 3000 includes, but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 340, a power source 341, and the like. It will be appreciated by those skilled in the art that the terminal device structure shown in fig. 6 does not constitute a limitation of the terminal device, and that the terminal device 3000 may include more or less components than illustrated, or certain components may be combined, or different arrangements of components. In the embodiment of the application, the terminal equipment comprises, but is not limited to, a mobile phone, a tablet computer, a palm computer and the like.
Wherein, the user input unit 307 is configured to receive an input of a user; a display unit 306 for displaying contents according to input in response to input received by the user input unit 307.
It should be understood that, in the embodiment of the present application, the radio frequency unit 301 may be used for receiving and transmitting information or receiving and transmitting signals during a call. Typically, the radio frequency unit 301 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 301 may also communicate with networks and other devices through a wireless communication system.
Terminal device 3000 provides wireless broadband internet access to a user via network module 302, such as helping the user to send and receive e-mail, browse web pages, and access streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 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 terminal device 3000. The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive an audio or video signal. The input unit 304 may include a graphics processor (Graphics Processing Unit, GPU) 3043 and a microphone 3042, the graphics processor 3043 being for processing image data of a picture or video captured by a camera or the like. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphics processor 3043 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 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 301 in the case of a telephone call mode.
The terminal device 3000 also includes at least one sensor 305, such as a light sensor, a motion sensor, a GPS sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 3063 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 3063 and/or the backlight when the terminal device 3000 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 the accelerometer sensor is stationary, and can be used for recognizing the gesture (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking) and the like of the terminal equipment; the GPS sensor can be used for positioning the current position of the terminal equipment by receiving satellite signals in the space; the sensor 305 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 306 is used to display information input by a user or information provided to the user. The display unit 306 may include a display panel 3063, and the display panel 3063 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 307 includes a touch panel 3073 and other input devices 3072. The touch panel 3073, 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 3073 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 3073 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 340, and receives and executes commands sent from the processor 340. Further, the touch panel 3073 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3073. Specifically, other input devices 3072 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 3073 may be overlaid on the display panel 3063, and when the touch panel 3073 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 340 to determine a type of touch event, and then the processor 340 provides a corresponding visual output on the display panel 3063 according to the type of touch event. Although in fig. 6, the touch panel 3073 and the display panel 3063 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 3073 and the display panel 3063 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the terminal apparatus 3000. 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 308 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 terminal apparatus 3000 or may be used to transmit data between the terminal apparatus 3000 and an external device.
Memory 309 may be used to store software programs as well as various data. The memory 309 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 309 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 340 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the terminal device. Processor 340 may include one or more processing units; alternatively, the processor 340 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 340.
Referring to fig. 6, in the embodiment of the present application, a computer program is stored in the memory 309, where the processor 340 runs the computer program to enable the terminal device to execute the operations executed by the terminal device in the above embodiment of the method.
In the embodiment of the present application, the processor may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps and logic blocks disclosed in the embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
In the embodiment of the present application, the memory may be a nonvolatile memory, such as a hard disk (HDD) or a Solid State Drive (SSD), or may be a volatile memory (RAM). The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory in embodiments of the present application may also be circuitry or any other device capable of performing memory functions for storing program instructions and/or data.

Claims (7)

1. A dual system based location services management method, comprising:
stopping running the position service called by the application program in the first operating system in the process that the operating system running in the foreground is switched from the first operating system to the second operating system;
setting a global state parameter as a first numerical value, wherein the global state parameter is a parameter which is effective in the first operating system and the second operating system, the global state parameter is used for indicating an operation state of a location service, the operation state comprises an idle state and an operation state, and the first numerical value corresponds to the idle state;
further comprises:
after an operating system running in the foreground is switched from the first operating system to the second operating system, acquiring the value of the global state parameter;
if the value of the global state parameter is the first value, determining to run a location service called by an application program in the second operating system;
and if the value of the global state parameter is a second value, determining that the location service called by the application program in the second operating system is not operated, wherein the second value corresponds to the running state.
2. The method as recited in claim 1, further comprising:
and if the position service called by the application program in the second operating system is determined to be operated, setting the global state parameter as a second value, wherein the second value corresponds to the operation state.
3. The method according to claim 1 or 2, wherein the location service comprises a global positioning system, GPS, service or a beidou satellite navigation system service.
4. A dual system based location services management device, comprising:
the first operation module is used for stopping operating the position service called by the application program in the first operation system in the process that the operating system operated in the foreground is switched from the first operation system to the second operation system;
the system comprises a setting module, a setting module and a control module, wherein the setting module is used for setting a global state parameter as a first numerical value, the global state parameter is a parameter which is effective in both the first operating system and the second operating system, the global state parameter is used for indicating the running state of the location service, the running state comprises an idle state and a running state, and the first numerical value corresponds to the idle state;
the system also comprises an acquisition module and a second operation module;
the acquisition module is used for acquiring the value of the global state parameter after the operating system running in the foreground is switched from the first operating system to the second operating system;
the second operation module is configured to determine to operate a location service invoked by an application program in the second operating system if the value of the global state parameter is the first value;
and if the value of the global state parameter is a second value, determining that the location service called by the application program in the second operating system is not operated, wherein the second value corresponds to the running state.
5. The apparatus of claim 4, wherein the setup module is further to:
and if the second operation module determines to operate the location service called by the application program in the second operation system, setting the global state parameter as a second value, wherein the second value corresponds to the operation state.
6. A terminal device, comprising: a memory and a processor;
the memory is used for storing program instructions;
the processor for invoking the program instructions stored in the memory to implement the method of any of claims 1-3.
7. A computer-readable storage medium, comprising: a readable storage medium and a computer program for implementing the method according to any of claims 1-3.
CN201911409331.XA 2019-12-31 2019-12-31 Dual-system-based location service management method and device and terminal equipment Active CN113127069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911409331.XA CN113127069B (en) 2019-12-31 2019-12-31 Dual-system-based location service management method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911409331.XA CN113127069B (en) 2019-12-31 2019-12-31 Dual-system-based location service management method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN113127069A CN113127069A (en) 2021-07-16
CN113127069B true CN113127069B (en) 2023-08-22

Family

ID=76769912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911409331.XA Active CN113127069B (en) 2019-12-31 2019-12-31 Dual-system-based location service management method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN113127069B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1047578A (en) * 1989-05-17 1990-12-05 国际商业机器公司 Make CPU with and the method and apparatus of the interactive hardware isolated of data processing equipment of outside
CN1801101A (en) * 2006-01-17 2006-07-12 浙江大学 Thread implementation and thread state switching method in Java operation system
CN1922576A (en) * 2003-09-30 2007-02-28 扎鲁纳股份有限公司 Operating systems
CN101196816A (en) * 2007-12-29 2008-06-11 中国科学院计算技术研究所 Operating system and operating system management method
CN101202658A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 System and method for service take-over of multi-host system
CN101841835A (en) * 2009-03-17 2010-09-22 大唐移动通信设备有限公司 Switching optimization method, equipment and system
CN101901207A (en) * 2010-07-23 2010-12-01 中国科学院计算技术研究所 Operating system of heterogeneous shared storage multiprocessor system and working method thereof
CN104050137A (en) * 2013-03-13 2014-09-17 华为技术有限公司 Method and device for operating inner cores in heterogeneous operation system
CN104113790A (en) * 2013-04-16 2014-10-22 优视科技有限公司 Video playing method based on Android operating system, and video playing device based on Android operating system
CN104396285A (en) * 2012-11-14 2015-03-04 Sk普兰尼特有限公司 Method, system and terminal for providing map information
CN104461242A (en) * 2014-12-08 2015-03-25 深圳市嘉乐派科技有限公司 Multiwindow interface realization method based on Android operating system
CN104516760A (en) * 2014-12-12 2015-04-15 华为技术有限公司 Operating system hot-switching method and device and mobile terminal
CN104618584A (en) * 2015-01-09 2015-05-13 深圳市前海富达科技有限公司 Method and system for switching intelligent terminal safe work mode
CN106997223A (en) * 2016-01-25 2017-08-01 姜洪军 Mobile visual field
CN107436758A (en) * 2016-05-28 2017-12-05 腾讯科技(深圳)有限公司 The method for information display and mobile terminal of a kind of mobile terminal
CN108052258A (en) * 2017-12-28 2018-05-18 维沃移动通信有限公司 A kind of processing method of terminal task, Task Processing Unit and mobile terminal
CN108289111A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 service providing method, device, terminal device and operating system
CN108983272A (en) * 2018-08-03 2018-12-11 北斗国信智能科技(北京)有限公司 A kind of positioning system and localization method merging Beidou or GPS and sensor
CN109684069A (en) * 2017-10-13 2019-04-26 华为技术有限公司 The method and terminal device of resource management

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7380039B2 (en) * 2003-12-30 2008-05-27 3Tera, Inc. Apparatus, method and system for aggregrating computing resources
US20070226795A1 (en) * 2006-02-09 2007-09-27 Texas Instruments Incorporated Virtual cores and hardware-supported hypervisor integrated circuits, systems, methods and processes of manufacture

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1047578A (en) * 1989-05-17 1990-12-05 国际商业机器公司 Make CPU with and the method and apparatus of the interactive hardware isolated of data processing equipment of outside
CN1922576A (en) * 2003-09-30 2007-02-28 扎鲁纳股份有限公司 Operating systems
CN1801101A (en) * 2006-01-17 2006-07-12 浙江大学 Thread implementation and thread state switching method in Java operation system
CN101202658A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 System and method for service take-over of multi-host system
CN101196816A (en) * 2007-12-29 2008-06-11 中国科学院计算技术研究所 Operating system and operating system management method
CN101841835A (en) * 2009-03-17 2010-09-22 大唐移动通信设备有限公司 Switching optimization method, equipment and system
CN101901207A (en) * 2010-07-23 2010-12-01 中国科学院计算技术研究所 Operating system of heterogeneous shared storage multiprocessor system and working method thereof
CN104396285A (en) * 2012-11-14 2015-03-04 Sk普兰尼特有限公司 Method, system and terminal for providing map information
CN104050137A (en) * 2013-03-13 2014-09-17 华为技术有限公司 Method and device for operating inner cores in heterogeneous operation system
CN104113790A (en) * 2013-04-16 2014-10-22 优视科技有限公司 Video playing method based on Android operating system, and video playing device based on Android operating system
CN104461242A (en) * 2014-12-08 2015-03-25 深圳市嘉乐派科技有限公司 Multiwindow interface realization method based on Android operating system
CN104516760A (en) * 2014-12-12 2015-04-15 华为技术有限公司 Operating system hot-switching method and device and mobile terminal
CN104618584A (en) * 2015-01-09 2015-05-13 深圳市前海富达科技有限公司 Method and system for switching intelligent terminal safe work mode
CN106997223A (en) * 2016-01-25 2017-08-01 姜洪军 Mobile visual field
CN107436758A (en) * 2016-05-28 2017-12-05 腾讯科技(深圳)有限公司 The method for information display and mobile terminal of a kind of mobile terminal
CN108289111A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 service providing method, device, terminal device and operating system
CN109684069A (en) * 2017-10-13 2019-04-26 华为技术有限公司 The method and terminal device of resource management
CN108052258A (en) * 2017-12-28 2018-05-18 维沃移动通信有限公司 A kind of processing method of terminal task, Task Processing Unit and mobile terminal
CN108983272A (en) * 2018-08-03 2018-12-11 北斗国信智能科技(北京)有限公司 A kind of positioning system and localization method merging Beidou or GPS and sensor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵌入式实时操作系统DeltaOS在导弹指挥计算机系统中的应用研究;武小舟;邹勇;;弹箭与制导学报(第05期);第201-204页 *

Also Published As

Publication number Publication date
CN113127069A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN110062105B (en) Interface display method and terminal equipment
CN110168487B (en) Touch control method and device
CN110221737B (en) Icon display method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN109085968B (en) Screen capturing method and terminal equipment
WO2018077041A1 (en) Method and apparatus for running application
CN111176764B (en) Display control method and terminal equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN109976611B (en) Terminal device control method and terminal device
CN108681427B (en) Access right control method and terminal equipment
WO2018137304A1 (en) Method for displaying 2d application in vr device, and terminal
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109062634B (en) Application starting method and mobile terminal
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN110096203B (en) Screenshot method and mobile terminal
CN110012151B (en) Information display method and terminal equipment
CN110940339A (en) Navigation method and electronic equipment
CN108089935B (en) Application program management method and mobile terminal
CN113055272B (en) Message reminding method and device based on dual systems and terminal equipment
CN111130995B (en) Image control method, electronic device, and storage medium
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN109618278B (en) Positioning method and mobile terminal
CN111026457A (en) Hardware configuration method and device, storage medium and terminal equipment

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