CN106790361B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN106790361B
CN106790361B CN201611027334.3A CN201611027334A CN106790361B CN 106790361 B CN106790361 B CN 106790361B CN 201611027334 A CN201611027334 A CN 201611027334A CN 106790361 B CN106790361 B CN 106790361B
Authority
CN
China
Prior art keywords
target data
data set
cloud server
temporary storage
triggering condition
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
CN201611027334.3A
Other languages
Chinese (zh)
Other versions
CN106790361A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611027334.3A priority Critical patent/CN106790361B/en
Publication of CN106790361A publication Critical patent/CN106790361A/en
Application granted granted Critical
Publication of CN106790361B publication Critical patent/CN106790361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data processing method, which comprises the following steps: if a deletion instruction for a target data set is detected, determining whether the target data set meets a temporary storage triggering condition of a cloud server; if the target data set meets the temporary storage triggering condition of the cloud server, moving the target data set from the terminal equipment to a temporary storage area of the cloud server; and if the recovery instruction aiming at the target data is not detected within a preset time length, indicating the cloud server to delete the target data set. The embodiment of the invention also provides a data processing device. The embodiment of the invention can avoid the problem of data loss caused by deleting the data which the user does not want to delete due to the misoperation of the user.

Description

Data processing method and device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a data processing method and apparatus.
Background
The popularity of intelligent terminals (such as smart phones) is rapidly increasing, making them a necessity in modern life. In daily life, as users use intelligent terminals to process more and more transactions, more and more data are stored in the intelligent terminals.
In the process of daily using the intelligent terminal, data which the user does not want to delete may be deleted due to misoperation of the user, so that data loss may be caused.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device, which are used for avoiding the problem of data loss caused by deleting data which a user does not want to delete due to misoperation of the user.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
if a deletion instruction for a target data set is detected, determining whether the target data set meets a temporary storage triggering condition of a cloud server;
if the target data set meets the temporary storage triggering condition of the cloud server, moving the target data set from the terminal equipment to a temporary storage area of the cloud server;
and if the recovery instruction aiming at the target data is not detected within a preset time length, indicating the cloud server to delete the target data set.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the detection module is used for detecting a deletion instruction aiming at the target data set;
the transfer module is used for transferring the target data set from the terminal equipment to a temporary storage area of the cloud server;
and the indicating module is used for indicating the cloud server to delete the target data set if a recovery instruction aiming at the target data is not detected within a preset time length.
In a third aspect, an embodiment of the present invention provides a computer device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform part or all of the steps as described in the first aspect of the embodiments of the present invention, and the computer device includes a terminal device.
In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for a computer apparatus as described in claim 9, the computer software instructions comprising a program designed to perform the data processing method as described in any one of claims 1 to 4.
Compared with the prior art, the scheme provided by the invention can determine whether the target data set meets the temporary storage triggering condition of the cloud server when the terminal device detects the deletion instruction of the target data set, if so, the terminal device firstly moves the target data set from the terminal device to the temporary storage area of the cloud server, so that the effect of deleting the data set from the terminal device can be achieved, the problem of data loss caused by deleting data which is not wanted to be deleted by a user due to misoperation of the user can be avoided, if the recovery instruction aiming at the target data is not detected within the preset time duration, the user indicates that the user really wants to delete the data set, and at the moment, the terminal device indicates the cloud server to delete the target data set, so that the cloud server can be prevented from storing unnecessary data.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data processing method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a data processing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
1) A terminal device, also called a User Equipment (UE), is a device providing voice and/or data connectivity to a User, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and so on. Common terminals include, for example: the mobile phone includes a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device such as a smart watch, a smart bracelet, a pedometer, and the like.
2) A cloud server, which is typically a "virtual" server running on the same physical hardware, is used as a physical server. On the virtual server platform, an administrator can provide servers by using specific CPU, memory and disk characteristics, and the cloud server systems are provided in an online mode. The systems provided by cloud providers also have different "specifications" due to differences in functionality and price. Cloud server this product typically has two key dimensions: a CPU and a memory. Basically, the cloud server has small specifications of 1vCPU and 2GB RAM; the medium-sized specifications of the cloud server are 2vCPU and 4GB RAM; the cloud server has large specifications of 4vCPU and 8GB RAM. Cloud computing has certain requirements on the structural flexibility, the computing density, the storage capacity and the like of a cloud server.
3) Parallel execution is to perform action a and action B separately on two threads, for example, to perform action a on a first thread and perform action B on a second thread, which may be performed simultaneously or during the course of performing one action, perform the other action.
4) Matching means that some or all of the features of the objects being compared are the same. For example, if a part of the features of the user's fingerprint information is the same as a part of the features of the stored fingerprint template, or all the features of the user's fingerprint information are the same as all the features of the stored fingerprint template, it indicates that the user's fingerprint information matches the stored fingerprint template, otherwise, it is not matched.
5) "plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Embodiments of the present application are described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a communication system according to an embodiment of the present invention. The communication system shown in fig. 1 includes a terminal device 110 and a cloud server 120, where after the terminal device 110 detects a deletion instruction for a target data set, the terminal device 110 moves the target data set from the terminal device 110 to a temporary storage area of the cloud server 120, so that an effect of deleting the data set from the terminal device is achieved, and a problem of data loss due to deletion of data that a user does not want to delete due to misoperation of the user is avoided, if the terminal device 110 does not detect a recovery instruction for the target data within a preset time period, it indicates that the user really wants to delete the data set, and at this time, the terminal device 110 instructs the cloud server 120 to delete the target data set, so that unnecessary data stored by the cloud server is avoided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present invention, where a main data processing apparatus for executing the data processing method according to the present invention is described below by taking a terminal device as an example, and includes the following steps:
s201, if a deletion instruction for a target data set is detected, the terminal device determines whether the target data set meets a temporary storage triggering condition of the cloud server.
S202, if the target data set meets the cloud server temporary storage triggering condition, the terminal equipment moves the target data set from the terminal equipment to a temporary storage area of the cloud server.
S203, if the recovery instruction aiming at the target data is not detected within the preset time, the terminal equipment indicates the cloud server to delete the target data set.
Optionally, if the target data set does not meet the cloud server temporary storage triggering condition, the terminal device deletes the target data set from the terminal device.
Optionally, if a recovery instruction for the target data is detected within a preset time, the terminal device instructs the cloud server to send the target data set to the terminal device.
Optionally, the terminal device further includes a fingerprint identification module disposed below the screen of the terminal device, and before the terminal device moves the target data set from the terminal device to the temporary storage area of the cloud server in step S202, the method further includes:
when a deleting instruction aiming at the target data set is detected, the terminal equipment acquires fingerprint information of a user through the fingerprint identification module; and under the condition that the fingerprint information of the user is matched with the pre-stored fingerprint information, the terminal equipment moves the target data set from the terminal equipment to a temporary storage area of a cloud server.
That is, the target data set can be removed from the terminal device only by the user of the terminal device itself, so that unnecessary trouble caused by other users deleting data in the terminal device to the user of the terminal device itself can be avoided.
Further, if the fingerprint information of the user is not matched with the pre-stored fingerprint information, the terminal device does not perform any operation, that is, the terminal device does not delete the target data set.
Optionally, the specific implementation manner of the terminal device determining whether the target data set meets the cloud server temporary storage triggering condition in step S201 is as follows:
the terminal equipment acquires the name of the target data set and analyzes the name of the target data set to acquire the type corresponding to the target data set; if the type corresponding to the target data set is a preset type, the terminal equipment determines that the target data set meets a temporary storage triggering condition of a cloud server; and if the type corresponding to the target data set is not a preset type, the terminal equipment determines that the target data set does not meet the triggering condition for temporary storage of the cloud server.
The preset type may be, for example, a work file (e.g., a work report, a work document, a work schedule, etc.), a learning file (e.g., a paper, a document, etc.), a memo file (e.g., memo book contents), and the like.
For example, the contents of the working file, the schedule, the notepad, and the like may not be well retrieved after being deleted, and the audio/video file may be downloaded again after being deleted, assuming that the name of the target data set is "what report", the terminal device analyzes the target data set to obtain the type corresponding to the target data set as a "working report file", and the target data set belongs to the preset type, and at this time, the terminal device moves the target data set from the terminal device to the temporary storage area of the server.
Optionally, the specific implementation manner of the terminal device determining whether the target data set meets the cloud server temporary storage triggering condition in step S201 is as follows:
the terminal device determines whether the target data set is used within a preset time period;
if the target data set is used within a preset time period, the terminal equipment determines that the target data set meets a temporary storage triggering condition of a cloud server; and if the target data set is not used in a preset time period, the terminal equipment determines that the target data set does not meet the temporary storage triggering condition of the cloud server.
The end point of the preset time period is the current system time, and the duration of the preset time period may be, for example, 1 hour, 3 hours, 3.5 hours, 5 hours, 1 day, or other values.
For example, assuming that the target data set is application-related data (e.g., QQ), the preset time period is current system time — current system time +5 hours, and assuming that the target data set is used within the preset time period, the probability that the target data set is deleted by the user by mistake is relatively high.
Optionally, in step S202, a specific implementation manner of the terminal device moving the target data set from the terminal device to the temporary storage area of the cloud server is as follows: if the size of the target data set is larger than or equal to a first threshold, the terminal device splits the target data set into N sub-data sets, wherein N is an integer larger than 1; and the terminal equipment moves the N sub data sets to a temporary storage area of the cloud server on N threads in parallel.
The first threshold may be, for example, 10mb, 20mb, 25mb, 50mb, 100mb or other values.
Optionally, the size of each of the N sub-data sets is smaller than or equal to a second threshold.
The second threshold may be, for example, 10mb, 15mb, 18mb, 20mb, 25mb or other values.
Further, if the size of the target data set is smaller than the first threshold, the terminal device moves the target data set to a temporary storage area of a cloud server.
Optionally, in step S202, a specific implementation manner of the terminal device moving the target data set from the terminal device to the temporary storage area of the cloud server is as follows: if the size of the target data set is larger than or equal to the first threshold, the terminal device splits the target data set into W sub-data sets, wherein W is an integer larger than 1; if W is larger than K, and K is an integer larger than 1, the terminal equipment parallelly moves K sub data sets in the W sub data sets to a temporary storage area of a cloud server on K threads; when one of the K sub data sets completes data migration, the terminal device moves one of the W-K sub data sets to a temporary storage area of a cloud server on a thread of the one sub data set until all the W sub data sets are moved to the temporary storage area of the cloud server.
Compared with the prior art, the scheme provided by the invention can determine whether the target data set meets the temporary storage triggering condition of the cloud server when the terminal device detects the deletion instruction of the target data set, if so, the terminal device firstly moves the target data set from the terminal device to the temporary storage area of the cloud server, so that the effect of deleting the data set from the terminal device can be achieved, the problem of data loss caused by deleting data which is not wanted to be deleted by a user due to misoperation of the user can be avoided, if the recovery instruction aiming at the target data is not detected within the preset time duration, the user indicates that the user really wants to delete the data set, and at the moment, the terminal device indicates the cloud server to delete the target data set, so that the cloud server can be prevented from storing unnecessary data.
An embodiment of the present invention further provides another more detailed method flow, where a following main data processing apparatus for executing the data processing method of the present invention is described by taking a terminal device as an example, and the terminal device further includes a fingerprint identification module disposed below a screen of the terminal device, as shown in fig. 3, including:
s301, the terminal device detects a deletion instruction for a target data set.
S302, the terminal equipment collects the fingerprint information of the user through the fingerprint identification module.
S303, the terminal device determines whether the fingerprint information of the user is matched with a stored fingerprint template.
If the fingerprint information of the user matches with the pre-stored fingerprint information, step S304 is executed.
And if the fingerprint information of the user is not matched with the pre-stored fingerprint information, no operation is performed.
S304, the terminal device obtains the name of the target data set and analyzes the name of the target data set to obtain the type corresponding to the target data set.
S305, the terminal device determines whether the type corresponding to the target data set is a preset type.
If yes, go to step S306.
If not, go to step S310.
S306, the terminal device determines whether the size of the target data set is larger than or equal to a first threshold value.
If yes, go to step S307.
If not, go to step S309.
S307, the terminal device divides the target data set into N sub-data sets, wherein N is an integer larger than 1.
S308, the terminal equipment moves the N sub data sets to a temporary storage area of the cloud server on the N threads in parallel.
S309, the terminal device moves the target data set to a temporary storage area of a cloud server.
And S310, deleting the target data set from the terminal equipment by the terminal equipment.
It should be noted that, the specific implementation of the steps of the method shown in fig. 3 can refer to the specific implementation described in the above method, and will not be described here.
An embodiment of the present invention further provides a data processing apparatus 400, as shown in fig. 4, including:
a determining module 401, configured to determine, if a deletion instruction for a target data set is detected, whether the target data set meets a cloud server temporary storage trigger condition;
a transferring module 402, configured to, if the target data set meets a cloud server temporary storage trigger condition, move the target data set from a terminal device to a temporary storage area of a cloud server;
an indicating module 403, configured to instruct the cloud server to delete the target data set if a recovery instruction for the target data is not detected within a preset time period.
Optionally, the determining module is specifically configured to:
acquiring the name of the target data set, and analyzing the name of the target data set to acquire the type corresponding to the target data set;
if the type corresponding to the target data set is a preset type, determining that the target data set meets a temporary storage triggering condition of a cloud server;
and if the type corresponding to the target data set is not a preset type, determining that the target data set does not meet the temporary storage triggering condition of the cloud server.
Optionally, the transfer module 402 is specifically configured to:
if the size of the target data set is larger than or equal to a first threshold value, splitting the target data set into N sub-data sets, wherein N is an integer larger than 1; and moving the N sub-data sets to a temporary storage area of a cloud server in parallel on the N threads.
Optionally, the size of each of the N sub-data sets is smaller than or equal to a second threshold.
It should be noted that the above modules (the determining module 401, the transferring module 402 and the indicating module 403) are used for executing relevant steps of the above method.
In the present embodiment, the data processing apparatus 400 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. Further, the above determining module 401, the transferring module 402 and the indicating module 403 may be implemented by the processor 501 of the computer device shown in fig. 5.
As shown in fig. 5, a computer device 500 may be implemented in the architecture of fig. 5, the computer device comprising a terminal device, the computer device 500 comprising at least one processor 501, at least one memory 502 and at least one communication interface 503. The processor 501, the memory 502 and the communication interface 503 are connected through the communication bus and complete communication with each other.
The processor 501 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
Communication interface 503 is used for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 502 may be, but is not limited to, a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or 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. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 502 is used for storing application program codes for executing the above scheme, and is controlled by the processor 501 for execution. The processor 501 is used to execute application program code stored in the memory 502.
The code stored in the memory 502 may perform the above data processing method executed by the terminal device, for example, if a deletion instruction for a target data set is detected, it is determined whether the target data set meets a temporary storage triggering condition of the cloud server; if the target data set meets the temporary storage triggering condition of the cloud server, moving the target data set from the terminal equipment to a temporary storage area of the cloud server; and if the recovery instruction aiming at the target data is not detected within a preset time length, indicating the cloud server to delete the target data set.
In an embodiment, the terminal device is a mobile phone, and the following specifically describes each component of the mobile phone with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a data backup function, a fingerprint information acquisition function), and the like; the storage data area may store data created according to the use of the cellular phone (such as a target data set, fingerprint information, a name of the target data set), and the like. Further, the memory 620 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 input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, at least one of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the foregoing embodiment, the method flow of each step may be implemented based on the structure of the terminal device shown in fig. 6.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the data processing methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A data processing method, comprising:
if a deletion instruction for a target data set is detected, determining whether the target data set meets a cloud server temporary storage triggering condition, wherein the determining whether the target data set meets the cloud server temporary storage triggering condition comprises: determining whether the target data set meets a temporary storage triggering condition of a cloud server according to whether the target data set is used within a preset time period;
if the target data set meets the temporary storage triggering condition of the cloud server, moving the target data set from the terminal equipment to a temporary storage area of the cloud server, including: when a deleting instruction aiming at the target data set is detected, fingerprint information of a user is collected through a fingerprint identification module; if the target data set meets the temporary storage triggering condition of the cloud server, and under the condition that the fingerprint information of the user is matched with the pre-stored fingerprint information, the terminal equipment moves the target data set from the terminal equipment to a temporary storage area of the cloud server;
and if the recovery instruction aiming at the target data is not detected within a preset time length, the cloud server is instructed to delete the target data set so as to delete the target data set from the cloud server.
2. The method of claim 1, wherein the determining whether the target data set satisfies a cloud server staging trigger condition further comprises:
acquiring the name of the target data set, and analyzing the name of the target data set to acquire the type corresponding to the target data set;
if the type corresponding to the target data set is a preset type, determining that the target data set meets a temporary storage triggering condition of a cloud server;
and if the type corresponding to the target data set is not a preset type, determining that the target data set does not meet the temporary storage triggering condition of the cloud server.
3. The method according to claim 1 or 2, wherein the moving the target data set from the terminal device to a staging area of a cloud server comprises:
if the size of the target data set is larger than or equal to a first threshold value, splitting the target data set into N sub-data sets, wherein N is an integer larger than 1; and moving the N sub-data sets to a temporary storage area of a cloud server in parallel on the N threads.
4. The method of claim 3, wherein the size of each of the N sub-data sets is less than or equal to a second threshold.
5. A data processing apparatus, comprising:
the cloud server temporary storage triggering condition determining module is used for determining whether the target data set meets the cloud server temporary storage triggering condition or not if a deleting instruction for the target data set is detected, wherein the determining module is specifically used for determining whether the target data set meets the cloud server temporary storage triggering condition or not according to whether the target data set is used within a preset time period or not;
the transfer module is used for transferring the target data set from the terminal equipment to a temporary storage area of the cloud server if the target data set meets a temporary storage triggering condition of the cloud server, wherein when the transfer module detects a deletion instruction for the target data set, fingerprint information of a user is collected through a fingerprint identification module; if the target data set meets the temporary storage triggering condition of the cloud server, and the fingerprint information of the user is matched with the pre-stored fingerprint information, the transfer module transfers the target data set from the terminal equipment to a temporary storage area of the cloud server;
and the indicating module is used for indicating the cloud server to delete the target data set if a recovery instruction aiming at the target data is not detected within a preset time length so as to delete the target data set from the cloud server.
6. The apparatus of claim 5, wherein the determining module is further specifically configured to:
acquiring the name of the target data set, and analyzing the name of the target data set to acquire the type corresponding to the target data set;
if the type corresponding to the target data set is a preset type, determining that the target data set meets a temporary storage triggering condition of a cloud server;
and if the type corresponding to the target data set is not a preset type, determining that the target data set does not meet the temporary storage triggering condition of the cloud server.
7. The apparatus of claim 5 or 6, wherein the transfer module is specifically configured to:
if the size of the target data set is larger than or equal to a first threshold value, splitting the target data set into N sub-data sets, wherein N is an integer larger than 1; and moving the N sub-data sets to a temporary storage area of a cloud server in parallel on the N threads.
8. The apparatus of claim 7, wherein the size of each of the N sub-data sets is less than or equal to a second threshold.
9. A computer device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the data processing method described in any one of claims 1 to 4, and the computer device comprises a terminal device.
10. A computer storage medium for storing computer software instructions for a computer apparatus as claimed in claim 9, the computer software instructions comprising a program designed to perform the data processing method as claimed in any one of claims 1 to 4.
CN201611027334.3A 2016-11-17 2016-11-17 Data processing method and device Active CN106790361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611027334.3A CN106790361B (en) 2016-11-17 2016-11-17 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027334.3A CN106790361B (en) 2016-11-17 2016-11-17 Data processing method and device

