CN111026674A - Data storage method and electronic equipment - Google Patents

Data storage method and electronic equipment Download PDF

Info

Publication number
CN111026674A
CN111026674A CN201911198757.5A CN201911198757A CN111026674A CN 111026674 A CN111026674 A CN 111026674A CN 201911198757 A CN201911198757 A CN 201911198757A CN 111026674 A CN111026674 A CN 111026674A
Authority
CN
China
Prior art keywords
data
stored
type
application program
target area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911198757.5A
Other languages
Chinese (zh)
Inventor
陈博文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911198757.5A priority Critical patent/CN111026674A/en
Publication of CN111026674A publication Critical patent/CN111026674A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of communication, and provides a data storage method and electronic equipment, wherein the method comprises the following steps: determining the type of the data to be stored according to an application program corresponding to the data to be stored; under the condition that the data to be stored is first-class data, storing the data to be stored to a storage area corresponding to the first-class data; under the condition that the data to be stored is second-class data, storing the data to be stored to a storage area corresponding to the second-class data; and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data. The embodiment of the invention can reduce the probability of operating jamming of the electronic equipment.

Description

Data storage method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data storage method and an electronic device.
Background
With the development of electronic devices, more contents are stored on the electronic devices by users, for example, high-definition photos, videos, installed applications and the like require more storage space of the electronic devices, and with the increase of the contents stored on the electronic devices, requirements on the capacity and performance of the electronic devices are higher and higher.
In the prior art, because the cost of a TLC (Triple-bit-per-cell) memory is low, the TLC memory is usually configured on an electronic device to realize low-cost and high-capacity memory configuration. However, the data to be stored are all stored in the TLC memory, and the probability of operating jamming of the electronic device is high due to the slow read-write speed of the TLC memory.
Disclosure of Invention
The embodiment of the invention provides a data storage method and electronic equipment, and aims to solve the problem that the probability of operating jamming of the electronic equipment is high due to the fact that data to be stored are stored in a TLC (thin layer chromatography) memory in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data storage method applied to an electronic device, including:
determining the type of the data to be stored according to an application program corresponding to the data to be stored;
under the condition that the data to be stored is first-class data, storing the data to be stored to a storage area corresponding to the first-class data;
under the condition that the data to be stored is second-class data, storing the data to be stored to a storage area corresponding to the second-class data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first determining module is used for determining the type of the data to be stored according to an application program corresponding to the data to be stored;
the first storage module is used for storing the data to be stored to a storage area corresponding to the first type of data under the condition that the data to be stored is the first type of data;
the second storage module is used for storing the data to be stored to a storage area corresponding to second type data under the condition that the data to be stored is the second type data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
In a third aspect, an embodiment of the present invention provides an electronic device, including: memory, a processor and a program stored on the memory and executable on the processor, which program, when executed by the processor, performs the steps in the data storage method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the data storage method according to the first aspect.
In the embodiment of the invention, the type of the data to be stored is determined according to the application program corresponding to the data to be stored; under the condition that the data to be stored is first-class data, storing the data to be stored to a storage area corresponding to the first-class data; under the condition that the data to be stored is second-class data, storing the data to be stored to a storage area corresponding to the second-class data; and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data. Therefore, the type of the data to be stored is determined according to the application program corresponding to the data to be stored, the data to be stored is stored in different storage areas, and the probability of operating jamming of the electronic equipment can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of a data storage method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of data in a data storage method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of processor and memory interaction in an electronic device provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of an interface display of an electronic device according to an embodiment of the present invention;
fig. 5 is a second schematic view of an interface display of an electronic device according to an embodiment of the present invention;
fig. 6 is a third schematic view of an interface display of an electronic device according to an embodiment of the present invention;
fig. 7 is a fourth schematic view of an interface display of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a second schematic structural diagram of an electronic device according to a second embodiment of the present invention;
fig. 10 is a third schematic structural diagram of an electronic apparatus according to an embodiment of the invention;
fig. 11 is a fourth schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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 some, not all, embodiments of the present invention. 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.
In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
Referring to fig. 1, fig. 1 is a flowchart of a data storage method provided by an embodiment of the present invention, where the method is applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, determining the type of the data to be stored according to an application program corresponding to the data to be stored.
The type of the data to be stored may include at least a first type of data and a second type of data, and may further include a third type of data, and so on. The type of the data to be stored may be used to determine the importance degree of the data to be stored, the importance degree of the first type of data may be higher than the importance degree of the second type of data, and the importance degree of the second type of data may be higher than the importance degree of the third type of data.
In addition, the type of the data to be stored is determined according to the application program corresponding to the data to be stored, and may be determined to be the first type of data if the application program corresponding to the data to be stored is the first type of application program, and determined to be the second type of data if the application program corresponding to the data to be stored is the second type of application program. The application program corresponding to the data to be stored may be used to determine the importance degree of the data to be stored, the first type of application program may be an application program with the highest importance degree, and the importance degree of the first type of application program may be higher than that of the second type of application program.
And 102, storing the data to be stored to a storage area corresponding to the first type of data under the condition that the data to be stored is the first type of data.
The storage area corresponding to the first type of data may be a storage area with better performance, or may be a storage area with a longer service life, or may be a storage area with stronger data retention capability, and so on. For example, the storage area corresponding to the first type of data may be an SLC (Single-Level Cell) storage area. The storage areas may be wafers, or may be different physical partitions on the same wafer, or may be a single memory, or the like.
103, storing the data to be stored to a storage area corresponding to a second type of data under the condition that the data to be stored is the second type of data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
The performance parameter value of the storage area corresponding to the first type of data may be better than the performance parameter value of the storage area corresponding to the second type of data, or the service life of the storage area corresponding to the first type of data may be longer than the service life of the storage area corresponding to the second type of data, or the data retention capability of the storage area corresponding to the first type of data may be stronger than the data retention capability of the storage area corresponding to the second type of data. For example, the storage area corresponding to the first type of data may be an SLC (Single-Level Cell) storage area or an MLC (Multi-Level Cell) storage area, and the storage area corresponding to the second type of data may be a TLC (TLC) storage area or a QLC (Quad-Level Cell) storage area. Taking the memory as 128GB capacity as an example, there may be four wafers, two of which are SLC wafers for storing the first type of data and two of which are TLC wafers for storing the second type of data; alternatively, there may be two wafers that are SLC wafers for storing the first type of data and two wafers that are QLC wafers for storing the second type of data.
In addition, after the type of the data to be stored is determined according to the application program corresponding to the data to be stored, if the data to be stored is determined to be the first type of data, a first identifier may be added to the data to be stored; if the data to be stored is determined to be the second type of data, a second identifier may be added to the data to be stored. The data to be stored may be stored in a storage area corresponding to the first type of data based on the first identifier, and the data to be stored may be stored in a storage area corresponding to the second type of data based on the second identifier.
It should be noted that the first identifier is used to identify the first type of data, and the second identifier is used to identify the second type of data. The processor of the electronic device may add a first identifier or a second identifier to the data to be stored, and the control unit in the memory stores the data to be stored in the corresponding storage area based on the first identifier or the second identifier in the data to be stored.
In practical application, the data to be stored may be current read-write operation data, the first type of data may be hot data, the second type of data may be cold data, the hot data may represent frequently used data, and the cold data may represent less frequently used data. The data to be stored may be stored in an SLC wafer in the case where the data to be stored is hot data, and in a TLC wafer in the case where the data to be stored is cold data. A user may select an application program that needs to improve storage performance, the application program may be a first application program, as shown in fig. 2, a hot data identifier may be added to read-write operation data corresponding to the first application program, as shown in fig. 3, the hot data identifier may be added by a processor, data to be stored that carries the hot data identifier may be written in an SLC wafer by a controller, the user may further use an application program that does not need to improve storage performance as a second application program, the cold data identifier may be added to read-write operation data corresponding to the second application program, the cold data identifier may be added by the processor, and the data to be stored that carries the cold data identifier may be written in the TLC wafer by the controller.
In the embodiment of the invention, the type of the data to be stored is determined according to the application program corresponding to the data to be stored; under the condition that the data to be stored is first-class data, storing the data to be stored to a storage area corresponding to the first-class data; under the condition that the data to be stored is second-class data, storing the data to be stored to a storage area corresponding to the second-class data; and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data. Therefore, the type of the data to be stored is determined according to the application program corresponding to the data to be stored, the data to be stored is stored in different storage areas, and the probability of operating jamming of the electronic equipment can be reduced.
Optionally, the determining the type of the data to be stored according to the application program corresponding to the data to be stored includes:
if the application program corresponding to the data to be stored is a first type of application program, determining the data to be stored as the first type of data;
if the application program corresponding to the data to be stored is a second type of application program, determining that the data to be stored is the second type of data;
wherein the first type of application and the second type of application are applications determined based on user input.
The first type of application program may be an application program with a high use frequency or a high requirement on the reliability parameter of the memory during running, and the second type of application program may be an application program other than the first type of application program. The first type of application program and the second type of application program may be determined based on input of a user, for example, a target area may be set on a screen of the electronic device, the target area is used for displaying the first type of application program, and the user may move the application program into the target area, so that the electronic device may use the application program in the target area as the first type of application program and use the application program outside the target area as the second type of application program.
In addition, a start control may be set on an interface of the application program corresponding to the data to be stored, if the start control is in an open state, the application program corresponding to the data to be stored may be the first type of application program, and if the start control is in a closed state, the application program corresponding to the data to be stored may be the second type of application program, so that setting of a single application program may be achieved; or, the electronic device may be provided with a control switch, if the control switch is in an on state, all the applications on the electronic device may be the first type of application, and if the control switch is in an off state, all the applications on the electronic device may be the second type of application, so that the type of the applications on the electronic device may be set quickly.
In this embodiment, if the application program corresponding to the data to be stored is a first type application program, it is determined that the data to be stored is the first type data; and if the application program corresponding to the data to be stored is a second type of application program, determining that the data to be stored is the second type of data. Therefore, the type of the data to be stored can be quickly judged by judging the type of the application program corresponding to the data to be stored, and the data storage rate is further improved.
Optionally, a target area is set on a screen of the electronic device, and the target area is used for displaying the first type of application program;
if the application program corresponding to the data to be stored is the first type of application program, before determining that the data to be stored is the first type of data, the method further includes:
if the application program corresponding to the data to be stored is displayed in the target area, determining that the application program corresponding to the data to be stored is the first type of application program;
and if the application program corresponding to the data to be stored is not displayed in the target area, determining that the application program corresponding to the data to be stored is the second type of application program.
Wherein, the shape of the target area can be round, square or diamond. A first input of a user for a first target application program can be received; in response to the first input, displaying the first target application in the target area. Or may also receive a second input from the user to adjust the target area; in response to the second input, altering a coverage of the target area such that a second target application is displayed within the target area.
In addition, if the third target application program moves out of the target area from the target area, the first stored data corresponding to the third target application program may be stored in the storage area corresponding to the second type of data, and the first stored data may be deleted in the storage area corresponding to the first type of data. It should be noted that the use frequency of the stored data in the storage area corresponding to the first type of data may also be periodically scanned and counted, and if the use frequency of the second stored data is lower than a preset value, the second stored data may be stored in the storage area corresponding to the second type of data, and the second stored data is deleted from the storage area corresponding to the first type of data, so that the storage pressure of the storage area corresponding to the first type of data may be reduced.
In practical applications, the user may classify the applications on the electronic device into two types, one is a 5G (fifth generation mobile communication technology) application, and the other is a non-5G application, and for frequently used applications, the user may classify the applications into 5G applications. The 5G has higher uploading and downloading speeds, the writing speed of the memory is required to reach 500MB/s according to the downloading speed of the 5G, the current performance of the memory is only 200MB/s, the requirement of a 5G application scene cannot be met, the bottleneck on the performance of the memory can be caused, and poor user experience such as slow response of jamming is caused. The 5G application program can be moved into the target area, the data to be stored of the non-5G application program and the data to be stored of the 5G application program are stored in different storage areas, and the data to be stored of the 5G application program is stored in a storage area with a better performance parameter value, for example, an SLC storage area, so that better user experience can be obtained.
In this embodiment, a target area is set on a screen of the electronic device, and the target area is used for displaying the first type of application program; if the application program corresponding to the data to be stored is displayed in the target area, determining that the application program corresponding to the data to be stored is the first type of application program; and if the application program corresponding to the data to be stored is not displayed in the target area, determining that the application program corresponding to the data to be stored is the second type of application program. Therefore, the first type of application program is determined through the target area, so that the method is visual, convenient for user operation and good in user experience.
Optionally, in a case that the data to be stored is the second type of data, after the data to be stored is stored in the storage area corresponding to the second type of data, the method further includes:
receiving a first input of a user for a first target application program;
in response to the first input, displaying the first target application in the target area.
The first target application program may include any application program on the electronic device, and the first target application program may include an application program corresponding to the data to be stored. The first input may be an input to move the first target application into the target area; or the first input may be an input of a double click on the first target application; or the first input may also be an input for moving the first target application according to a preset trajectory, and the like, which is not limited in the embodiment of the present invention. For example, in actual applications, as shown in fig. 4, applications a and B may be clicked and selected to move into the target area 201. The first target application is displayed in the target area, and may be an icon of the first target application is displayed in the target area.
In the embodiment, a first input of a user aiming at a first target application program is received; in response to the first input, displaying the first target application in the target area. Therefore, the user can operate the first target application program, the first target application program is set to be the first type of application program, simplicity and convenience are achieved, and user experience is good.
Optionally, in a case that the data to be stored is the second type of data, after the data to be stored is stored in the storage area corresponding to the second type of data, the method further includes:
receiving a second input of a user for adjusting the target area;
in response to the second input, altering a coverage of the target area such that a second target application is displayed within the target area.
The second target application program may include any application program on the electronic device, and the second target application program may include an application program corresponding to the data to be stored. The second input may be an input of moving the target area as a whole so that the target area covers an icon of the second target application; or the second input may be an input of moving a partial border of the target area so that the target area covers an icon of the second target application; or the second input may also be that the center of the target area is kept unchanged, the target area is enlarged to enable the target area to cover the input of the icon of the second target application, and so on, and the embodiment of the present invention does not limit the second input. The second target application may be displayed in the target area, and an icon of the second target application may be displayed in the target area.
In practical applications, as shown in fig. 5, the target area 301 may be in a hidden state by default, and after configuration is performed on a preset configuration interface, the target area 301 may be in a display state. The bottom box of the drag target area 301 may be clicked such that the target area 301 covers A, B, C and four applications D, thereby making A, B, C and four applications D the first type of application. As shown in fig. 6, a dragging bar may also be displayed in the process of dragging the target area 301, which is more intuitive.
In this embodiment, a second input is received for a user to adjust the target area; in response to the second input, altering a coverage of the target area such that a second target application is displayed within the target area. Therefore, the user can adjust the target area and set the second target application program as the first type of application program, and the target area is high in interestingness and good in user experience.
Optionally, the storage area corresponding to the first type of data is an SLC storage area, and the storage area corresponding to the second type of data is a TLC storage area.
In the embodiment, the storage speed of the SLC storage area is greater than that of the TLC storage area, the service life of the SLC storage area is greater than that of the TLC storage area, and the data to be stored is stored in the SLC storage area and the TLC storage area respectively according to the type of the data to be stored, so that the storage requirements of high performance and long service life can be met.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device 400 includes:
a first determining module 401, configured to determine a type of data to be stored according to an application program corresponding to the data to be stored;
a first storage module 402, configured to store the data to be stored in a storage area corresponding to a first type of data when the data to be stored is the first type of data;
a second storage module 403, configured to store the data to be stored in a storage area corresponding to a second type of data when the data to be stored is the second type of data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
Optionally, the first determining module 401 is specifically configured to:
if the application program corresponding to the data to be stored is a first type of application program, determining the data to be stored as the first type of data;
if the application program corresponding to the data to be stored is a second type of application program, determining that the data to be stored is the second type of data;
wherein the first type of application and the second type of application are applications determined based on user input.
Optionally, a target area is set on the screen of the electronic device 400, and the target area is used for displaying the first type of application program;
as shown in fig. 8, the electronic device 400 further includes:
a second determining module 404, configured to determine that the application program corresponding to the data to be stored is the first type of application program if the application program corresponding to the data to be stored is displayed in the target area;
a third determining module 405, configured to determine that the application program corresponding to the data to be stored is the second type of application program if the application program corresponding to the data to be stored is not displayed in the target area.
Optionally, as shown in fig. 9, the electronic device 400 further includes:
a first receiving module 406, configured to receive a first input of a user for a first target application;
a first display module 407, configured to display the first target application in the target area in response to the first input.
Optionally, as shown in fig. 10, the electronic device 400 further includes:
a second receiving module 408, configured to receive a second input of a user adjusting the target area;
a second display module 409, configured to, in response to the second input, change a coverage of the target area such that a second target application is displayed in the target area.
Optionally, the storage area corresponding to the first type of data is an SLC storage area, and the storage area corresponding to the second type of data is a TLC storage area.
The electronic device can implement each process implemented by the electronic device in the method embodiment of fig. 1, and details are not described here to avoid repetition.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a robot, a wearable device, a pedometer, and the like.
Wherein processor 510 is configured to:
determining the type of the data to be stored according to an application program corresponding to the data to be stored;
the memory 509 is used to: under the condition that the data to be stored is first-class data, storing the data to be stored to a storage area corresponding to the first-class data;
the memory 509 is further configured to: under the condition that the data to be stored is second-class data, storing the data to be stored to a storage area corresponding to the second-class data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
Optionally, the processor 510 is further configured to:
if the application program corresponding to the data to be stored is a first type of application program, determining the data to be stored as the first type of data;
if the application program corresponding to the data to be stored is a second type of application program, determining that the data to be stored is the second type of data;
wherein the first type of application and the second type of application are applications determined based on user input.
Optionally, a target area is set on a screen of the electronic device, and the target area is used for displaying the first type of application program;
processor 510 is further configured to:
if the application program corresponding to the data to be stored is displayed in the target area, determining that the application program corresponding to the data to be stored is the first type of application program;
and if the application program corresponding to the data to be stored is not displayed in the target area, determining that the application program corresponding to the data to be stored is the second type of application program.
Optionally, the user input unit 507 is configured to:
receiving a first input of a user for a first target application program;
the display unit 506 is configured to: in response to the first input, displaying the first target application in the target area.
Optionally, the user input unit 507 is further configured to:
receiving a second input of a user for adjusting the target area;
the display unit 506 is further configured to: in response to the second input, altering a coverage of the target area such that a second target application is displayed within the target area.
Optionally, the storage area corresponding to the first type of data is an SLC storage area, and the storage area corresponding to the second type of data is a TLC storage area.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 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 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 11, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 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 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 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 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a program stored in the memory and capable of running on the processor, where the program, when executed by the processor, implements each process in the embodiment of the data storage method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the data storage method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. A data storage method is applied to electronic equipment and is characterized by comprising the following steps:
determining the type of the data to be stored according to an application program corresponding to the data to be stored;
under the condition that the data to be stored is first-class data, storing the data to be stored to a storage area corresponding to the first-class data;
under the condition that the data to be stored is second-class data, storing the data to be stored to a storage area corresponding to the second-class data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
2. The method according to claim 1, wherein the determining the type of the data to be stored according to the application program corresponding to the data to be stored comprises:
if the application program corresponding to the data to be stored is a first type of application program, determining the data to be stored as the first type of data;
if the application program corresponding to the data to be stored is a second type application program, determining that the data to be stored is the second type data
Wherein the first type of application and the second type of application are applications determined based on user input.
3. The method according to claim 2, wherein a target area is arranged on a screen of the electronic device, and the target area is used for displaying the first type of application program;
if the application program corresponding to the data to be stored is the first type of application program, before determining that the data to be stored is the first type of data, the method further includes:
if the application program corresponding to the data to be stored is displayed in the target area, determining that the application program corresponding to the data to be stored is the first type of application program;
and if the application program corresponding to the data to be stored is not displayed in the target area, determining that the application program corresponding to the data to be stored is the second type of application program.
4. The method according to claim 3, wherein after the data to be stored is stored in the storage area corresponding to the second type of data when the data to be stored is the second type of data, the method further comprises:
receiving a first input of a user for a first target application program;
in response to the first input, displaying the first target application in the target area.
5. The method according to claim 3, wherein after the data to be stored is stored in the storage area corresponding to the second type of data when the data to be stored is the second type of data, the method further comprises:
receiving a second input of a user for adjusting the target area;
in response to the second input, altering a coverage of the target area such that a second target application is displayed within the target area.
6. The method according to any one of claims 1 to 5, wherein the storage region corresponding to the first type of data is an SLC storage region, and the storage region corresponding to the second type of data is a TLC storage region.
7. An electronic device, comprising:
the first determining module is used for determining the type of the data to be stored according to an application program corresponding to the data to be stored;
the first storage module is used for storing the data to be stored to a storage area corresponding to the first type of data under the condition that the data to be stored is the first type of data;
the second storage module is used for storing the data to be stored to a storage area corresponding to second type data under the condition that the data to be stored is the second type data;
and the storage area corresponding to the first type of data is different from the storage area corresponding to the second type of data.
8. The electronic device of claim 7, wherein the first determining module is specifically configured to:
if the application program corresponding to the data to be stored is a first type of application program, determining the data to be stored as the first type of data;
if the application program corresponding to the data to be stored is a second type of application program, determining that the data to be stored is the second type of data;
wherein the first type of application and the second type of application are applications determined based on user input.
9. The electronic device according to claim 8, wherein a target area is arranged on a screen of the electronic device, and the target area is used for displaying the first type of application program;
the electronic device further includes:
the second determining module is used for determining that the application program corresponding to the data to be stored is the first type of application program if the application program corresponding to the data to be stored is displayed in the target area;
and the third determining module is used for determining that the application program corresponding to the data to be stored is the second type of application program if the application program corresponding to the data to be stored is not displayed in the target area.
10. The electronic device of claim 9, further comprising:
the first receiving module is used for receiving first input of a user aiming at the first target application program;
a first display module to display the first target application in the target area in response to the first input.
11. The electronic device of claim 9, further comprising:
the second receiving module is used for receiving a second input of the user for adjusting the target area;
and the second display module is used for responding to the second input and changing the coverage range of the target area so that a second target application program is displayed in the target area.
12. The electronic device according to any one of claims 7 to 11, wherein the storage region corresponding to the first type of data is an SLC storage region, and the storage region corresponding to the second type of data is a TLC storage region.
13. An electronic device, comprising: memory, processor and program stored on the memory and executable on the processor, which when executed by the processor implements the steps in the data storage method of any one of claims 1 to 6.
CN201911198757.5A 2019-11-29 2019-11-29 Data storage method and electronic equipment Pending CN111026674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911198757.5A CN111026674A (en) 2019-11-29 2019-11-29 Data storage method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911198757.5A CN111026674A (en) 2019-11-29 2019-11-29 Data storage method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111026674A true CN111026674A (en) 2020-04-17

