{"id":14423,"date":"2024-08-22T16:03:48","date_gmt":"2024-08-22T08:03:48","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=14423"},"modified":"2024-08-22T17:06:18","modified_gmt":"2024-08-22T09:06:18","slug":"servicemanagernative-java","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=14423","title":{"rendered":"ServiceManagerNative.java"},"content":{"rendered":"<p>\u6e90\u7801\u4f4d\u7f6e\uff1a<code>frameworks\/base\/core\/java\/android\/os\/ServiceManagerNative.java<\/code><\/p>\n<h1>\u7ee7\u627f\u5173\u7cfb<\/h1>\n<p><code>public abstract class ServiceManagerNative extends Binder implements IServiceManager<\/code><\/p>\n<h1>\u65b9\u6cd5<\/h1>\n<ul>\n<li>asInterface\n<pre><code class=\"language-java\">30     \/**\n31      * Cast a Binder object into a service manager interface, generating\n32      * a proxy if needed.\n33      *\/\n34     @UnsupportedAppUsage\n35     static public IServiceManager asInterface(IBinder obj)\n36     {\n37         if (obj == null) {\n38             return null;\n39         }\n40         IServiceManager in =\n41             (IServiceManager)obj.queryLocalInterface(descriptor);\n42         if (in != null) {\n43             return in;\n44         }\n45 \n46         return new ServiceManagerProxy(obj);\n47     }<\/code><\/pre>\n<\/li>\n<\/ul>\n<button class=\"simplefavorite-button\" data-postid=\"14423\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u6e90\u7801\u4f4d\u7f6e\uff1aframeworks\/base\/core\/java\/android\/os\/ServiceM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1086],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/14423"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14423"}],"version-history":[{"count":2,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/14423\/revisions"}],"predecessor-version":[{"id":14438,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/14423\/revisions\/14438"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}