Publications (2)

Publication Number Publication Date
CN106790361A CN106790361A (en) 2017-05-31
CN106790361B true CN106790361B (en) 2020-02-11

Family

ID=58971202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611027334.3A Active CN106790361B (en) 2016-11-17 2016-11-17 Data processing method and device

Country Status (1)

Country Link
CN (1) CN106790361B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105868B (en) * 2018-10-29 2024-01-12 深圳迈瑞生物医疗电子股份有限公司 Data management method, in-vitro diagnosis device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916471A (en) * 2014-04-02 2014-07-09 小米科技有限责任公司 Information display method and device
CN106127010A (en) * 2016-07-04 2016-11-16 珠海市魅族科技有限公司 The security setting method of terminal applies and the device of security set

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003023593A (en) * 2001-07-10 2003-01-24 Olympus Optical Co Ltd Electronic imaging camera
CN104468741B (en) * 2014-11-21 2019-01-25 中兴通讯股份有限公司 The processing method and processing device of cloud desktop
JP2016181019A (en) * 2015-03-23 2016-10-13 株式会社日立製作所 Order reception processing system and order reception processing method
CN105530356B (en) * 2015-12-21 2018-06-01 珠海格力电器股份有限公司 Communication terminal and its data guard method and device
CN106095624A (en) * 2016-06-28 2016-11-09 北京金山安全软件有限公司 Data recovery method and device, terminal equipment and server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916471A (en) * 2014-04-02 2014-07-09 小米科技有限责任公司 Information display method and device
CN106127010A (en) * 2016-07-04 2016-11-16 珠海市魅族科技有限公司 The security setting method of terminal applies and the device of security set

Also Published As

Publication number Publication date
CN106790361A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
EP3299999A2 (en) Method and device for updating sequence of fingerprint templates for matching
CN106507269B (en) Data migration method and terminal equipment
CN110430592B (en) Network control method and related product
CN106658753B (en) Data migration method and terminal equipment
EP3454240A1 (en) Unlocking methods and related products
CN106446111B (en) Data migration method and terminal
CN108834132B (en) Data transmission method and equipment and related medium product
CN106528638B (en) Method for deleting backup data and mobile terminal
CN107317918B (en) Parameter setting method and related product
CN106445739B (en) Data migration method and terminal equipment
EP3407190A1 (en) Process control method and related device
CN106484563B (en) Data migration method and terminal equipment
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106934003B (en) File processing method and mobile terminal
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN106844057B (en) Data processing method and device and mobile terminal
EP3447641A1 (en) Sound effect processing method and terminal
CN106815078B (en) Memory control method and equipment
CN106293407B (en) Picture display method and terminal equipment
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN106790361B (en) Data processing method and device
CN108304709B (en) Face unlocking method and related product
CN108228357B (en) Memory cleaning method and mobile terminal
CN106294528B (en) Method and device for realizing information transmission

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant