/external/tensorflow/tensorflow/contrib/android/jni/ |
run_stats_jni.cc | 28 StatSummarizer* requireHandle(JNIEnv* env, jlong handle) { 29 if (handle == 0) { 34 return reinterpret_cast<StatSummarizer*>(handle); 49 jlong handle) { 50 if (handle == 0) return; 51 delete reinterpret_cast<StatSummarizer*>(handle); 54 JNIEXPORT void RUN_STATS_METHOD(add)(JNIEnv* env, jclass clazz, jlong handle, 56 StatSummarizer* s = requireHandle(env, handle); 72 jlong handle) { 73 StatSummarizer* s = requireHandle(env, handle); [all...] |
/external/webrtc/webrtc/common_audio/vad/ |
webrtc_vad.c | 34 void WebRtcVad_Free(VadInst* handle) { 35 free(handle); 39 int WebRtcVad_Init(VadInst* handle) { 41 return WebRtcVad_InitCore((VadInstT*) handle); 45 int WebRtcVad_set_mode(VadInst* handle, int mode) { 46 VadInstT* self = (VadInstT*) handle; 48 if (handle == NULL) { 58 int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame, 61 VadInstT* self = (VadInstT*) handle; 63 if (handle == NULL) [all...] |
/external/libdrm/etnaviv/ |
etnaviv_bo.c | 54 if (bo->handle) { 56 .handle = bo->handle, 59 drmHashDelete(bo->dev->handle_table, bo->handle); 66 /* lookup a buffer from it's handle, call w/ table_lock held: */ 67 static struct etna_bo *lookup_bo(void *tbl, uint32_t handle) 71 if (!drmHashLookup(tbl, handle, (void **)&bo)) { 84 uint32_t size, uint32_t handle, uint32_t flags) 90 .handle = handle, 207 uint32_t handle; local [all...] |
/external/tensorflow/tensorflow/core/ops/ |
lookup_ops.cc | 32 ShapeHandle handle; local 35 TF_RETURN_IF_ERROR(c->WithRank(c->input(i), 1, &handle)); 36 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); 45 ShapeHandle handle; local 47 TF_RETURN_IF_ERROR(c->WithRank(c->input(0), 0, &handle)); 49 TF_RETURN_IF_ERROR(c->WithRank(c->input(i), 1, &handle)); 50 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); 77 ShapeHandle handle; 78 TF_RETURN_IF_ERROR(c->WithRank(c->input(0), 1, &handle)); 80 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tlkd/ |
tlkd_main.c | 13 * handle the request locally or delegate it to the Secure Payload. It is also 142 void *handle, 151 assert(handle); 155 SMC_RET1(handle, SMC_UNK); 169 SMC_RET1(handle, SMC_UNK); 171 assert(handle == cm_get_context(SECURE)); 209 SMC_RET1(handle, SMC_UNK); 217 assert(handle == cm_get_context(NON_SECURE)); 226 SMC_RET1(handle, SMC_UNK); 229 SMC_RET1(handle, SMC_UNK) [all...] |
/external/adhd/cras/src/server/ |
cras_alsa_helpers.c | 199 snd_pcm_t *handle, 218 if (snd_pcm_stream(handle) == SND_PCM_STREAM_CAPTURE) 225 int cras_alsa_pcm_open(snd_pcm_t **handle, const char *dev, 233 rc = snd_pcm_open(handle, 248 int cras_alsa_pcm_close(snd_pcm_t *handle) 250 return snd_pcm_close(handle); 253 int cras_alsa_pcm_start(snd_pcm_t *handle) 255 return snd_pcm_start(handle); 258 int cras_alsa_pcm_drain(snd_pcm_t *handle) 260 return snd_pcm_drain(handle); 393 snd_pcm_t *handle; local [all...] |
/external/selinux/libsemanage/src/ |
fcontexts_file.c | 16 #include <semanage/handle.h> 46 static int fcontext_print(semanage_handle_t * handle, 62 if (semanage_context_to_string(handle, con, &con_str) < 0) 75 ERR(handle, "could not print file context for " 81 static int fcontext_parse(semanage_handle_t * handle, 88 if (parse_skip_space(handle, info) < 0) 94 if (parse_fetch_string(handle, info, &str, ' ') < 0) 96 if (semanage_fcontext_set_expr(handle, fcontext, str) < 0) 102 if (parse_assert_space(handle, info) < 0) 104 if (parse_fetch_string(handle, info, &str, ' ') < 0 [all...] |
user_internal.h | 9 #include "handle.h" 43 extern int user_base_file_dbase_init(semanage_handle_t * handle, 51 extern int user_extra_file_dbase_init(semanage_handle_t * handle, 59 extern int user_base_policydb_dbase_init(semanage_handle_t * handle, 65 extern int user_join_dbase_init(semanage_handle_t * handle, 80 hidden int semanage_user_base_create(semanage_handle_t * handle, 83 hidden int semanage_user_base_clone(semanage_handle_t * handle, 87 hidden int semanage_user_base_key_extract(semanage_handle_t * handle, 94 hidden int semanage_user_base_set_name(semanage_handle_t * handle, 101 hidden int semanage_user_base_set_mlslevel(semanage_handle_t * handle, [all...] |
database_llist.h | 7 #include "handle.h" 54 extern int dbase_llist_cache_prepend(semanage_handle_t * handle, 58 extern int dbase_llist_needs_resync(semanage_handle_t * handle, 61 extern int dbase_llist_set_serial(semanage_handle_t * handle, 85 extern int dbase_llist_exists(semanage_handle_t * handle, 89 extern int dbase_llist_add(semanage_handle_t * handle, 93 extern int dbase_llist_set(semanage_handle_t * handle, 97 extern int dbase_llist_modify(semanage_handle_t * handle, 101 extern int dbase_llist_count(semanage_handle_t * handle, 104 extern int dbase_llist_query(semanage_handle_t * handle, [all...] |
parse_utils.c | 9 #include <semanage/handle.h> 13 int parse_init(semanage_handle_t * handle, 20 ERR(handle, 45 int parse_open(semanage_handle_t * handle, parse_info_t * info) 50 ERR(handle, "could not open file %s: %s", 83 int parse_skip_space(semanage_handle_t * handle, parse_info_t * info) 136 ERR(handle, "out of memory, could not allocate buffer"); 141 int parse_assert_noeof(semanage_handle_t * handle, parse_info_t * info) 145 ERR(handle, "unexpected end of file (%s: %u)", 153 int parse_assert_space(semanage_handle_t * handle, parse_info_t * info [all...] |
database_file.c | 19 #include "handle.h" 40 static int dbase_file_cache(semanage_handle_t * handle, dbase_file_t * dbase) 53 if (!dbase_llist_needs_resync(handle, &dbase->llist)) 58 if (dbase_llist_set_serial(handle, &dbase->llist) < 0) 61 fname = dbase->path[handle->is_in_transaction]; 63 if (parse_init(handle, fname, NULL, &parse_info) < 0) 66 if (parse_open(handle, parse_info) < 0) 73 if (rtable->create(handle, &process_record) < 0) 77 pstatus = rftable->parse(handle, parse_info, process_record); 88 if (dbase_llist_cache_prepend(handle, &dbase->llist [all...] |
/system/chre/platform/slpi/ |
platform_audio.cc | 62 dataEvent->handle = event->handle; 78 void handleWcdSpiAudioAvailability(uint32_t handle, bool available) { 79 LOGD("WCD SPI audio handle %" PRIu32 " available: %d", handle, available); 81 .handleAudioAvailability(handle, available); 97 void PlatformAudio::setHandleEnabled(uint32_t handle, bool enabled) { 105 LOGE("Invalid request to change handle enabled state"); 117 bool PlatformAudio::requestAudioDataEvent(uint32_t handle, 121 return wcd_spi_client_request_audio_data_event(handle, numSamples [all...] |
/external/selinux/libsepol/src/ |
context.c | 11 #include "handle.h" 88 int context_to_string(sepol_handle_t * handle, 136 ERR(handle, "out of memory, could not convert " "context to string"); 144 int context_from_record(sepol_handle_t * handle, 163 ERR(handle, "out of memory"); 172 ERR(handle, "user %s is not defined", user); 181 ERR(handle, "role %s is not defined", role); 190 ERR(handle, "type %s is not defined", type); 197 ERR(handle, "MLS is disabled, but MLS context \"%s\" found", 201 ERR(handle, "MLS is enabled, but no MLS context found") [all...] |
context_record.c | 34 int sepol_context_set_user(sepol_handle_t * handle, 40 ERR(handle, "out of memory, could not set " 61 int sepol_context_set_role(sepol_handle_t * handle, 67 ERR(handle, "out of memory, could not set " 87 int sepol_context_set_type(sepol_handle_t * handle, 93 ERR(handle, "out of memory, could not set " 113 int sepol_context_set_mls(sepol_handle_t * handle, 119 ERR(handle, "out of memory, could not set " 131 int sepol_context_create(sepol_handle_t * handle, sepol_context_t ** con_ptr) 138 ERR(handle, "out of memory, could not " "create context\n") [all...] |
/hardware/intel/img/psb_video/src/android/ |
psb_gralloc.cpp | 58 int gralloc_lock(buffer_handle_t handle, 73 err = mGralloc->lock(mGralloc, handle, usage, 83 err = gralloc_lock_async_img(mGralloc, handle, usage, &r, vaddr, -1); 85 ALOGV("gralloc_lock: handle is %p, usage is %x, vaddr is %p.\n", handle, usage, *vaddr); 96 int gralloc_unlock(buffer_handle_t handle) 109 err = mGralloc->unlock(mGralloc, handle); 112 err = gralloc_unlock_async_img(mGralloc, handle, &releaseFence); 128 int gralloc_register(buffer_handle_t handle) 141 err = gralloc_register_img(mGralloc, handle); [all...] |
/system/core/libion/tests/ |
allocate_test.cpp | 35 ion_user_handle_t handle = 0; local 36 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); 37 ASSERT_TRUE(handle != 0); 38 ASSERT_EQ(0, ion_free(m_ionFd, handle)); 50 ion_user_handle_t handle = 0; local 51 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED, &handle)); 52 ASSERT_TRUE(handle != 0); 53 ASSERT_EQ(0, ion_free(m_ionFd, handle)); 65 ion_user_handle_t handle = 0; local 66 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED_NEEDS_SYNC, &handle)); 80 ion_user_handle_t handle = 0; local 140 ion_user_handle_t handle = 0; local [all...] |
/system/core/libziparchive/ |
zip_writer_test.cc | 27 ZipArchiveHandle handle, 61 ZipArchiveHandle handle; local 62 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); 65 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); 70 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); 72 CloseArchive(handle); 93 ZipArchiveHandle handle; local 94 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); 98 ASSERT_EQ(0, FindEntry(handle, ZipString("file.txt"), &data)); 102 ASSERT_TRUE(AssertFileEntryContentsEq("he", handle, &data)) 128 ZipArchiveHandle handle; local 162 ZipArchiveHandle handle; local 190 ZipArchiveHandle handle; local 212 ZipArchiveHandle handle; local 240 ZipArchiveHandle handle; local 272 ZipArchiveHandle handle; local 338 ZipArchiveHandle handle; local [all...] |
/device/google/contexthub/firmware/os/inc/ |
sensors_priv.h | 26 uint32_t handle; /* here 0 means invalid */ member in struct:Sensor 39 uint32_t handle; member in struct:SensorsInternalEvent::__anon1925::__anon1926 53 uint32_t handle; member in struct:SensorsClientRequest 69 #define HANDLE_TO_TID(handle) (((handle) >> (32 - TASK_TID_BITS)) & TASK_TID_MASK) 70 #define EXT_APP_TID(s) HANDLE_TO_TID(s->handle) 74 struct Sensor* sensorFindByHandle(uint32_t handle);
|
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/ |
plat_sip_calls.c | 55 void *handle, 62 SMC_RET1(handle, ddr_smc_handler(x1, x2, x3, x4)); 64 SMC_RET1(handle, dp_hdcp_ctrl(x1)); 66 x5 = read_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X5); 67 x6 = read_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X6); 68 SMC_RET1(handle, dp_hdcp_store_key(x1, x2, x3, x4, x5, x6)); 71 SMC_RET1(handle, SMC_UNK);
|
/device/linaro/bootloader/arm-trusted-firmware/plat/xilinx/zynqmp/pm_service/ |
pm_svc_main.c | 87 uint64_t x4, void *cookie, void *handle, uint64_t flags) 93 /* Handle case where PM wasn't initialized properly */ 95 SMC_RET1(handle, SMC_UNK); 107 SMC_RET1(handle, (uint64_t)ret); 112 SMC_RET1(handle, (uint64_t)ret); 117 SMC_RET1(handle, (uint64_t)ret); 121 SMC_RET1(handle, (uint64_t)ret); 125 SMC_RET1(handle, (uint64_t)ret); 129 SMC_RET1(handle, (uint64_t)ret); 133 SMC_RET1(handle, (uint64_t)ret) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/services/std_svc/ |
std_svc_setup.c | 49 void *handle, 72 cookie, handle, flags); 80 SMC_RET1(handle, ret); 89 SMC_RET1(handle, PSCI_NUM_CALLS); 93 SMC_UUID_RET(handle, arm_svc_uid); 97 SMC_RET2(handle, STD_SVC_VERSION_MAJOR, STD_SVC_VERSION_MINOR); 101 SMC_RET1(handle, SMC_UNK);
|
/external/capstone/arch/Mips/ |
MipsModule.c | 41 static cs_err option(cs_struct *handle, cs_opt_type type, size_t value) 45 handle->disasm = Mips_getInstruction; 47 handle->disasm = Mips64_getInstruction; 49 handle->mode = (cs_mode)value; 50 handle->big_endian = ((handle->mode & CS_MODE_BIG_ENDIAN) != 0); 55 static void destroy(cs_struct *handle)
|
/external/capstone/suite/benchmark/ |
test_iter_benchmark.c | 53 * //handle->printer(&mci, &ss, handle->printer_info); <-----cs.c line 700 58 csh handle; local 66 err = cs_open(CS_ARCH_X86, CS_MODE_32, &handle); 71 cs_option(handle, CS_OPT_SYNTAX, CS_OPT_SYNTAX_INTEL); 72 cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON); 79 insn = cs_malloc(handle); 84 while(cs_disasm_iter(handle, &code, &size, &address, insn)) { 89 cs_close(&handle);
|
/external/libpcap/ |
pcap-usb-linux.c | 251 int usb_mmap(pcap_t* handle) 253 struct pcap_usb_linux *handlep = handle->priv; 254 int len = ioctl(handle->fd, MON_IOCQ_RING_SIZE); 260 MAP_SHARED, handle->fd, 0); 380 usb_activate(pcap_t* handle) 382 struct pcap_usb_linux *handlep = handle->priv; 386 handle->bufsize = handle->snapshot; 387 handle->offset = 0; 388 handle->linktype = DLT_USB_LINUX [all...] |
/external/selinux/libsemanage/include/semanage/ |
fcontext_record.h | 7 #include <semanage/handle.h> 24 extern int semanage_fcontext_key_create(semanage_handle_t * handle, 29 extern int semanage_fcontext_key_extract(semanage_handle_t * handle, 39 extern int semanage_fcontext_set_expr(semanage_handle_t * handle, 64 extern int semanage_fcontext_set_con(semanage_handle_t * handle, 69 extern int semanage_fcontext_create(semanage_handle_t * handle, 72 extern int semanage_fcontext_clone(semanage_handle_t * handle,
|