Android 4.2 dumpsys surfaceflinger Process

Source: Internet
Author: User

class surfaceflinger: Public binderservice ,
Public bnsurfacecomposer,
private ibinder: deathrecipient,
private thread,
private hwcomposer :: eventhandler

Class bnsurfacecomposer: Public bninterface <isurfacecomposer>
Template <typename interface>
Class bninterface: public interface, public bbinder
{
Public:
Virtual sp <iinterface> querylocalinterface (const string16 & _ descriptor );
Virtual const string16 & getinterfacedescriptor () const;

Protected:
Virtual ibinder * onasbinder ();
};

Template <typename service>
Class binderservice
{
Public:
Static status_t publish (bool allowisolated = false ){
Sp <iservicemanager> SM (defaultservicemanager ());
Return Sm-> addservice (string16 (Service: getservicename (), new service (), allowisolated );
}

Static void publishandjointhreadpool (bool allowisolated = false ){
Sp <iservicemanager> SM (defaultservicemanager ());
SM-> addservice (string16 (Service: getservicename (), new service (), allowisolated );
Processstate: Self ()-> startthreadpool ();
Ipcthreadstate: Self ()-> jointhreadpool ();
}

Static void instantiate () {publish ();}

Static status_t Shutdown (){
Return no_error;
}
};

Frameworks/native/libs/binder/ipcthreadstate. cpp

/Alogi ("<transact from PID % d restore PID % d uid % d \ n ",
// Mcallingpid, origpid, origuid );

The message sent from the PID may be obtained during debugging.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.