SupportMisc.h File Reference

#include <support/SupportDefs.h>
#include <support/IBinder.h>
#include <support/IMemory.h>
#include <support/KeyedVector.h>
#include <support/Locker.h>
#include <support/StaticValue.h>
#include <support_p/ValueMapFormat.h>
#include <stdlib.h>
#include <string.h>
#include <Kernel.h>
#include <SysThreadConcealed.h>

Go to the source code of this file.

Classes

struct  area_translation_info
struct  parcel_pool_cleanup

Defines

#define DECLARE_RETURN(x)

Typedefs

typedef void(* binder_cleanup_func )()

Enumerations

enum  {
  kPackedSmallAtomType = B_PACK_SMALL_TYPE(B_ATOM_TYPE, sizeof(void*)), kPackedSmallAtomWeakType = B_PACK_SMALL_TYPE(B_ATOM_WEAK_TYPE, sizeof(void*)), kPackedSmallBinderType = B_PACK_SMALL_TYPE(B_BINDER_TYPE, sizeof(void*)), kPackedSmallBinderWeakType = B_PACK_SMALL_TYPE(B_BINDER_WEAK_TYPE, sizeof(void*)),
  kPackedSmallBinderHandleType = B_PACK_SMALL_TYPE(B_BINDER_HANDLE_TYPE, sizeof(void*)), kPackedSmallBinderWeakHandleType = B_PACK_SMALL_TYPE(B_BINDER_WEAK_HANDLE_TYPE, sizeof(void*))
}

Functions

void __initialize_looper (void)
void __stop_looper (void)
void __terminate_looper (void)
void __terminate_shared_buffer (void)
void acquire_object (const flat_binder_object &obj, const void *who)
void acquire_object (const small_flat_data &obj, const void *who)
void add_binder_cleanup_func (binder_cleanup_func func)
void call_binder_cleanup_funcs ()
void dbg_init_gehnaphore (volatile int32_t *value)
void dbg_lock_gehnaphore (volatile int32_t *value)
void dbg_unlock_gehnaphore (volatile int32_t *value)
void disable_thread_syslog ()
void enable_thread_syslog ()
void flatten_binder (const wptr< IBinder > &binder, flat_binder_object *out)
void flatten_binder (const sptr< IBinder > &binder, flat_binder_object *out)
void flatten_binder (const wptr< IBinder > &binder, small_flat_data *out)
void flatten_binder (const sptr< IBinder > &binder, small_flat_data *out)
void release_object (const flat_binder_object &obj, const void *who)
void release_object (const small_flat_data &obj, const void *who)
void rem_binder_cleanup_func (binder_cleanup_func func)
void rename_object (const small_flat_data &, const void *, const void *)
status_t unflatten_binder (const flat_binder_object &flat, wptr< IBinder > *out)
status_t unflatten_binder (const flat_binder_object &flat, sptr< IBinder > *out)
status_t unflatten_binder (const small_flat_data &flat, wptr< IBinder > *out)
status_t unflatten_binder (const small_flat_data &flat, sptr< IBinder > *out)

Variables

parcel_pool_cleanup g_parcel_pool_cleanup
SLocker g_parcel_pool_lock
int32_t g_syslogTLS
sysThreadDirectFuncs g_threadDirectFuncs
SKeyedVector< sptr< IBinder >,
area_translation_info
gAreaTranslationCache
SLocker gAreaTranslationLock


Define Documentation

#define DECLARE_RETURN  ) 
 


Typedef Documentation

typedef void(* binder_cleanup_func)()
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
kPackedSmallAtomType 
kPackedSmallAtomWeakType 
kPackedSmallBinderType 
kPackedSmallBinderWeakType 
kPackedSmallBinderHandleType 
kPackedSmallBinderWeakHandleType 


Function Documentation

void __initialize_looper void   ) 
 

void __stop_looper void   ) 
 

void __terminate_looper void   ) 
 

void __terminate_shared_buffer void   ) 
 

void acquire_object const flat_binder_object obj,
const void *  who
 

void acquire_object const small_flat_data obj,
const void *  who
 

void add_binder_cleanup_func binder_cleanup_func  func  ) 
 

void call_binder_cleanup_funcs  ) 
 

void dbg_init_gehnaphore volatile int32_t *  value  ) 
 

void dbg_lock_gehnaphore volatile int32_t *  value  ) 
 

void dbg_unlock_gehnaphore volatile int32_t *  value  ) 
 

void disable_thread_syslog  ) 
 

void enable_thread_syslog  ) 
 

void flatten_binder const wptr< IBinder > &  binder,
flat_binder_object out
 

void flatten_binder const sptr< IBinder > &  binder,
flat_binder_object out
 

void flatten_binder const wptr< IBinder > &  binder,
small_flat_data out
 

void flatten_binder const sptr< IBinder > &  binder,
small_flat_data out
 

void release_object const flat_binder_object obj,
const void *  who
 

void release_object const small_flat_data obj,
const void *  who
 

void rem_binder_cleanup_func binder_cleanup_func  func  ) 
 

void rename_object const small_flat_data ,
const void *  ,
const void * 
[inline]
 

status_t unflatten_binder const flat_binder_object flat,
wptr< IBinder > *  out
 

status_t unflatten_binder const flat_binder_object flat,
sptr< IBinder > *  out
 

status_t unflatten_binder const small_flat_data flat,
wptr< IBinder > *  out
 

status_t unflatten_binder const small_flat_data flat,
sptr< IBinder > *  out
 


Variable Documentation

parcel_pool_cleanup g_parcel_pool_cleanup
 

SLocker g_parcel_pool_lock
 

int32_t g_syslogTLS
 

sysThreadDirectFuncs g_threadDirectFuncs
 

SKeyedVector<sptr<IBinder>, area_translation_info> gAreaTranslationCache
 

SLocker gAreaTranslationLock