/device/google/contexthub/firmware/os/core/ |
D | osApi.c | 36 static void osExpApiEvtqSubscribe(uintptr_t *retValP, va_list args) in osExpApiEvtqSubscribe() argument 38 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqSubscribe() 39 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqSubscribe() 44 static void osExpApiEvtqUnsubscribe(uintptr_t *retValP, va_list args) in osExpApiEvtqUnsubscribe() argument 46 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqUnsubscribe() 47 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqUnsubscribe() 52 static void osExpApiEvtqEnqueue(uintptr_t *retValP, va_list args) in osExpApiEvtqEnqueue() argument 54 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueue() 55 void *evtData = va_arg(args, void*); in osExpApiEvtqEnqueue() 56 uint32_t tid = va_arg(args, uint32_t); in osExpApiEvtqEnqueue() [all …]
|
D | nanohub_chre.c | 62 static void osChreApiGetAppId(uintptr_t *retValP, va_list args) in osChreApiGetAppId() argument 64 uint64_t *appId = va_arg(args, uint64_t *); in osChreApiGetAppId() 69 static void osChreApiGetInstanceId(uintptr_t *retValP, va_list args) in osChreApiGetInstanceId() argument 74 static void osChreApiLogLogv(uintptr_t *retValP, va_list args) in osChreApiLogLogv() argument 77 enum chreLogLevel level = va_arg(args, int /* enums promoted to ints in va_args in C */); in osChreApiLogLogv() 80 const char *str = va_arg(args, const char*); in osChreApiLogLogv() 81 uintptr_t inner = va_arg(args, uintptr_t); in osChreApiLogLogv() 88 static void osChreApiLogLogvOld(uintptr_t *retValP, va_list args) in osChreApiLogLogvOld() argument 91 enum chreLogLevel level = va_arg(args, int /* enums promoted to ints in va_args in C */); in osChreApiLogLogvOld() 94 const char *str = va_arg(args, const char*); in osChreApiLogLogvOld() [all …]
|
/device/google/contexthub/util/nanotool/ |
D | nanotool.cpp | 162 static bool ValidateArgs(std::unique_ptr<ParsedArgs>& args, const char *name) { in ValidateArgs() argument 163 if (!args->sensors.size() in ValidateArgs() 164 && (args->command == NanotoolCommand::Disable in ValidateArgs() 165 || args->command == NanotoolCommand::Calibrate in ValidateArgs() 166 || args->command == NanotoolCommand::Test in ValidateArgs() 167 || args->command == NanotoolCommand::Poll)) { in ValidateArgs() 174 if (args->command == NanotoolCommand::Flash in ValidateArgs() 175 && args->filename.empty()) { in ValidateArgs() 182 if (args->command == NanotoolCommand::Poll) { in ValidateArgs() 183 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs() [all …]
|
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/settings/ |
D | ResponseFragment.java | 52 public static void prepareArgs(Bundle args, String key, int titleResId, int summaryResId, in prepareArgs() argument 54 args.putString(ARG_KEY, key); in prepareArgs() 55 args.putInt(ARG_TITLE, titleResId); in prepareArgs() 56 args.putInt(ARG_SUMMARY, summaryResId); in prepareArgs() 57 args.putInt(ARG_ICON, iconResId); in prepareArgs() 58 args.putIntArray(ARG_CHOICES, choices); in prepareArgs() 59 args.putString(ARG_NAME, name); in prepareArgs() 60 args.putInt(ARG_DEFAULT_CHOICE, defaultChoice); in prepareArgs() 64 Bundle args = getArguments(); in getChoices() local 67 int[] tmp = args.getIntArray(ARG_CHOICES); in getChoices() [all …]
|
/device/google/cuttlefish/tools/ |
D | upload_to_gce_and_run.py | 26 def gcloud_ssh(args): argument 27 command = 'gcloud compute ssh %s@%s ' % (args.user, args.instance) 28 if args.zone: 29 command += '--zone=%s ' % args.zone 33 def upload_artifacts(args): argument 36 os.chdir(args.image_dir) 42 raise OSError('No images found in: %s' + args.image_dir) 46 gcloud_ssh(args) + '-- tar -x -f - --lzop -S', 51 host_package = os.path.join(args.host_dir, 'cvd-host_package.tar.gz') 53 gcloud_ssh(args) + '-- tar -x -z -f - < %s' % host_package, [all …]
|
D | upload_via_ssh.py | 26 def upload_artifacts(args): argument 29 os.chdir(args.image_dir) 32 raise OSError('File not found: ' + args.image_dir + '/*.img') 36 args.user, 37 args.ip), 42 host_package = os.path.join(args.host_dir, 'cvd-host_package.tar.gz') 46 args.user, 47 args.ip, 52 def launch_cvd(args): argument 55 args.user, [all …]
|
D | tombstone_to_line.py | 44 def lookup_addr(args, object_path, address): argument 48 params = [args.addr2line, '-e', 49 os.path.join(args.symbols, object_path), address] 81 def process(in_file, out_file, args): argument 91 info = lookup_addr(args, groups.group(p[2]), groups.group(p[3])) 95 if args.source: 101 def process_file(path, args): argument 102 with open(path + args.suffix, 'w') as out_file: 104 process(in_file, out_file, args) 127 def process_all(args): argument [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | AVDVirglRenderer.cpp | 153 res->args.handle, res->args.width, res->args.height, res->args.format, in dump_global_state() 155 res->args.target, res->args.bind, res->args.depth, res->args.array_size, in dump_global_state() 156 res->args.last_level, res->args.nr_samples, res->args.flags); in dump_global_state() 175 printf(" Resource %u\n", res->args.handle); in dump_global_state() 182 switch (res->args.format) { in sync_linear_to_iovec() 194 if (box->x > res->args.width || box->y > res->args.height) in sync_linear_to_iovec() 198 uint32_t w = std::min(box->w, res->args.width - box->x); in sync_linear_to_iovec() 199 uint32_t h = std::min(box->h, res->args.height - box->y); in sync_linear_to_iovec() 200 uint32_t stride = ALIGN(res->args.width * bpp, 16U); in sync_linear_to_iovec() 226 switch (res->args.format) { in sync_iovec_to_linear() [all …]
|
D | gen_entries.py | 307 args = parser.parse_args() variable 309 if not args.mode: 313 if args.output: 314 sys.stdout = open(args.output, "w+") 316 if args.file == '--': 317 parse_file("<stdin>", sys.stdin, args.mode) 319 parse_file(args.file, open(args.file), args.mode)
|
/device/google/cuttlefish/host/commands/display/ |
D | main.cpp | 65 const std::vector<std::string>& args) { in RunCrosvmDisplayCommand() argument 78 for (const std::string& arg : args) { in RunCrosvmDisplayCommand() 99 Result<int> GetInstanceNum(std::vector<std::string>& args) { in GetInstanceNum() argument 102 ConsumeFlags({GflagsCompatFlag("instance_num", instance_num)}, args)); in GetInstanceNum() 106 Result<int> DoHelp(std::vector<std::string>& args) { in DoHelp() argument 115 const std::string& subcommand_str = args[0]; in DoHelp() 127 Result<int> DoAdd(std::vector<std::string>& args) { in DoAdd() argument 128 const int instance_num = CF_EXPECT(GetInstanceNum(args)); in DoAdd() 130 const auto display_configs = CF_EXPECT(ParseDisplayConfigsFromArgs(args)); in DoAdd() 162 Result<int> DoList(std::vector<std::string>& args) { in DoList() argument [all …]
|
/device/google/trout/tools/tracing/tooling/ |
D | tracing_agent.py | 152 def __init__(self, args): argument 153 self.verbose = args.verbose 154 self.ip = args.host_ip 156 self.username = args.host_username 157 self.out_dir = args.out_dir 158 self.duration = args.duration 159 … self.tracing_kev_file_path = os.path.join(args.out_dir, f'{args.host_tracing_file_name}.kev') 160 …self.tracing_printer_file_path = os.path.join(args.out_dir, f'{args.host_tracing_file_name}.printe… 228 def __init__(self, args): argument 229 self.verbose = args.verbose [all …]
|
D | prepare_tracing.py | 84 args = parse_arguments() 86 clock_file_path = os.path.join(args.tracing_tool_dir, "time_utility", "ClocktimeMain.cpp") 87 prepare_qnx(args.tracing_tool_dir, args.qnx_dev_dir, args.host_ip, clock_file_path) 89 if args.aaos_time_util: 90 prepare_android(args.guest_serial, args.aaos_time_util)
|
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/ |
D | MultiDisplayService.java | 177 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 178 if (args == null || args.length == 0) { in dump() 181 runCmd(writer, args); in dump() 216 private void runCmd(PrintWriter writer, String[] args) { in runCmd() argument 217 String cmd = args[0]; in runCmd() 221 runCmdAdd(writer, args); in runCmd() 224 runCmdDel(writer, args); in runCmd() 266 private void runCmdAdd(PrintWriter writer, String[] args) { in runCmdAdd() argument 267 if (!hasExactlyArgs(writer, args, 6)) return; in runCmdAdd() 269 int displayId = getIntArg(writer, args, 1); in runCmdAdd() [all …]
|
/device/google/cuttlefish/host/libs/control_env/ |
D | grpc_service_handler.cc | 183 const std::vector<std::string>& args) { in HandleLsCmd() argument 184 switch (args.size()) { in HandleLsCmd() 209 const auto& service_name = args[0]; in HandleLsCmd() 230 const auto& service_name = args[0]; in HandleLsCmd() 235 const auto& method_name = args[1]; in HandleLsCmd() 263 const std::vector<std::string>& args) { in HandleTypeCmd() argument 264 CF_EXPECT(args.size() > 1, in HandleTypeCmd() 266 CF_EXPECT(args.size() < 3, "too many arguments"); in HandleTypeCmd() 269 const auto& service_name = args[0]; in HandleTypeCmd() 272 const auto& type_name = args[1]; in HandleTypeCmd() [all …]
|
/device/generic/car/emulator/audio/halservice/ |
D | AudioControl.cpp | 158 binder_status_t AudioControl::dump(int fd, const char** args, uint32_t numArgs) { in dump() argument 163 string option = string(args[0]); in dump() 167 return cmdRequestFocus(fd, args, numArgs); in dump() 169 return cmdAbandonFocus(fd, args, numArgs); in dump() 201 binder_status_t AudioControl::cmdRequestFocus(int fd, const char** args, uint32_t numArgs) { in cmdRequestFocus() argument 212 string usage = string(args[1]); in cmdRequestFocus() 222 if (!safelyParseInt(string(args[2]), &zoneId)) { in cmdRequestFocus() 223 dprintf(fd, "Non-integer zoneId provided with request: %s\n", string(args[2]).c_str()); in cmdRequestFocus() 228 if (!safelyParseInt(string(args[3]), &focusGainValue)) { in cmdRequestFocus() 229 dprintf(fd, "Non-integer focusGain provided with request: %s\n", string(args[3]).c_str()); in cmdRequestFocus() [all …]
|
/device/google/cuttlefish/common/libs/utils/ |
D | flag_parser.cpp | 328 std::vector<std::string> args; in ArgsToVec() local 329 args.reserve(argc); in ArgsToVec() 331 args.push_back(argv[i]); in ArgsToVec() 333 return args; in ArgsToVec() 340 static Separated SeparateByEndOfOptionMark(std::vector<std::string> args) { in SeparateByEndOfOptionMark() argument 344 auto itr = std::find(args.begin(), args.end(), "--"); in SeparateByEndOfOptionMark() 345 bool has_mark = (itr != args.end()); in SeparateByEndOfOptionMark() 347 args_before_mark = std::move(args); in SeparateByEndOfOptionMark() 349 args_before_mark.insert(args_before_mark.end(), args.begin(), itr); in SeparateByEndOfOptionMark() 350 args_after_mark.insert(args_after_mark.end(), itr + 1, args.end()); in SeparateByEndOfOptionMark() [all …]
|
/device/google/cuttlefish/common/libs/confui/ |
D | packet.h | 66 void AppendToBuffer(Buffer& buffer, Args&&... args) { in AppendToBuffer() argument 67 (buffer.insert(buffer.end(), std::begin(std::forward<Args>(args)), in AppendToBuffer() 68 std::end(std::forward<Args>(args))), in AppendToBuffer() 73 std::vector<int> MakeSizeHeader(Args&&... args) { in MakeSizeHeader() argument 75 (lengths.push_back(std::distance(std::begin(args), std::end(args))), ...); in MakeSizeHeader() 83 Args&&... args) { in ToPayload() 90 impl::MakeSizeHeader(std::forward<Args>(args)...); in ToPayload() 96 impl::AppendToBuffer(payload_buffer, std::forward<Args>(args)...); in ToPayload() 111 const std::string& session_id, Args&&... args) { in WritePayload() 119 impl::ToPayload(cmd_str, session_id, std::forward<Args>(args)...); in WritePayload()
|
/device/google/contexthub/util/ |
D | nanoapp_prepare.sh | 35 args=( $@ ) 41 if [[ ${args[0]} = "-e" ]] 47 encr_key_num=${args[1]} 48 encr_key_file=${args[2]} 49 args=("${args[@]:3}") 63 if [[ ${args[0]} = "-s" ]] 69 priv1=${args[1]} 70 pub1=${args[2]}
|
/device/linaro/hikey/gralloc/ |
D | alloc_device.h | 22 #define AWAR(fmt, args...) __android_log_print(ANDROID_LOG_WARN, "[Gralloc-Warning]", "%s:%d " fmt,… argument 25 #define AINF(fmt, args...) __android_log_print(ANDROID_LOG_INFO, "[Gralloc]", fmt,##args) argument 28 #define AERR(fmt, args...) __android_log_print(ANDROID_LOG_ERROR, "[Gralloc-ERROR]", "%s:%d " fmt,_… argument 31 #define AERR_IF( eq, fmt, args...) if ( (eq) ) AERR( fmt, args ) argument
|
/device/amlogic/yukawa/hal/gralloc/ |
D | gralloc_helper.h | 26 #define AWAR(fmt, args...) \ argument 27 …_android_log_print(ANDROID_LOG_WARN, "[Gralloc-Warning]", "%s:%d " fmt, __func__, __LINE__, ##args) 30 #define AINF(fmt, args...) __android_log_print(ANDROID_LOG_INFO, "[Gralloc]", fmt, ##args) argument 33 #define AERR(fmt, args...) \ argument 34 __android_log_print(ANDROID_LOG_ERROR, "[Gralloc-ERROR]", "%s:%d " fmt, __func__, __LINE__, ##args) 37 #define AERR_IF(eq, fmt, args...) \ argument 39 AERR(fmt, args)
|
/device/linaro/hikey/gralloc960/ |
D | gralloc_helper.h | 26 #define AWAR(fmt, args...) \ argument 27 …_android_log_print(ANDROID_LOG_WARN, "[Gralloc-Warning]", "%s:%d " fmt, __func__, __LINE__, ##args) 30 #define AINF(fmt, args...) __android_log_print(ANDROID_LOG_INFO, "[Gralloc]", fmt, ##args) argument 33 #define AERR(fmt, args...) \ argument 34 __android_log_print(ANDROID_LOG_ERROR, "[Gralloc-ERROR]", "%s:%d " fmt, __func__, __LINE__, ##args) 37 #define AERR_IF(eq, fmt, args...) \ argument 39 AERR(fmt, args)
|
/device/google/cuttlefish/host/frontend/webrtc/html_client/js/ |
D | rootcanal.js | 19 function rootCanalCalculateMessageSize(name, args) { argument 25 for (let i = 0; i < args.length; i++) { 27 result += args[i].length; // data of args[i] 53 function createRootcanalMessage(command, args) { argument 54 let messageSize = rootCanalCalculateMessageSize(command, args); 60 pos = rootCanalAddU8(array, pos, args.length); 62 for (let i = 0; i < args.length; i++) { 63 pos = rootCanalAddString(array, pos, args[i]);
|
/device/generic/goldfish-opengl/ |
D | cmake_transform.py | 39 def __init__(self, *args, **kwargs): argument 40 super(AttrDict, self).__init__(*args, **kwargs) 179 args = parser.parse_args() 181 logging.basicConfig(level=args.loglevel) 183 with open(args.input) as data_file: 189 if args.output is not None: 190 with open(args.output, "w") as out_file: 197 root = os.path.join(args.outdir, "CMakeLists.txt") 198 mkfile = os.path.join(args.outdir, "Android.mk") 208 location = os.path.join(args.outdir, module["path"], "CMakeLists.txt")
|
/device/google/cuttlefish/host/commands/control_env_proxy_server/ |
D | main.cpp | 61 std::vector<std::string> args{request->service_name(), in CallUnaryMethod() local 64 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "call", args); in CallUnaryMethod() 76 std::vector<std::string> args; in ListServices() local 77 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "ls", args); in ListServices() 102 std::vector<std::string> args{request->service_name()}; in ListMethods() local 103 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "ls", args); in ListMethods() 129 std::vector<std::string> args{request->service_name(), in ListReqResType() local 131 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "ls", args); in ListReqResType() 154 std::vector<std::string> args{request->service_name(), in TypeInformation() local 156 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "type", args); in TypeInformation()
|
/device/google/trout/tools/ |
D | bpttool | 1579 args = parser.parse_args(argv[1:]) 1580 args.func(args) 1586 def query_partition(self, args): argument 1589 result = self.bpt.query_partition(args.input, 1590 args.label, 1591 args.type, 1592 args.ab_collapse) 1601 sys.stderr.write('No partition with label "{}".\n'.format(args.label)) 1606 def make_table(self, args): argument 1608 if not args.input: [all …]
|