Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for managing and controlling camera resources of Android system

A resource management and camera technology, applied in the field of Android smart TVs, can solve problems such as blocked user behavior, affecting user product experience, and inability to use cameras

Inactive Publication Date: 2021-02-12
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the process score of the foreground application is higher than that of the background service process, because the camera usage priority of the foreground application is lower than that of the background service, the foreground application cannot use the camera at this time, causing user behavior to be blocked and affecting user product experience
[0005] From this point of view, there is a situation in the existing camera control mechanism that the foreground application cannot obtain the camera resources of the background service

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for managing and controlling camera resources of Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0019] Such as figure 1 As shown, the present invention provides a method for managing and controlling camera resources in an Android system, comprising the following steps:.

[0020] (1) Start application A in the foreground and connect to the camera;

[0021] (2) Execute the camera resource control function wouldEvictLocked();

[0022] (3) Determine whether the camera is being used by other application B; if not, the foreground application has successfully obtained the camera resource, and the control process ends here; if so, proceed to the next step;

[0023] (4) Obtain the process scores of the foreground application and other application B separately. If the process score of the foreground application A is lower than that of other application B, the system will automatically disconnect the other application B from the camera, release the camera, and the foreground application A has obtained the camera. Resources, the management and control process ends here; if the pro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for managing and controlling camera resources of an Android system, which comprises the following steps of: acquiring a process state of a camera application through application process information in a system service, and adding judgment of the process state of the camera application on the basis that the camera use priority of a foreground application is lower than that of background service; whether the camera application is a foreground process or not is distinguished, controlling camera resources, so that the foreground application can seize the camera resources of background service.

Description

technical field [0001] The invention relates to the field of Android smart TVs, in particular to a method for managing and controlling camera resources in an Android system. Background technique [0002] At present, the management and control of camera resources in the Android system is mainly carried out in the system service (CameraService), and the process is as follows: [0003] When application A is using the camera, application B applies to use the camera, firstly executes the open action to obtain the camera object, and then enters the system service (CameraService) to connect (Connect) the camera, and the system service (CameraService) starts at the same time The management and control mechanism of camera resources is to determine which application uses camera resources by comparing the process score (curAdj) of application A that is using the camera and application B that applies to use the camera. The lower the process score (curAdj), the better the application Th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50H04N5/232
CPCG06F9/5011G06F9/5022H04N23/661
Inventor 张新
Owner SICHUAN CHANGHONG ELECTRIC CO LTD