Family

ID=70207070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911198757.5A Pending CN111026674A (en) 2019-11-29 2019-11-29 Data storage method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111026674A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666421A (en) * 2020-06-03 2020-09-15 北京声智科技有限公司 Data processing method and device and electronic equipment
CN112684987A (en) * 2021-01-07 2021-04-20 南方电网数字电网研究院有限公司 Data classification storage method and device based on double-core intelligent electric meter
WO2021243486A1 (en) * 2020-05-30 2021-12-09 华为技术有限公司 Data storage method and system, and processor

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176688A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and device of sort application
CN103513978A (en) * 2012-07-02 2014-01-15 Tcl集团股份有限公司 Method and system for managing layout of application according to attribute information of application
CN103677654A (en) * 2012-09-24 2014-03-26 联想(北京)有限公司 Method and electronic equipment for storing data
CN104572478A (en) * 2013-10-14 2015-04-29 联想(北京)有限公司 Data access method and data access device
CN105100505A (en) * 2015-07-17 2015-11-25 中国联合网络通信集团有限公司 Method and system for assigning battery level to terminal applications
CN105159602A (en) * 2015-08-03 2015-12-16 联想(北京)有限公司 Data processing method and storage device
CN105204927A (en) * 2015-09-30 2015-12-30 北京奇虎科技有限公司 Application arrangement device and method for terminal equipment
CN105204707A (en) * 2014-06-23 2015-12-30 联想(北京)有限公司 Display object displaying method and electronic equipment
CN105718148A (en) * 2016-01-26 2016-06-29 北京小米移动软件有限公司 Display method and device for application icons and equipment
CN106843762A (en) * 2017-01-17 2017-06-13 北京联想核芯科技有限公司 The method and solid state hard disc of managing storage area
CN107450858A (en) * 2017-08-11 2017-12-08 湖南国科微电子股份有限公司 A kind of solid state hard disc classification storage method and system
US20190220218A1 (en) * 2018-01-12 2019-07-18 Western Digital Technologies, Inc. Tiered storage data evacuation within solid state devices

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176688A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and device of sort application
CN103513978A (en) * 2012-07-02 2014-01-15 Tcl集团股份有限公司 Method and system for managing layout of application according to attribute information of application
CN103677654A (en) * 2012-09-24 2014-03-26 联想(北京)有限公司 Method and electronic equipment for storing data
CN104572478A (en) * 2013-10-14 2015-04-29 联想(北京)有限公司 Data access method and data access device
CN105204707A (en) * 2014-06-23 2015-12-30 联想(北京)有限公司 Display object displaying method and electronic equipment
CN105100505A (en) * 2015-07-17 2015-11-25 中国联合网络通信集团有限公司 Method and system for assigning battery level to terminal applications
CN105159602A (en) * 2015-08-03 2015-12-16 联想(北京)有限公司 Data processing method and storage device
CN105204927A (en) * 2015-09-30 2015-12-30 北京奇虎科技有限公司 Application arrangement device and method for terminal equipment
CN105718148A (en) * 2016-01-26 2016-06-29 北京小米移动软件有限公司 Display method and device for application icons and equipment
CN106843762A (en) * 2017-01-17 2017-06-13 北京联想核芯科技有限公司 The method and solid state hard disc of managing storage area
CN107450858A (en) * 2017-08-11 2017-12-08 湖南国科微电子股份有限公司 A kind of solid state hard disc classification storage method and system
US20190220218A1 (en) * 2018-01-12 2019-07-18 Western Digital Technologies, Inc. Tiered storage data evacuation within solid state devices

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021243486A1 (en) * 2020-05-30 2021-12-09 华为技术有限公司 Data storage method and system, and processor
EP4148588A4 (en) * 2020-05-30 2023-07-12 Huawei Technologies Co., Ltd. Data storage method and system, and processor
CN111666421A (en) * 2020-06-03 2020-09-15 北京声智科技有限公司 Data processing method and device and electronic equipment
CN111666421B (en) * 2020-06-03 2024-05-10 北京声智科技有限公司 Data processing method and device and electronic equipment
CN112684987A (en) * 2021-01-07 2021-04-20 南方电网数字电网研究院有限公司 Data classification storage method and device based on double-core intelligent electric meter

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN110062105B (en) Interface display method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN109525710B (en) Method and device for accessing application program
US20220244819A1 (en) Message viewing method and terminal
CN108984066B (en) Application icon display method and mobile terminal
CN110445924B (en) Network task execution method and terminal equipment
CN109407920B (en) Status icon display method, status icon processing method and related equipment
US11354017B2 (en) Display method and mobile terminal
CN108345425B (en) Application management method and mobile terminal
CN109976611B (en) Terminal device control method and terminal device
CN109558046B (en) Information display method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN109358931B (en) Interface display method and terminal
CN111142769A (en) Split screen display method and electronic equipment
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN111124223A (en) Application interface switching method and electronic equipment
WO2021164716A1 (en) Display method and electronic device
CN110244884B (en) Desktop icon management method and terminal equipment
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN110764666A (en) Display control method and electronic equipment
CN111026674A (en) Data storage method and electronic equipment
US11989399B2 (en) Display method and electronic device
CN111158485B (en) Screen control method and electronic 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200417

WD01 Invention patent application deemed withdrawn after publication