Lines Matching defs:global_handle
87 int global_handle = next_global_handle++;
91 full_to_global[full_handle] = global_handle;
92 global_to_full[global_handle] = full_handle;
93 return global_handle;
97 static int get_local_handle(int global_handle) {
98 if (global_to_full.count(global_handle) == 0) {
99 ALOGW("Unknown global_handle %d", global_handle);
102 return global_to_full[global_handle].localHandle;
106 // global_handle, or -1 if that global_handle does not exist.
107 static int get_module_index(int global_handle) {
108 if (global_to_full.count(global_handle) == 0) {
109 ALOGW("Unknown global_handle %d", global_handle);
112 FullHandle f = global_to_full[global_handle];
113 ALOGV("FullHandle for global_handle %d: moduleIndex %d, localHandle %d",
114 global_handle, f.moduleIndex, f.localHandle);
120 int global_handle = -1;
122 global_handle = full_to_global[*full_handle];
127 return global_handle;
203 sensors_poll_device_t* get_v0_device_by_handle(int global_handle);
204 sensors_poll_device_1_t* get_v1_device_by_handle(int global_handle);
205 int get_device_version_by_handle(int global_handle);
227 sensors_poll_device_t* sensors_poll_context_t::get_v0_device_by_handle(int global_handle) {
228 int sub_index = get_module_index(global_handle);
236 sensors_poll_device_1_t* sensors_poll_context_t::get_v1_device_by_handle(int global_handle) {
237 int sub_index = get_module_index(global_handle);
596 int global_handle = assign_global_handle(module_index, local_handle);
598 mutable_sensor_list[mutable_sensor_index].handle = global_handle;
599 ALOGV("module_index %d, local_handle %d, global_handle %d",
600 module_index, local_handle, global_handle);