CN106484529B - The Memory adjustments method and terminal of terminal - Google Patents
The Memory adjustments method and terminal of terminal Download PDFInfo
- Publication number
- CN106484529B CN106484529B CN201610818869.6A CN201610818869A CN106484529B CN 106484529 B CN106484529 B CN 106484529B CN 201610818869 A CN201610818869 A CN 201610818869A CN 106484529 B CN106484529 B CN 106484529B
- Authority
- CN
- China
- Prior art keywords
- memory
- message
- specified
- information
- adjustments interface
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
Abstract
The present invention is suitable for adjusting performance field, provides the Memory adjustments method and terminal of a kind of terminal.The described method includes: detecting whether to receive the message comprising specify information;When receiving the message comprising specify information, Memory adjustments interface message is obtained;Call corresponding Memory adjustments interface adjustment is specified to apply corresponding virtual memory according to the Memory adjustments interface message of acquisition.The good experience of user is improved so that virtual memory terminal adjusted is more suitable for interacting with server by the above method.
Description
Technical field
The embodiment of the present invention belongs to the Memory adjustments method and terminal of adjusting performance field more particularly to a kind of terminal.
Background technique
With the fast development of terminal and network technology, work is interacted by network implementations between each terminal and server
It moves more and more.But when multiple terminals are interacted with server simultaneously, since the network state of terminal itself, software setting etc. can
Can be different, therefore, although multiple terminal is caused to request to interact with server simultaneously, actual interactive speed may not
Together, to bring poor experience to user.
Summary of the invention
The embodiment of the invention provides the Memory adjustments methods and terminal of a kind of terminal, it is intended to although solving existing terminal
Request is interacted with server simultaneously, but actual interactive speed may be different, to bring asking for poor experience to user
Topic.
The embodiment of the present invention in a first aspect, providing a kind of Memory adjustments method of terminal, which comprises
It detects whether to receive the message comprising specify information;
When receiving the message comprising specify information, Memory adjustments interface message is obtained;
Call corresponding Memory adjustments interface adjustment is specified to apply corresponding void according to the Memory adjustments interface message of acquisition
Quasi- memory.
The second aspect of the embodiment of the present invention, provides a kind of terminal, and the terminal includes:
Message detection unit, for detecting whether receiving the message comprising specify information;
Memory adjustments interface message acquiring unit, for obtaining memory tune when receiving the message comprising specify information
Whole interface message;
Virtual memory adjustment unit, for calling corresponding Memory adjustments interface according to the Memory adjustments interface message of acquisition
Adjustment is specified to apply corresponding virtual memory.
The third aspect of the embodiment of the present invention, provides a kind of terminal, and the terminal includes:
Processor and input equipment,
The processor receives the message comprising specify information for detecting whether by the input equipment, is connecing
When receiving the message comprising specify information, Memory adjustments interface message is obtained;
The processor is also used to call corresponding Memory adjustments interface adjustment according to the Memory adjustments interface message of acquisition
It is specified to apply corresponding virtual memory.
In embodiments of the present invention, corresponding due to when receiving the message comprising specify information, adjusting specified application
Therefore virtual memory can according to the actual situation in time be adjusted the virtual memory of terminal, so that virtual memory tune
Terminal after whole is more suitable for interacting with server, improves the good experience of user.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the Memory adjustments method for terminal that first embodiment of the invention provides;
Fig. 2 is a kind of structure chart for terminal that second embodiment of the invention provides;
Fig. 3 is a kind of block diagram of the part-structure for the relevant mobile phone of terminal that third embodiment of the invention provides;
Fig. 4 is a kind of schematic block diagram for terminal that fourth embodiment of the invention provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
It in the embodiment of the present invention, detects whether to receive the message comprising specify information, receive comprising specify information
Message when, obtain Memory adjustments interface message, call corresponding Memory adjustments to connect according to the Memory adjustments interface message of acquisition
Mouth adjustment is specified to apply corresponding virtual memory.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of flow chart of the Memory adjustments method of terminal of first embodiment of the invention offer, is described in detail such as
Under:
Step S11 detects whether to receive the message comprising specify information.
In the step, specify information includes the information of specified application, when the message for receiving the information comprising specified application
When, determine that terminal receives the message comprising specify information;The specify information also may include the information of specified Activity, or
Person, the information including designated character, alternatively, including the information etc. of specified process.
Specifically, it detects whether to receive the message comprising specify information in the following manner.
(1) for the system interface of specified application setting network interaction.In application starting, the application of terminal judgement starting
It whether is specified application, if so, monitoring the application of the starting.In the information for designating the information as designated character, then monitoring should
Whether the information of the application transport of starting includes the information of designated character, if including determining that terminal is received comprising specified letter
The message of breath.
(2) when application switching occurs, whether the application that judgement will be switched to foreground is specified application, if so, opening
Open monitoring.In Activity switching, whether the Activity for judging that currently assigned application is switching is related with specify information,
If related, determine that terminal receives the message comprising specify information.
(3) the interface message of the specified application of detection, specifically, whether the interface message for detecting specified application includes designated word
Symbol, for example, it is assumed that the message comprising specify information is related with red packet, then designated character may be set to " red packet ", i.e. detection is specified
Whether the interface message of application includes " red packet ", if including, determines that terminal receives the message comprising specify information.
(4) start a background process, whether disappearing comprising specify information is received by the background process monitoring of starting
Breath determines that terminal receives the message comprising specify information when receiving the message comprising specify information.
Other than judging whether to receive comprising the message of specify information above by terminal itself, base can also be passed through
It stands or the detection such as gateway, and result is fed back into terminal.
Optionally, before step S11, comprising:
Prediction will receive the time of the message comprising specify information, to execute step when reaching the time of prediction
Rapid S11.Specifically, it will be received according to the historical record prediction for receiving the message comprising specify information comprising specify information
Message time.For example, it is assumed that it is maximum probability thing that 12 points, which receive the message comprising specify information, at noon in historical record
Part, then using 12 noon as the time of prediction.Alternatively, statistics is specified to apply received message, in received message package
When containing information related with specify information, the temporal information in the message comprising information related with specify information is obtained,
And time of the temporal information that will acquire as prediction.For example, it is assumed that the chat record of wechat includes " will give bonus ", and
" red packet " is information related with specify information, then " will give bonus " corresponding temporal information is obtained, for example, will receive
Time of the time point of " will give bonus " this message as prediction.Certainly, if the chat record of wechat includes " at noon 12
Point will give bonus ", and " red packet " is information related with specify information, then by " 12 noon " as the time predicted.
Step S12 obtains Memory adjustments interface message when receiving the message comprising specify information.
Wherein, Memory adjustments interface message includes the title of Memory adjustments interface, the store path at place etc..
Specifically, Memory adjustments interface message can be obtained in several ways, at this point, the step S12 is specifically included:
A1, when receiving the message comprising specify information, pass through preset interface function and obtain Memory adjustments interface letter
Breath.Specifically, if developer is in terminal preset interface function (such as application programming interface (Application
Programming Interface, API) function), for example, in the preset Memory adjustments interface message that need to be obtained of interface function,
When calling the interface function, which can directly acquire identical with the Memory adjustments interface message of preset need acquisition
Memory adjustments interface message.
Alternatively,
A2, when receiving the message comprising specify information, Memory adjustments interface letter is obtained according to the plug-in unit of user's downloading
Breath, the plug-in unit include the power function for obtaining Memory adjustments interface message.Specifically, user downloads in advance and installs third party
Plug-in unit, the terminal operating third side plug obtain Memory adjustments interface message.Wherein, which includes obtaining memory
Adjust the power function of interface message, certainly, power function for obtaining Memory adjustments interface message is preset need to obtain in
Deposit adjustment interface message.
Alternatively,
A3, when receiving the message comprising specify information, obtained by write device node (passing through written document node) in
Deposit adjustment interface message.Specifically, when by write device node obtain Memory adjustments interface message when, can by open ("/
Dev/xxx ", O_RDWR) as code open equipment, the node of driver again in this way is to applying (application program)
There is provided various services: (write) is write in such as reading (read).
Step S13 calls the corresponding specified application of Memory adjustments interface adjustment according to the Memory adjustments interface message of acquisition
Corresponding virtual memory.
Specifically, it includes: to be turned up or turn down to specify application corresponding virtually that adjustment, which is specified using corresponding virtual memory,
Memory, for example, when specified application applies corresponding virtual memory in application, this is turned up and specifies for what user wished preferentially to use,
To improve the speed of service of the specified application, Caton phenomenon is reduced;When specified application is that user is not intended to the application preferentially used
When, it is specified using corresponding virtual memory to turn down this.
Optionally, the step S13 includes:
B1, call the corresponding specified application of Memory adjustments interface height-regulating corresponding according to the Memory adjustments interface message of acquisition
Virtual memory, the specified application are related with the message comprising specify information.Wherein, specified apply with described includes
The message of specify information is in relation to including: the specified application and institute when specify information needs to interact by specified application with user
It is related to state the message comprising specify information;When specify information includes specifying the information of application, as specified the title of application or specifying
The information such as the description of application, then the specified application is related with the message comprising specify information.
And/or
B2, corresponding Memory adjustments interface is called to turn down non-designated application correspondence according to the Memory adjustments interface message of acquisition
Virtual memory.Specifically, the corresponding virtual memory of non-designated application can be turned down, to guarantee that it is enough virtual that specified application has
Memory.
Optionally, the virtual interior of the specified application is distributed to since specified application may continue on in the process of running
It deposits, therefore, applies the Caton phenomenon occurred in subsequent use to reduce to specify, then include: after the B1
C1, in the specified application operational process, count the free virtual memory of the specified application.Wherein, idle
Virtual memory refer to distributed to specified application and not by this it is specified using virtual memory.Specifically, it can be answered specified
After operation a period of time, the free virtual memory of specified application is just counted at interval of a period of time, alternatively, specified detecting
After starting a certain function, the free virtual memory of the specified application is counted, it should be noted that when the specified application of starting
A certain function when, this will be occupied and specified apply more virtual memory.
C2, when the free virtual memory of the specified application is less than specified threshold value, the specified application is turned up again
Corresponding virtual memory.
Specifically, when the free virtual memory of specified application is less than specified threshold value, alternatively, when the free time of specified application is empty
Quasi- memory is less than specified threshold value and judges that specified application still will continue to using (as when a certain function for having been turned on the specified application
When energy, and can continue for some time after a certain function starting can just terminate), it is corresponding virtual that the specified application is turned up again
Memory, to improve the continuity of the specified application operation.
Certainly, corresponding virtual memory is applied in addition to adjusting to specify, other performances of terminal can also be adjusted, the terminal
Other performances include: CPU, GPU, memory, touch screen, antenna, the adjustment of physical button function etc..Wherein, terminal carries out phase
The adjusting performance answered includes: the GPU running frequency be turned up or turn down the CPU running frequency of terminal, be turned up or turn down terminal, is turned up
Or turn down the corresponding memory of specified application, control touch screen by operations such as file nodes, so that touch screen does not enter sleep mould
Scan frequency and data (while making touch screen not enter sleep pattern, can also be reported rate to be increased to setting value by formula.
It should be pointed out that these operations can be completed by setting touch screen register.Whether scan frequency determines touch screen
The movement of finger can be recognized as soon as possible, such as the scan frequency of touch screen can be increased to 100HZ from 50HZ, touched
The rate of screen reported data decides whether that data can be reported to upper layer as soon as possible, such as touch screen can be reported speed
Degree from 80 points it is per second to mention 100 points per second, be arranged in this way, can quickly identify the operation of user, when user exists
When executing " robbing red packet " this alternative events, the movement of user can be quickly responded, so that improving user gets the general of red packet
Rate).
Optionally, after the step S13, comprising:
When preset condition reaches, specified specified answering before adjustment is reduced to using corresponding virtual memory for adjusted
With corresponding virtual memory.In the step, by it is adjusted it is specified be reduced to using corresponding virtual memory it is specified before adjustment
Using corresponding virtual memory, so as to the continuity for maintaining the different application of terminal to run.Here preset condition includes: default
Movement is completed, preset time reaches, whether specified application switches to backstage etc..For example, when deliberate action is that user robs red packet
Movement when, then after the completion of user robs red packet, by it is adjusted it is specified using corresponding virtual memory be reduced to adjustment before
It is specified to apply corresponding virtual memory, for example, it is assumed that the void of some application of terminal has been turned up before executing the movement for robbing red packet
Quasi- memory turns down the virtual memory of some application of terminal then after the movement for robbing red packet terminates, and is somebody's turn to do until adjusted
The virtual memory of some application is equal to the virtual memory of some application before being turned up.Wherein, preset time here can pass through
Following manner determines: according to user using some function of application, and the duration for using some function of the primary application to need
It determines, for example, it is assumed that user needs to rob red packet function using wechat, then preset time can once rob red packet function according to using
Required duration determines;Alternatively, according to user using some function of application, and some function of the multiple application is used to need
The duration wanted determines, continue by user need using wechat rob red packet function for, then acquire in some group and distribute red packet
Time data, the semanteme and the relationship for the movement that actually gives bonus that analysis was implied in chat message when distributing red packet give bonus,
Binding time data and relation data, the mode for distributing red packet to each group in wechat is predicted, when some group
When in the presence of the record continuously to give bonus, such as: which online user, which likes going with, gives bonus, the number etc. to give bonus of going with,
According to the mode for distributing red packet predicted, the corresponding duration of preset time is determined, for example, some group likes continuous when prediction
It gives bonus, and when the group is giving bonus, then longer duration will be arranged in the preset time.
It in first embodiment of the invention, detects whether to receive the message comprising specify information, receive comprising specified
When the message of information, Memory adjustments interface message is obtained, corresponding memory tune is called according to the Memory adjustments interface message of acquisition
Whole interface adjustment is specified to apply corresponding virtual memory.It is answered since when receiving the message comprising specify information, adjustment is specified
Therefore the virtual memory of terminal can be adjusted in time according to the actual situation, so that empty with corresponding virtual memory
Terminal after quasi- Memory adjustments is more suitable for interacting with server, improves the good experience of user.
It should be understood that in embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be determined by its function and internal logic, the implementation process structure without coping with the embodiment of the present invention
At any restriction.
Embodiment two:
Fig. 2 shows a kind of structure charts for terminal that second embodiment of the invention provides, which may include through wireless
Access net RAN and the user equipment that is communicated of one or more core nets, the user equipment can be mobile phone and (or be
" honeycomb " phone), the computer with mobile device etc., for example, user equipment can also be portable, pocket, hand-held,
Built-in computer or vehicle-mounted mobile device, they exchange voice and/or data with wireless access network.In another example the shifting
Dynamic equipment may include smart phone, tablet computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..In order to
Convenient for explanation, only parts related to embodiments of the present invention are shown.
The terminal includes: message detection unit 21, Memory adjustments interface message acquiring unit 22, virtual memory adjustment unit
23.Wherein:
Message detection unit 21, for detecting whether receiving the message comprising specify information.
Wherein, specify information includes that the information of specified application is sentenced when receiving the message of the information comprising specified application
Determine terminal and receives the message comprising specify information;The specify information also may include the information of specified Activity, alternatively, packet
The information of designated character is included, alternatively, including the information etc. of specified process.
Specifically, it detects whether to receive the message comprising specify information in the following manner.
(1) for the system interface of specified application setting network interaction.In application starting, the application of terminal judgement starting
It whether is specified application, if so, monitoring the application of the starting.In the information for designating the information as designated character, then monitoring should
Whether the information of the application transport of starting includes the information of designated character, if including determining that terminal is received comprising specified letter
The message of breath.
(2) when application switching occurs, whether the application that judgement will be switched to foreground is specified application, if so, opening
Open monitoring.In Activity switching, whether the Activity for judging that currently assigned application is switching is related with specify information,
If related, determine that terminal receives the message comprising specify information.
(3) the interface message of the specified application of detection, specifically, whether the interface message for detecting specified application includes designated word
Symbol, for example, it is assumed that the message comprising specify information is related with red packet, then designated character may be set to " red packet ", i.e. detection is specified
Whether the interface message of application includes " red packet ", if including, determines that terminal receives the message comprising specify information.
(4) start a background process, whether disappearing comprising specify information is received by the background process monitoring of starting
Breath determines that terminal receives the message comprising specify information when receiving the message comprising specify information.
Other than judging whether to receive comprising the message of specify information above by terminal itself, base can also be passed through
It stands or the detection such as gateway, and result is fed back into terminal.
Memory adjustments interface message acquiring unit 22, for obtaining memory when receiving the message comprising specify information
Adjust interface message.
Wherein, Memory adjustments interface message includes the title of Memory adjustments interface, the store path at place etc..
Optionally, the Memory adjustments interface message acquiring unit 22 includes:
First Memory adjustments interface message obtains module, for when receiving the message comprising specify information, by pre-
The interface function set obtains Memory adjustments interface message.Specifically, if developer is in terminal preset interface function (such as API
Function), for example, in the preset Memory adjustments interface message that need to be obtained of interface function, when calling the interface function, the interface letter
Number can directly acquire Memory adjustments interface message identical with the Memory adjustments interface message of preset need acquisition.
Alternatively,
Second Memory adjustments interface message obtains module, for when receiving the message comprising specify information, according to
The plug-in unit of family downloading obtains Memory adjustments interface message, and the plug-in unit includes the power function for obtaining Memory adjustments interface message.
Specifically, user downloads in advance and installs third side plug, and the terminal operating third side plug is believed to obtain Memory adjustments interface
Breath.Wherein, which includes the power function for obtaining Memory adjustments interface message, certainly, for obtaining Memory adjustments
The preset Memory adjustments interface message that need to be obtained of the power function of interface message.
Alternatively,
Third Memory adjustments interface message obtains module, for when receiving the message comprising specify information, by writing
Device node (passing through written document node) obtains Memory adjustments interface message.Specifically, when by write device node obtain memory
When adjusting interface message, equipment can be opened by code as open ("/dev/xxx ", O_RDWR), driver leads to again
Cross such node and provide various services to application (application program): (write) is write in such as reading (read).
Virtual memory adjustment unit 23, for calling corresponding Memory adjustments to connect according to the Memory adjustments interface message of acquisition
Mouth adjustment is specified to apply corresponding virtual memory.
Specifically, it includes: to be turned up or turn down to specify application corresponding virtually that adjustment, which is specified using corresponding virtual memory,
Memory, for example, when specified application applies corresponding virtual memory in application, this is turned up and specifies for what user wished preferentially to use,
To improve the speed of service of the specified application, Caton phenomenon is reduced;When specified application is that user is not intended to the application preferentially used
When, it is specified using corresponding virtual memory to turn down this.
Optionally, the virtual memory adjustment unit 23 includes:
Module is turned up in virtual memory, for calling corresponding Memory adjustments interface according to the Memory adjustments interface message of acquisition
It is turned up to specify and applies corresponding virtual memory, the specified application is related with the message comprising specify information.Wherein, described
Specified application is with the message comprising specify information in relation to including: when specify information needs to interact by specified application with user
When, the specified application is related with the message comprising specify information;When specify information includes the information of specified application, as specified
The information such as the description of the title of application or specified application, then the specified application is related with the message comprising specify information.
And/or
Virtual memory turns down module, for calling corresponding Memory adjustments interface according to the Memory adjustments interface message of acquisition
Turn down the corresponding virtual memory of non-designated application.Specifically, the corresponding virtual memory of non-designated application can be turned down, it is specified to guarantee
Using with enough virtual memorys.
Optionally, the virtual interior of the specified application is distributed to since specified application may continue on in the process of running
It deposits, therefore, applies the Caton phenomenon occurred in subsequent use to reduce to specify, the terminal includes:
Free virtual Memory statistics unit, for counting the specified application in the specified application operational process
Free virtual memory.Specifically, specified application can be just counted at interval of a period of time after specified application operation a period of time
Free virtual memory, alternatively, after detecting that specified application starts a certain function, in the free virtual of the statistics specified application
It deposits, it should be noted that when a certain function of the specified application of starting, it is specified using more virtual memory that this will be occupied.
Unit is turned up in virtual memory again, and specified threshold value is less than for the free virtual memory in the specified application
When, the corresponding virtual memory of the specified application is turned up again.Specifically, it is specified when the free virtual memory of specified application is less than
Threshold value, alternatively, when the free virtual memory of specified application is less than specified threshold value and judges that specified application still will continue to make
With (such as when having been turned on a certain function of the specified application, and can continue for some time after a certain function starting can just tie
Beam), the corresponding virtual memory of the specified application is turned up, again to improve the continuity of the specified application operation.
Optionally, certainly, corresponding virtual memory is applied in addition to adjusting to specify, other performances of terminal can also be adjusted,
Other performances of the terminal include: CPU, GPU, memory, touch screen, antenna, the adjustment of physical button function etc..Wherein, eventually
It includes: the GPU operation be turned up or turn down the CPU running frequency of terminal, be turned up or turn down terminal that end, which carries out corresponding adjusting performance,
Frequency is turned up or turns down the corresponding memory of specified application, controls touch screen by operations such as file nodes so that touch screen not into
Entering sleep pattern (while making touch screen not enter sleep pattern, can also report rate to improve scan frequency and data
To setting value.It should be pointed out that these operations can be completed by setting touch screen register.Scan frequency determines touching
It touches whether screen can recognize the movement of finger as soon as possible, such as the scan frequency of touch screen can be increased to from 50HZ
100HZ, the rate of touch screen reported data decide whether that data can be reported to upper layer as soon as possible, such as can be touch
The report speed of screen from 80 points it is per second to mention 100 points per second, be arranged in this way, can quickly identify the behaviour of user
Make, when user is in execution " robbing red packet " this alternative events, can quickly respond the movement of user, be robbed to improve user
To the probability of red packet).
Optionally, the terminal includes:
Virtual memory reduction unit is used for when preset condition reaches, and specified application adjusted is corresponding virtual interior
Deposit the corresponding virtual memory of specified application before being reduced to adjustment.
Here preset condition includes: that deliberate action is completed, preset time reaches, whether specified application switches to backstage etc.
Deng.For example, then after the completion of user robs red packet, adjusted specify is answered when deliberate action is that user robs the movement of red packet
The corresponding virtual memory of specified application before being reduced to adjustment with corresponding virtual memory robs the dynamic of red packet for example, it is assumed that executing
Virtual memory of some application of terminal has been turned up before making, then after the movement for robbing red packet terminates, turn down terminal this certain
The virtual memory of a application, until the virtual memory of some application adjusted is equal to the virtual of some application before being turned up
Memory.
In second embodiment of the invention, corresponded to due to when receiving the message comprising specify information, adjusting specified application
Virtual memory therefore the virtual memory of terminal can be adjusted in time according to the actual situation, so that virtual memory
Terminal adjusted is more suitable for interacting with server, improves the good experience of user.
Embodiment three:
Fig. 3 shows the block diagram of the part-structure of mobile phone relevant to the terminal of third embodiment of the invention offer.Ginseng
Fig. 3 is examined, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 310, memory 320, input unit 330, display unit
340, the components such as sensor 350, voicefrequency circuit 360, wireless module 370, processor 380 and power supply 390.Art technology
Personnel are appreciated that handset structure shown in Fig. 3 does not constitute the restriction to mobile phone, may include more more or less than illustrating
Component, perhaps combine certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 3 to mobile phone:
RF circuit 310 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 380;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet
Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuit 310 can also be communicated with network and other equipment by wireless communication.
Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication
System of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access
(Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution,
LTE)), Email, short message service (Short Messaging Service, SMS) etc..
Memory 320 can be used for storing software program and module, and processor 380 is stored in memory 320 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 320 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone
Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 320 may include high-speed random access memory
Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states
Part.
Input unit 330 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 300
And the related key signals input of function control.Specifically, input unit 330 may include touch panel 331 and other inputs
Equipment 332.Touch panel 331, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes
With the operation of any suitable object or attachment such as finger, stylus on touch panel 331 or near touch panel 331), and
Corresponding attachment device is driven according to preset formula.Optionally, touch panel 331 may include touch detecting apparatus and touching
Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter
Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into
Contact coordinate, then give processor 380, and order that processor 380 is sent can be received and executed.Furthermore, it is possible to using
The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 331.It is defeated in addition to touch panel 331
Entering unit 330 can also include other input equipments 332.Specifically, other input equipments 332 can include but is not limited to physics
One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 340 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 340 may include display panel 341, optionally, can use liquid crystal display (Liquid Crystal
Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure
Show panel 341.Further, touch panel 331 can cover display panel 341, when touch panel 331 detect it is on it or attached
After close touch operation, processor 380 is sent to determine the type of touch event, is followed by subsequent processing device 880 according to touch event
Type corresponding visual output is provided on display panel 341.Although in Fig. 3, touch panel 331 and display panel 341
It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control
Panel 331 and display panel 341 are integrated and that realizes mobile phone output and input function.
Mobile phone 300 may also include at least one sensor 350, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 341, and proximity sensor can close display panel when mobile phone is moved in one's ear
341 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 360, loudspeaker 361, microphone 362 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 361, be converted to sound by loudspeaker 361 by road 360
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 362, is turned after being received by voicefrequency circuit 360
It is changed to audio data, then by after the processing of audio data output processor 380, such as another mobile phone is sent to through RF circuit 310,
Or audio data is exported to memory 320 to be further processed.
Wireless module is based on short range wireless transmission technology, and mobile phone can help user to receive and dispatch electricity by wireless module 370
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 shows
Go out wireless module 370, but it is understood that, and it is not belonging to must be configured into for mobile phone 300, it can according to need completely
It omits within the scope of not changing the essence of the invention.
Processor 380 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 320, and call and be stored in memory 320
Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 380 can wrap
Include one or more processing units;Preferably, processor 380 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 380.
Mobile phone 300 further includes the power supply 390 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 380 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
Although being not shown, mobile phone 300 can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 380 included by the terminal is also with the following functions: a kind of memory of terminal
Method of adjustment, comprising:
It detects whether to receive the message comprising specify information;
When receiving the message comprising specify information, Memory adjustments interface message is obtained;
Call corresponding Memory adjustments interface adjustment is specified to apply corresponding void according to the Memory adjustments interface message of acquisition
Quasi- memory.
Further, described when receiving the message comprising specify information, Memory adjustments interface message is obtained, it is specific to wrap
It includes:
When receiving the message comprising specify information, Memory adjustments interface message is obtained by preset interface function;
Alternatively,
When receiving the message comprising specify information, Memory adjustments interface message is obtained according to the plug-in unit of user's downloading,
The plug-in unit includes the power function for obtaining Memory adjustments interface message;
Alternatively,
When receiving the message comprising specify information, memory tune is obtained by write device node or by written document node
Whole interface message.
Further, described to call corresponding Memory adjustments interface adjustment specified according to the Memory adjustments interface message of acquisition
Using corresponding virtual memory, specifically include:
Corresponding Memory adjustments interface is called to be turned up according to the Memory adjustments interface message of acquisition specified using corresponding void
Quasi- memory, the specified application are related with the message comprising specify information;
And/or
Corresponding Memory adjustments interface is called to turn down non-designated application according to the Memory adjustments interface message of acquisition corresponding
Virtual memory.
Further, corresponding Memory adjustments interface height-regulating is called to refer to according to the Memory adjustments interface message of acquisition described
Surely include: later using corresponding virtual memory
In the specified application operational process, the free virtual memory of the specified application is counted;
When the free virtual memory of the specified application is less than specified threshold value, the specified application is turned up again and corresponds to
Virtual memory.
Further, corresponding Memory adjustments interface adjustment is called to refer to according to the Memory adjustments interface message of acquisition described
Surely using after corresponding virtual memory, comprising:
When preset condition reaches, specified specified answering before adjustment is reduced to using corresponding virtual memory for adjusted
With corresponding virtual memory.
Example IV:
Fig. 4 is a kind of schematic block diagram for terminal that fourth embodiment of the invention provides, and the terminal as shown in the figure can be with
It include: one or more processors 401 (one is only shown in figure);One or more input equipments 402 (only show one in figure
It is a), one or more output equipments 403 (one is only shown in figure), memory 404 and display 405.Above-mentioned processor 401,
Input equipment 402, output equipment 403, memory 404 and display 405 are connected by bus 406.Memory 402 is for storing
Instruction, processor 401 are used to execute the instruction of the storage of memory 402.Wherein:
The processor 401, for detecting whether to receive disappearing comprising specify information by the input equipment 402
Breath obtains Memory adjustments interface message when receiving the message comprising specify information;The processor 401 is also used to basis
The Memory adjustments interface message of acquisition calls corresponding Memory adjustments interface adjustment is specified to apply corresponding virtual memory.
It should be appreciated that in embodiments of the present invention, the processor 401 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 402 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user
Directional information), microphone, data receiver interface etc..Output equipment 403 may include display (LCD etc.), loudspeaker, data
Transmission interface etc..
The memory 404 may include read-only memory and random access memory, and to processor 401 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
Display 405 can be used for showing information input by user or the information etc. for being supplied to user.Display 405 can wrap
Display panel is included, optionally, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used
Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel.Further, the display
405 may also include touch panel, and the touch panel can cover display panel, when touch panel detects on it or nearby
After touch operation, processor 401 is sent to determine the type of touch event, is followed by subsequent processing device 401 according to the class of touch event
Type provides corresponding visual output on a display panel.
In the specific implementation, processor 401 described in the embodiment of the present invention, input equipment 402, output equipment 403, depositing
Reservoir 404 and display 405 can be performed described in the embodiment of the Memory adjustments method of terminal provided in an embodiment of the present invention
Implementation, implementation described in terminal described in embodiment two also can be performed, details are not described herein.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (9)
1. a kind of Memory adjustments method of terminal, which is characterized in that the described method includes:
It detects whether to receive the message comprising specify information;Wherein, the message comprising specify information is to include designated word
The information of symbol, the information comprising specifying Activity or the information comprising specifying process;The specify information includes specified application
Information;
When receiving the message comprising specify information, Memory adjustments interface message is obtained;
It is corresponding virtual interior according to the corresponding specified application of Memory adjustments interface adjustment of the Memory adjustments interface message of acquisition calling
It deposits;
Call the corresponding specified application of Memory adjustments interface adjustment corresponding according to the Memory adjustments interface message of acquisition described
After virtual memory, further includes:
Preset condition reach when, by it is adjusted it is specified using corresponding virtual memory be reduced to adjustment before specified application pair
The virtual memory answered.
2. obtaining the method according to claim 1, wherein described when receiving the message comprising specify information
Memory adjustments interface message is taken, is specifically included:
When receiving the message comprising specify information, Memory adjustments interface message is obtained by preset interface function;
Alternatively,
When receiving the message comprising specify information, Memory adjustments interface message is obtained according to the plug-in unit of user's downloading, it is described
Plug-in unit includes the power function for obtaining Memory adjustments interface message;
Alternatively,
When receiving the message comprising specify information, Memory adjustments interface message is obtained by write device node.
3. the method according to claim 1, wherein described call phase according to the Memory adjustments interface message of acquisition
The Memory adjustments interface adjustment answered is specified to apply corresponding virtual memory, specifically includes:
It is corresponding virtual interior that specified application is turned up according to the corresponding Memory adjustments interface of the Memory adjustments interface message of acquisition calling
It deposits, the specified application is related with the message comprising specify information;
And/or
Corresponding Memory adjustments interface is called to turn down non-designated application according to the Memory adjustments interface message of acquisition corresponding virtual
Memory.
4. according to the method described in claim 3, it is characterized in that, being called described according to the Memory adjustments interface message of acquisition
The corresponding virtual memory of specified application is turned up in corresponding Memory adjustments interface
In the specified application operational process, the free virtual memory of the specified application is counted;
When the free virtual memory of the specified application is less than specified threshold value, the corresponding void of the specified application is turned up again
Quasi- memory.
5. a kind of terminal, which is characterized in that the terminal includes:
Message detection unit, for detecting whether receiving the message comprising specify information;Wherein, described includes specify information
Message is the information for including designated character, the information comprising specifying Activity or the information comprising specifying process;It is described specified
Information includes the information of specified application;
Memory adjustments interface message acquiring unit connects for when receiving the message comprising specify information, obtaining Memory adjustments
Message breath;
Virtual memory adjustment unit, for calling corresponding Memory adjustments interface to adjust according to the Memory adjustments interface message of acquisition
It is specified to apply corresponding virtual memory;
Virtual memory reduction unit adjusted specified will apply corresponding virtual memory also for when preset condition reaches
It originally was the corresponding virtual memory of specified application before adjustment.
6. terminal according to claim 5, which is characterized in that the Memory adjustments interface message acquiring unit includes:
First Memory adjustments interface message obtains module, for when receiving the message comprising specify information, by preset
Interface function obtains Memory adjustments interface message;
Alternatively,
Second Memory adjustments interface message obtains module, for when receiving the message comprising specify information, according under user
The plug-in unit of load obtains Memory adjustments interface message, and the plug-in unit includes the power function for obtaining Memory adjustments interface message;
Alternatively,
Third Memory adjustments interface message obtains module, for passing through write device when receiving the message comprising specify information
Node obtains Memory adjustments interface message by written document node.
7. terminal according to claim 5, which is characterized in that the virtual memory adjustment unit includes:
Module is turned up in virtual memory, for calling corresponding Memory adjustments interface to be turned up according to the Memory adjustments interface message of acquisition
Specified to apply corresponding virtual memory, the specified application is related with the message comprising specify information;
And/or
Virtual memory turns down module, for calling corresponding Memory adjustments interface to turn down according to the Memory adjustments interface message of acquisition
It is non-designated to apply corresponding virtual memory.
8. terminal according to claim 7, which is characterized in that the terminal includes:
Free virtual Memory statistics unit, for counting the free time of the specified application in the specified application operational process
Virtual memory;
Unit is turned up in virtual memory again, when being less than specified threshold value for the free virtual memory in the specified application, then
It is secondary that the corresponding virtual memory of the specified application is turned up.
9. a kind of terminal, which is characterized in that the terminal includes:
Processor and input equipment,
The processor receives the message comprising specify information for detecting whether by the input equipment, is receiving
When message comprising specify information, obtain Memory adjustments interface message, wherein the message comprising specify information be include finger
Determine the information of character, the information comprising specifying Activity or the information comprising specifying process;The specify information includes specified
The information of application;
The processor is also used to be called corresponding Memory adjustments interface adjustment specified according to the Memory adjustments interface message of acquisition
Using corresponding virtual memory;Corresponding Memory adjustments interface is called to adjust according to the Memory adjustments interface message of acquisition described
After the corresponding virtual memory of specified application, further includes: when preset condition reaches, adjusted specified will apply corresponding void
Quasi- memory is reduced to the corresponding virtual memory of specified application before adjustment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610818869.6A CN106484529B (en) | 2016-09-12 | 2016-09-12 | The Memory adjustments method and terminal of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610818869.6A CN106484529B (en) | 2016-09-12 | 2016-09-12 | The Memory adjustments method and terminal of terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106484529A CN106484529A (en) | 2017-03-08 |
CN106484529B true CN106484529B (en) | 2019-05-14 |
Family
ID=58273461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610818869.6A Active CN106484529B (en) | 2016-09-12 | 2016-09-12 | The Memory adjustments method and terminal of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484529B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134454B (en) * | 2018-02-09 | 2022-06-14 | 聚好看科技股份有限公司 | Method and device for starting application program |
CN109669913B (en) * | 2018-12-25 | 2021-03-19 | 杭州达现科技有限公司 | Storage space distribution method and device based on display interface |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521054B (en) * | 2011-12-15 | 2013-07-17 | 中国人民解放军国防科学技术大学 | DMA (direct memory access) resource allocation method for virtual machine under sun4v architecture |
CN103514043B (en) * | 2012-06-29 | 2017-09-29 | 华为技术有限公司 | The data processing method of multicomputer system and the system |
CN103888492A (en) * | 2012-12-20 | 2014-06-25 | 鸿富锦精密工业(深圳)有限公司 | Memory management system and method |
US9361215B2 (en) * | 2013-05-31 | 2016-06-07 | Apple Inc. | Memory allocation improvements |
CN103605613B (en) * | 2013-11-21 | 2016-09-21 | 中标软件有限公司 | Cloud computing environment dynamically adjusts the method and system of virutal machine memory |
CN104750557B (en) * | 2013-12-27 | 2018-07-03 | 华为技术有限公司 | A kind of EMS memory management process and memory management device |
CN104216835B (en) * | 2014-08-25 | 2017-04-05 | 杨立群 | A kind of method and device for realizing internal memory fusion |
-
2016
- 2016-09-12 CN CN201610818869.6A patent/CN106484529B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106484529A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256129A (en) | Switch method, device and its relevant device of application under span mode | |
CN106453840B (en) | The method for adjusting performance and mobile terminal of mobile terminal | |
CN107820331A (en) | Call method, device, computer equipment and readable storage medium storing program for executing | |
CN105739699B (en) | A kind of control method and terminal device of message notifying | |
CN107273036A (en) | Mobile terminal and its split screen control method, computer-readable recording medium | |
CN108965306A (en) | A kind of call handling method and mobile terminal | |
CN106776036A (en) | A kind of resource allocation methods and device | |
CN108112063A (en) | Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing | |
CN106874091A (en) | A kind of application call method, device and mobile terminal | |
CN108762861A (en) | A kind of application interface display methods, terminal and computer readable storage medium | |
CN103294442B (en) | A kind of method of playing alert tones, device and terminal device | |
CN108958626A (en) | Gesture identification method, device, readable storage medium storing program for executing and mobile terminal | |
CN110022401A (en) | A kind of control parameter setting method, terminal and computer readable storage medium | |
CN107223363A (en) | The method and apparatus that a kind of allocation schedule asks SR resources | |
CN106445596A (en) | Method and device for managing setting items | |
CN109144441A (en) | A kind of screen adjustment method, terminal and computer readable storage medium | |
CN110149644A (en) | Terminal communication control method, terminal device and computer readable storage medium | |
CN108052390A (en) | Memory method for cleaning, mobile terminal and readable storage medium storing program for executing based on thread block | |
CN108829444A (en) | A kind of method that background application is automatically closed, terminal and computer storage medium | |
CN106445336A (en) | Fast acquisition method for electronic resource and mobile terminal | |
CN107992342A (en) | A kind of application configuration change method and mobile terminal | |
CN108111676A (en) | A kind of application control method and mobile terminal | |
CN107426439A (en) | Screen starts method, device and mobile terminal | |
CN106648460B (en) | Step counting data filtering method and intelligent terminal | |
CN105721282B (en) | Message display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |