/external/selinux/libsepol/src/ |
booleans.c | 4 #include "handle.h" 14 static int bool_update(sepol_handle_t * handle, 33 ERR(handle, "boolean %s no longer in policy", name); 37 ERR(handle, "illegal value %d for boolean %s", value, name); 46 ERR(handle, "out of memory"); 50 ERR(handle, "could not update boolean %s", cname); 54 static int bool_to_record(sepol_handle_t * handle, 65 if (sepol_bool_create(handle, &tmp_record) < 0) 68 if (sepol_bool_set_name(handle, tmp_record, name) < 0) 77 ERR(handle, "could not convert boolean %s to record", name) [all...] |
iface_record.c | 27 int sepol_iface_key_create(sepol_handle_t * handle, 35 ERR(handle, "out of memory, could not create interface key"); 41 ERR(handle, "out of memory, could not create interface key"); 60 int sepol_iface_key_extract(sepol_handle_t * handle, 65 if (sepol_iface_key_create(handle, iface->name, key_ptr) < 0) { 66 ERR(handle, "could not extract key from " 97 int sepol_iface_create(sepol_handle_t * handle, sepol_iface_t ** iface) 104 ERR(handle, "out of memory, could not create " 128 int sepol_iface_set_name(sepol_handle_t * handle, 134 ERR(handle, "out of memory, " "could not set interface name") [all...] |
/system/bt/bta/pan/ |
bta_pan_ci.cc | 54 void bta_pan_ci_tx_ready(uint16_t handle) { 57 p_buf->layer_specific = handle; 76 void bta_pan_ci_rx_ready(uint16_t handle) { 79 p_buf->layer_specific = handle; 91 * disable data flow when it is congested and cannot handle 100 void bta_pan_ci_tx_flow(uint16_t handle, bool enable) { 104 p_buf->hdr.layer_specific = handle; 123 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, 140 p_buf->layer_specific = handle; 160 void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst [all...] |
/external/capstone/cstool/ |
cstool.c | 10 void print_insn_detail_arm(csh handle, cs_insn *ins); 11 void print_insn_detail_arm64(csh handle, cs_insn *ins); 12 void print_insn_detail_mips(csh handle, cs_insn *ins); 13 void print_insn_detail_ppc(csh handle, cs_insn *ins); 14 void print_insn_detail_sparc(csh handle, cs_insn *ins); 15 void print_insn_detail_sysz(csh handle, cs_insn *ins); 16 void print_insn_detail_xcore(csh handle, cs_insn *ins); 127 csh handle; local 185 err = cs_open(CS_ARCH_ARM, CS_MODE_ARM, &handle); 190 err = cs_open(CS_ARCH_ARM, CS_MODE_ARM | CS_MODE_BIG_ENDIAN, &handle); [all...] |
/external/tpm2/ |
Entity.c | 16 // This function will indicate if the entity associated with a handle is present in TPM memory. If the handle is 17 // a persistent object handle, and the object exists, the persistent object is moved from NV memory into a 18 // RAM object slot and the persistent handle is replaced with the transient object handle for the slot. 22 // TPM_RC_HANDLE handle type does not match 25 // TPM_RC_OBJECT_MEMORY handle is an evict object but there is no space to load it to RAM 29 TPM_HANDLE *handle, // IN/OUT: handle of the entity 34 switch(HandleGetType(*handle)) [all...] |
/system/core/fastboot/ |
usb_windows.cpp | 56 /// Handle to USB interface 59 /// Handle to USB read pipe (endpoint) 62 /// Handle to USB write pipe (endpoint) 71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} 88 int recognized_device(usb_handle* handle, ifc_match_func callback); 93 /// Cleans up opened usb handle 94 void usb_cleanup_handle(usb_handle* handle); 96 /// Cleans up (but don't close) opened usb handle 97 void usb_kick(usb_handle* handle); 315 std::unique_ptr<usb_handle> handle; local 362 std::unique_ptr<usb_handle> handle = find_usb_device(callback); local [all...] |
/external/selinux/libsemanage/src/ |
database_llist.c | 13 #include "handle.h" 16 int dbase_llist_needs_resync(semanage_handle_t * handle, dbase_llist_t * dbase) 24 cache_serial = handle->funcs->get_serial(handle); 37 int dbase_llist_cache_prepend(semanage_handle_t * handle, 46 if (dbase->rtable->clone(handle, data, &entry->data) < 0) 62 ERR(handle, "out of memory"); 65 ERR(handle, "could not cache record"); 88 int dbase_llist_set_serial(semanage_handle_t * handle, dbase_llist_t * dbase) 91 int cache_serial = handle->funcs->get_serial(handle) [all...] |
user_extra_record.c | 19 #include <semanage/handle.h> 34 static int semanage_user_extra_key_extract(semanage_handle_t * handle, 40 if (semanage_user_key_create(handle, user_extra->name, key_ptr) < 0) 46 ERR(handle, "could not extract key from user extra record"); 86 hidden int semanage_user_extra_set_name(semanage_handle_t * handle, 93 ERR(handle, "out of memory, could not set name %s " 110 hidden int semanage_user_extra_set_prefix(semanage_handle_t * handle, 117 ERR(handle, "out of memory, could not set prefix %s " 127 hidden int semanage_user_extra_create(semanage_handle_t * handle, 135 ERR(handle, "out of memory, could not [all...] |
/system/bt/btif/co/ |
bta_pan_co.cc | 75 void bta_pan_co_open(uint16_t handle, uint8_t app_id, tBTA_PAN_ROLE local_role, 79 "handle:%d", 80 app_id, local_role, peer_role, handle); 83 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); 87 "conn->handle:%d should = handle:%d, local_role:%d, remote_role:%d", 88 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, 93 conn->handle = handle; [all...] |
/external/libese/libese-hw/nxp/pn80t/ |
linux_spidev.c | 33 struct Handle { 63 struct Handle *handle = blob; local 65 return gpio_set(handle->board->gpios[kBoardGpioNfcVen], val); 69 struct Handle *handle = blob; local 71 return gpio_set(handle->board->gpios[kBoardGpioEseRst], val); 75 struct Handle *handle = blob; local 77 return gpio_set(handle->board->gpios[kBoardGpioEseSvddPwrReq], val) 123 struct Handle *handle; local 166 struct Handle *handle = blob; local 180 struct Handle *handle = ns->handle; local 209 struct Handle *handle = ns->handle; local [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
CallerInfoLookupHelper.java | 48 void onCallerInfoQueryComplete(Uri handle, @Nullable CallerInfo info); 49 void onContactPhotoQueryComplete(Uri handle, CallerInfo info); 80 public void startLookup(final Uri handle, OnQueryCompleteListener listener) { 81 if (handle == null) { 82 listener.onCallerInfoQueryComplete(handle, null); 86 final String number = handle.getSchemeSpecificPart(); 88 listener.onCallerInfoQueryComplete(handle, null); 93 if (mQueryEntries.containsKey(handle)) { 94 CallerInfoQueryInfo info = mQueryEntries.get(handle); 96 Log.i(this, "Caller info already exists for handle %s; using cached value" [all...] |
/external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
libmemtrack_wrapper.cc | 41 bool ImportLibmemtrackSymbols(void* handle) { 42 Import(&memtrack_init, handle, "memtrack_init"); 43 Import(&memtrack_proc_new, handle, "memtrack_proc_new"); 44 Import(&memtrack_proc_destroy, handle, "memtrack_proc_destroy"); 45 Import(&memtrack_proc_get, handle, "memtrack_proc_get"); 46 Import(&memtrack_proc_graphics_total, handle, "memtrack_proc_graphics_total"); 47 Import(&memtrack_proc_graphics_pss, handle, "memtrack_proc_graphics_pss"); 48 Import(&memtrack_proc_gl_total, handle, "memtrack_proc_gl_total"); 49 Import(&memtrack_proc_gl_pss, handle, "memtrack_proc_gl_pss"); 50 Import(&memtrack_proc_other_total, handle, "memtrack_proc_other_total") 72 void *handle = dlopen("libmemtrack.so", RTLD_GLOBAL | RTLD_NOW); local [all...] |
/external/libmojo/mojo/edk/test/ |
multiprocess_test_helper_unittest.cc | 27 bool IsNonBlocking(const PlatformHandle& handle) { 29 // Haven't figured out a way to query whether a HANDLE was created with 33 return fcntl(handle.handle, F_GETFL) & O_NONBLOCK; 37 bool WriteByte(const PlatformHandle& handle, char c) { 39 BlockingWrite(handle, &c, 1, &bytes_written); 43 bool ReadByte(const PlatformHandle& handle, char* c) { 45 BlockingRead(handle, c, 1, &bytes_read); 76 // Take ownership of the handle. 77 ScopedPlatformHandle handle = std::move(helper.server_platform_handle) local 99 ScopedPlatformHandle handle = local [all...] |
/frameworks/av/media/mtp/ |
MtpDevice.h | 104 MtpObjectInfo* getObjectInfo(MtpObjectHandle handle); 105 void* getThumbnail(MtpObjectHandle handle, int& outLength); 107 bool sendObject(MtpObjectHandle handle, int size, int srcFD); 108 bool deleteObject(MtpObjectHandle handle); 109 MtpObjectHandle getParent(MtpObjectHandle handle); 110 MtpStorageID getStorageID(MtpObjectHandle handle); 117 // Reads value of |property| for |handle|. Returns true on success. 118 bool getObjectPropValue(MtpObjectHandle handle, MtpProperty* property); 120 bool readObject(MtpObjectHandle handle, ReadObjectCallback callback, 122 bool readObject(MtpObjectHandle handle, const char* destPath, int group [all...] |
/device/linaro/bootloader/arm-trusted-firmware/plat/mediatek/common/ |
mtk_sip_svc.c | 28 void *handle, 32 SMC_RET1(handle, SMC_UNK); 43 void *handle, 66 SMC_RET1(handle, ret); 72 SMC_RET0(handle); 78 cookie, handle, flags); 91 void *handle, 97 SMC_RET1(handle, 102 SMC_UUID_RET(handle, mtk_sip_svc_uid); 106 SMC_RET2(handle, MTK_SIP_SVC_VERSION_MAJOR [all...] |
/external/curl/tests/libtest/ |
lib576.c | 102 CURL *handle = NULL; local 106 handle = curl_easy_init(); 107 if(!handle) { 112 test_setopt(handle, CURLOPT_URL, URL); 113 test_setopt(handle, CURLOPT_WILDCARDMATCH, 1L); 114 test_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, chunk_bgn); 115 test_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, chunk_end); 116 test_setopt(handle, CURLOPT_CHUNK_DATA, &chunk_data); 118 res = curl_easy_perform(handle); 121 if(handle) [all...] |
/external/deqp/framework/delibs/dethread/win32/ |
deMutexWin32.c | 88 DE_STATIC_ASSERT(sizeof(deMutex) >= sizeof(HANDLE)); 92 HANDLE handle = DE_NULL; local 97 handle = CreateMutex(DE_NULL, FALSE, DE_NULL); 98 return (deMutex)handle; 103 HANDLE handle = (HANDLE)mutex; local 104 CloseHandle(handle); 109 HANDLE handle = (HANDLE)mutex local 116 HANDLE handle = (HANDLE)mutex; local 123 HANDLE handle = (HANDLE)mutex; local [all...] |
/external/parameter-framework/upstream/bindings/c/ |
ParameterFramework.cpp | 162 void pfwDestroy(PfwHandler *handle) 164 delete handle->pfw; 165 delete handle; 224 bool pfwStart(PfwHandler *handle, const char *configPath, const PfwCriterion criteria[], 228 Status &status = handle->lastStatus; 230 if (handle->pfw != NULL) { 234 handle->pfw = new CParameterMgrPlatformConnector(configPath); 236 handle->setLogger(logger); 238 if (not handle->createCriteria(criteria, criterionNb)) { 242 return status.forward(handle->pfw->start(status.msg())) [all...] |
/external/swiftshader/src/OpenGL/libGLES_CM/ |
ResourceManager.cpp | 110 Buffer *ResourceManager::getBuffer(unsigned int handle) 112 return mBufferNameSpace.find(handle); 115 Texture *ResourceManager::getTexture(unsigned int handle) 117 return mTextureNameSpace.find(handle); 120 Renderbuffer *ResourceManager::getRenderbuffer(unsigned int handle) 122 return mRenderbufferNameSpace.find(handle); 162 void ResourceManager::checkRenderbufferAllocation(GLuint handle) 164 if(handle != 0 && !getRenderbuffer(handle)) 166 Renderbuffer *renderbufferObject = new Renderbuffer(handle, new Colorbuffer(0, 0, GL_RGBA4_OES, 0)) [all...] |
/system/chre/core/include/chre/core/ |
audio_request_manager.h | 52 * @param handle The audio source to query for. 54 * handle, if found. 57 bool getAudioSource(uint32_t handle, struct chreAudioSource *audioSource) { 58 return mPlatformAudio.getAudioSource(handle, audioSource); 66 * @param handle The audio source handle for which this request is directed 76 bool configureSource(const Nanoapp *nanoapp, uint32_t handle, bool enable, 93 * @param handle The handle for which audio data availability has changed. 97 void handleAudioAvailability(uint32_t handle, bool available) [all...] |
/external/libpcap/ |
pcap-linux.c | 394 static void destroy_ring(pcap_t *handle); 395 static int create_ring(pcap_t *handle, int *status); 396 static int prepare_tpacket_socket(pcap_t *handle); 432 static int enter_rfmon_mode(pcap_t *handle, int sock_fd, 436 static int iface_ethtool_get_ts_info(const char *device, pcap_t *handle, 440 static int iface_get_offload(pcap_t *handle); 445 static int fix_program(pcap_t *handle, struct sock_fprog *fcode, 448 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode); 449 static int reset_kernel_filter(pcap_t *handle); 460 pcap_t *handle; local 4434 pcap_t *handle = sp->pd; local [all...] |
/external/adhd/cras/src/server/ |
cras_telephony.c | 94 struct hfp_slc_handle *handle; local 102 handle = cras_hfp_ag_get_active_handle(); 106 if (handle) { 107 hfp_event_update_callsetup(handle); 108 hfp_event_incoming_call(handle, number, 129); 156 struct hfp_slc_handle *handle; local 164 handle = cras_hfp_ag_get_active_handle(); 165 if (handle) 166 hfp_event_set_battery(handle, value); 176 struct hfp_slc_handle *handle; local 196 struct hfp_slc_handle *handle; local 216 struct hfp_slc_handle *handle; local 350 struct hfp_slc_handle *handle; local 382 struct hfp_slc_handle *handle; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_handle_table.c | 30 * Generic handle table implementation. 51 /** Number of objects the handle can currently hold */ 156 unsigned handle; local 163 /* linear search for an empty handle */ 171 handle = index + 1; 174 if(!handle) 185 return handle; 191 unsigned handle, 197 assert(handle); 198 if(!handle || !ht [all...] |
/external/python/cpython2/Modules/_ctypes/darwin/ |
dlfcn_simple.c | 54 extern void * dlsym(void * handle, const char *symbol) __attribute__((weak_import)); 56 extern int dlclose(void * handle) __attribute__((weak_import)); 69 void * (*ctypes_dlsym)(void * handle, const char *symbol); 71 int (*ctypes_dlclose)(void * handle); 77 static void *dlsymIntern(void *handle, const char *symbol); 148 static void *dlsymIntern(void *handle, const char *symbol) 151 /* If the handle is -1, if is the app global context */ 152 if (handle == (void *)-1) 161 /* Now see if the handle is a struch mach_header* or not, use NSLookupSymbol in image 166 if ((((struct mach_header *)handle)->magic == MH_MAGIC) | [all...] |
/external/python/cpython3/Modules/_ctypes/darwin/ |
dlfcn_simple.c | 54 extern void * dlsym(void * handle, const char *symbol) __attribute__((weak_import)); 56 extern int dlclose(void * handle) __attribute__((weak_import)); 69 void * (*ctypes_dlsym)(void * handle, const char *symbol); 71 int (*ctypes_dlclose)(void * handle); 77 static void *dlsymIntern(void *handle, const char *symbol); 148 static void *dlsymIntern(void *handle, const char *symbol) 151 /* If the handle is -1, if is the app global context */ 152 if (handle == (void *)-1) 161 /* Now see if the handle is a struch mach_header* or not, use NSLookupSymbol in image 166 if ((((struct mach_header *)handle)->magic == MH_MAGIC) | [all...] |