Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/device/linaro/poplar/wifi/wifi_hal/
Dgscan.cpp340 wifi_scan_result *result = results + i; in parseScanResults() local
345 strncpy(result->ssid, (char *) it2.get_data(), it2.get_len()); in parseScanResults()
346 result->ssid[it2.get_len()] = 0; in parseScanResults()
348 memcpy(result->bssid, (byte *) it2.get_data(), sizeof(mac_addr)); in parseScanResults()
350 result->ts = it2.get_u64(); in parseScanResults()
352 result->ts = it2.get_u16(); in parseScanResults()
354 result->rssi = it2.get_u8(); in parseScanResults()
356 result->rtt = it2.get_u64(); in parseScanResults()
358 result->rtt_sd = it2.get_u64(); in parseScanResults()
373 int result = request.create(GOOGLE_OUI, subcmd); in createFeatureRequest() local
[all …]
Dwifi_logger.cpp162 int result = request.create(GOOGLE_OUI, LOGGER_START_LOGGING); in createRingRequest() local
163 if (result != WIFI_SUCCESS) { in createRingRequest()
164 ALOGE("Failed to create start ring logger request; result = %d", result); in createRingRequest()
165 return result; in createRingRequest()
170 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_LEVEL, mVerboseLevel); in createRingRequest()
171 if (result != WIFI_SUCCESS) { in createRingRequest()
172 ALOGE("Failed to put log level; result = %d", result); in createRingRequest()
173 return result; in createRingRequest()
175 result = request.put_u32(LOGGER_ATTRIBUTE_RING_FLAGS, mFlags); in createRingRequest()
176 if (result != WIFI_SUCCESS) { in createRingRequest()
[all …]
Dwifi_offload.cpp95 int result; in createRequest() local
100 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_START_MKEEP_ALIVE); in createRequest()
101 if (result != WIFI_SUCCESS) { in createRequest()
102 ALOGE("Failed to create start keep alive request; result = %d", result); in createRequest()
103 return result; in createRequest()
108 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest()
109 if (result < 0) { in createRequest()
110 ALOGE("Failed to put id request; result = %d", result); in createRequest()
111 return result; in createRequest()
114 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN, mIpPktLen); in createRequest()
[all …]
Drtt.cpp343 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_SET_CONFIG); in createSetupRequest() local
344 if (result < 0) { in createSetupRequest()
345 return result; in createSetupRequest()
349 result = request.put_u8(RTT_ATTRIBUTE_TARGET_CNT, numRttParams); in createSetupRequest()
350 if (result < 0) { in createSetupRequest()
351 return result; in createSetupRequest()
360 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, rttParams[i].addr); in createSetupRequest()
361 if (result < 0) { in createSetupRequest()
362 return result; in createSetupRequest()
365 result = request.put_u8(RTT_ATTRIBUTE_TARGET_TYPE, rttParams[i].type); in createSetupRequest()
[all …]
Dwifi_hal.cpp395 ssize_t result = TEMP_FAILURE_RETRY(read(info->cleanup_socks[0], buf, sizeof(buf))); in wifi_cleanup() local
397 result, errno, strerror(errno)); in wifi_cleanup()
478 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop() local
479 if (result < 0) { in wifi_event_loop()
677 int result = request.create(GOOGLE_OUI, subcmd); in createRequest() local
678 if (result < 0) { in createRequest()
679 return result; in createRequest()
683 result = request.put(ANDR_WIFI_ATTRIBUTE_PNO_RANDOM_MAC_OUI, scan_oui, DOT11_OUI_LEN); in createRequest()
684 if (result < 0) { in createRequest()
685 return result; in createRequest()
[all …]
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/
Dcore_cmSimd.h137 uint32_t result;
139 __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) );
140 return(result);
145 uint32_t result;
147 __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) );
148 return(result);
153 uint32_t result;
155 __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) );
156 return(result);
161 uint32_t result;
[all …]
Dcore_cmInstr.h472 uint32_t result; in __REV()
474 __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REV()
475 return(result); in __REV()
489 uint32_t result; in __REV16() local
491 __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REV16()
492 return(result); in __REV16()
508 uint32_t result; in __REVSH()
510 __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REVSH()
511 return(result); in __REVSH()
552 uint32_t result; in __RBIT() local
[all …]
Dcore_cmFunc.h342 uint32_t result; in __get_CONTROL() local
344 __ASM volatile ("MRS %0, control" : "=r" (result) ); in __get_CONTROL()
345 return(result); in __get_CONTROL()
369 uint32_t result; in __get_IPSR() local
371 __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); in __get_IPSR()
372 return(result); in __get_IPSR()
384 uint32_t result; in __get_APSR() local
386 __ASM volatile ("MRS %0, apsr" : "=r" (result) ); in __get_APSR()
387 return(result); in __get_APSR()
399 uint32_t result; in __get_xPSR() local
[all …]
/device/google/contexthub/util/nanotool/
Dcontexthub.cpp206 auto result = WriteEvent(req); in EnableSensor() local
207 if (result == TransportResult::Success) { in EnableSensor()
233 auto result = WriteEvent(req); in DisableSensor() local
234 if (result == TransportResult::Success) { in DisableSensor()
283 TransportResult result = WriteEvent(request); in PrintBridgeVersion() local
284 if (result != TransportResult::Success) { in PrintBridgeVersion()
286 static_cast<int>(result)); in PrintBridgeVersion()
372 auto result = WriteEvent(req); in CalibrateSingleSensor() local
373 if (result != TransportResult::Success) { in CalibrateSingleSensor()
387 result = ReadAppEvents(cal_event_handler, kCalibrationTimeoutMs); in CalibrateSingleSensor()
[all …]
/device/google/cuttlefish/host/commands/cvd_send_sms/unittest/
Dpdu_format_builder_test.cc26 std::string result = builder.Build(); in TEST() local
28 EXPECT_EQ(result, ""); in TEST()
36 std::string result = builder.Build(); in TEST() local
38 EXPECT_EQ(result, ""); in TEST()
49 std::string result = builder.Build(); in TEST() local
51 EXPECT_EQ(result, ""); in TEST()
59 std::string result = builder.Build(); in TEST() local
61 EXPECT_EQ(result, "0001000b916105214365f700000163"); in TEST()
69 std::string result = builder.Build(); in TEST() local
71 EXPECT_EQ(result, "0001000b916105214365f7000007e3f1783c1e8f01"); in TEST()
[all …]
/device/google/cuttlefish/common/libs/utils/
Dresult_test.cpp37 const auto result = []() -> Result<std::string> { in TEST() local
41 EXPECT_THAT(result, IsOkAndValue(StrEq("okay"))); in TEST()
45 const auto result = []() -> Result<std::string> { in TEST() local
49 EXPECT_THAT(result, IsOkAndValue(StrEq("okay"))); in TEST()
53 const auto result = []() -> Result<std::string> { in TEST() local
57 EXPECT_THAT(result, IsError()); in TEST()
61 const auto result = []() -> Result<std::string> { in TEST() local
65 EXPECT_THAT(result, in TEST()
70 const auto result = []() -> Result<std::string> { in TEST() local
78 EXPECT_THAT(result, IsOkAndValue(StrEq("outer okay"))); in TEST()
[all …]
Dresult_matchers.h28 auto& result = arg; variable
29 if (!result.ok()) {
31 << result.error().Trace();
38 auto& result = arg; variable
39 if (result.ok()) {
47 auto& result = arg; variable
48 using ResultType = std::decay_t<decltype(result)>;
52 result, result_listener);
56 auto& result = arg; variable
57 using ResultType = std::decay_t<decltype(result)>;
[all …]
/device/google/cuttlefish/host/commands/assemble_cvd/
Dmisc_info.cc99 std::vector<std::string> result; in GeneratePartitionKeys() local
100 result.emplace_back("avb_" + name); in GeneratePartitionKeys()
101 result.emplace_back("avb_" + name + "_algorithm"); in GeneratePartitionKeys()
102 result.emplace_back("avb_" + name + "_key_path"); in GeneratePartitionKeys()
103 result.emplace_back("avb_" + name + kRollbackIndexSuffix); in GeneratePartitionKeys()
104 result.emplace_back("avb_" + name + "_hashtree_enable"); in GeneratePartitionKeys()
105 result.emplace_back("avb_" + name + "_add_hashtree_footer_args"); in GeneratePartitionKeys()
106 result.emplace_back(name + "_disable_sparse"); in GeneratePartitionKeys()
107 result.emplace_back("building_" + name + "_image"); in GeneratePartitionKeys()
112 result.emplace_back(fs_type_key); in GeneratePartitionKeys()
[all …]
/device/linaro/dragonboard/shared/utils/rmtfs/
Drmtfs.c44 static void qmi_result_error(struct rmtfs_qmi_result *result, unsigned error) in qmi_result_error() argument
47 if (result->result == QMI_RMTFS_RESULT_FAILURE) in qmi_result_error()
50 result->result = QMI_RMTFS_RESULT_FAILURE; in qmi_result_error()
51 result->error = error; in qmi_result_error()
68 qmi_result_error(&resp.result, QMI_RMTFS_ERR_MALFORMED_MSG); in rmtfs_open()
74 qmi_result_error(&resp.result, QMI_RMTFS_ERR_INTERNAL); in rmtfs_open()
84 req.path, caller_id, resp.result.result, resp.result.error); in rmtfs_open()
115 qmi_result_error(&resp.result, QMI_RMTFS_ERR_MALFORMED_MSG); in rmtfs_close()
121 qmi_result_error(&resp.result, QMI_RMTFS_ERR_INTERNAL); in rmtfs_close()
130 req.caller_id, resp.result.result, resp.result.error); in rmtfs_close()
[all …]
/device/google/cuttlefish/guest/commands/sensor_injection/
Dmain.cpp41 auto result = in startSensorInjection() local
43 CHECK(result.isOk()) in startSensorInjection()
45 << result.getDescription(); in startSensorInjection()
54 auto result = sensors->getSensorsList(&sensors_list); in getSensorHandle() local
55 CHECK(result.isOk()) << "Unable to get ISensors sensors list: " in getSensorHandle()
56 << result.getDescription(); in getSensorHandle()
69 auto result = sensors->setOperationMode(ISensors::OperationMode::NORMAL); in endSensorInjection() local
70 CHECK(result.isOk()) << "Unable to set sensors operation mode to NORMAL: " in endSensorInjection()
71 << result.getDescription(); in endSensorInjection()
100 auto result = sensors->injectSensorData(event); in InjectOrientation() local
[all …]
/device/google/cuttlefish/host/commands/secure_env/
Dtpm_remote_provisioning_context.cpp46 std::vector<uint8_t> result(num_bytes); in DeriveBytesFromHbk() local
52 return result; in DeriveBytesFromHbk()
55 if (!HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk()
65 return result; in DeriveBytesFromHbk()
70 auto result = std::make_unique<cppbor::Map>(); in CreateDeviceInfo() local
71 result->add(cppbor::Tstr("brand"), cppbor::Tstr("Google")); in CreateDeviceInfo()
72 result->add(cppbor::Tstr("manufacturer"), cppbor::Tstr("Google")); in CreateDeviceInfo()
73 result->add(cppbor::Tstr("product"), in CreateDeviceInfo()
75 result->add(cppbor::Tstr("model"), cppbor::Tstr("Virtual Device")); in CreateDeviceInfo()
76 result->add(cppbor::Tstr("device"), cppbor::Tstr("Virtual Device")); in CreateDeviceInfo()
[all …]
/device/google/cuttlefish/host/commands/modem_simulator/unittest/
Dservice_test.cpp530 const char *result = response[response.size() - 1].c_str(); in TEST_F() local
532 ASSERT_STREQ(result, kFinalResponseSuccess[0].c_str()); in TEST_F()
540 const char *result = response[0].c_str(); in TEST_F() local
541 ASSERT_STREQ(result, kFinalResponseSuccess[0].c_str()); in TEST_F()
549 const char *result = response[response.size() - 1].c_str(); in TEST_F() local
550 ASSERT_STREQ(result, kFinalResponseSuccess[0].c_str()); in TEST_F()
558 const char *result = response[response.size() - 1].c_str(); in TEST_F() local
559 ASSERT_STREQ(result, kFinalResponseSuccess[0].c_str()); in TEST_F()
567 const char *result = response[response.size() - 1].c_str(); in TEST_F() local
569 ASSERT_STREQ(result, expect); in TEST_F()
[all …]
Dcommand_parser_test.cpp25 std::string result(*cmd); in TEST() local
26 ASSERT_STREQ("\"D3078202018190014E\"", result.c_str()); in TEST()
34 std::string result(*cmd); in TEST() local
35 ASSERT_STREQ("+SPUSATENVECMD=\"D3078202018190014E\"", result.c_str()); in TEST()
43 std::string result(*cmd); in TEST() local
44 ASSERT_STREQ("1,\"CMCC\",7", result.c_str()); in TEST()
53 std::string result(*cmd); in TEST() local
54 ASSERT_STREQ("0,1,\"CMCC\",7", result.c_str()); in TEST()
61 std::string result(cmd.GetNextStr()); in TEST() local
62 ASSERT_STREQ("CMCC", result.c_str()); in TEST()
[all …]
/device/google/gs-common/soc/
Ddump_memory.cpp22 char* concat(char* result, const char* one, const char* two){ in concat() argument
23 strcpy(result, one); in concat()
24 strcat(result, two); in concat()
25 return result; in concat()
30 char result[100], base[100]; in iterate() local
53 dumpFileContent(entry2->d_name, concat(result, base, entry2->d_name)); in iterate()
62 char result[100]; in main() local
79 …dumpFileContent("count", concat(result, concat(result, "/sys/kernel/debug/cma/", entry->d_name), "… in main()
80 …dumpFileContent("used", concat(result, concat(result, "/sys/kernel/debug/cma/", entry->d_name), "/… in main()
81 …dumpFileContent("bitmap", concat(result, concat(result, "/sys/kernel/debug/cma/", entry->d_name), … in main()
/device/google/cuttlefish/host/commands/secure_env/oemlock/
Doemlock_responder.cpp36 bool result = false; in ProcessMessage() local
40 result = CF_EXPECT(oemlock_.IsOemUnlockAllowedByCarrier()); in ProcessMessage()
42 result = *reinterpret_cast<bool*>(request->payload); in ProcessMessage()
43 CF_EXPECT(oemlock_.SetOemUnlockAllowedByCarrier(result)); in ProcessMessage()
50 result = CF_EXPECT(oemlock_.IsOemUnlockAllowedByDevice()); in ProcessMessage()
52 result = *reinterpret_cast<bool*>(request->payload); in ProcessMessage()
53 CF_EXPECT(oemlock_.SetOemUnlockAllowedByDevice(result)); in ProcessMessage()
60 result = CF_EXPECT(oemlock_.IsOemUnlockAllowed()); in ProcessMessage()
67 result = CF_EXPECT(oemlock_.IsOemLocked()); in ProcessMessage()
69 result = *reinterpret_cast<bool*>(request->payload); in ProcessMessage()
[all …]
/device/google/cuttlefish/guest/hals/camera/
Dcached_stream_buffer.cpp100 android_ycbcr result = in acquireAsYUV() local
102 if (result.ystride > UINT32_MAX || result.cstride > UINT32_MAX || in acquireAsYUV()
103 result.chroma_step > UINT32_MAX) { in acquireAsYUV()
107 __FUNCTION__, result.ystride, result.cstride, result.chroma_step); in acquireAsYUV()
110 return {.y = result.y, in acquireAsYUV()
111 .cb = result.cb, in acquireAsYUV()
112 .cr = result.cr, in acquireAsYUV()
113 .yStride = static_cast<uint32_t>(result.ystride), in acquireAsYUV()
114 .cStride = static_cast<uint32_t>(result.cstride), in acquireAsYUV()
115 .chromaStep = static_cast<uint32_t>(result.chroma_step)}; in acquireAsYUV()
/device/google/cuttlefish/host/commands/control_env_proxy_server/
Dmain.cpp64 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "call", args); in CallUnaryMethod() local
65 if (!TypeIsSuccess(result)) { in CallUnaryMethod()
69 reply->set_json_formatted_proto(*result); in CallUnaryMethod()
77 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "ls", args); in ListServices() local
78 if (!TypeIsSuccess(result)) { in ListServices()
84 if (!reader.parse(*result, value)) { in ListServices()
103 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "ls", args); in ListMethods() local
104 if (!TypeIsSuccess(result)) { in ListMethods()
110 if (!reader.parse(*result, value)) { in ListMethods()
131 auto result = cuttlefish::HandleCmds(FLAGS_grpc_socket_path, "ls", args); in ListReqResType() local
[all …]
/device/google/cuttlefish/tests/wmediumd_control/src/com/android/cuttlefish/tests/
DWmediumdControlE2eTest.java116 CommandResult result = runWmediumdCommand(10000, "ListStations", "{}"); in listStations() local
117 CLog.i("stdout:%s", result.getStdout()); in listStations()
118 CLog.i("stderr:%s", result.getStderr()); in listStations()
119 Assert.assertEquals(CommandStatus.SUCCESS, result.getStatus()); in listStations()
120 Assert.assertTrue(result.getStderr().contains(MESSAGE_OK)); in listStations()
123 jsonParser.merge(result.getStdout(), builder); in listStations()
134 CommandResult result = runWmediumdCommand(10000, "SetSnr", jsonPrinter.print(request)); in setSnr() local
135 Assert.assertEquals(CommandStatus.SUCCESS, result.getStatus()); in setSnr()
136 Assert.assertTrue(result.getStderr().contains(MESSAGE_OK)); in setSnr()
147 CommandResult result = runWmediumdCommand(10000, "SetPosition", jsonPrinter.print(request)); in setPosition() local
[all …]
/device/google/contexthub/contexthubhal/
Dsystem_comms.cpp422 int32_t result = -1; // results are only directly returned on failure in setupMgmt() local
433 sendToApp(mCmd, transactionId, &result, sizeof(result)); in setupMgmt()
442 sendToApp(mCmd, transactionId, &result, sizeof(result)); in setupMgmt()
510 int32_t result = 0; in handleTransfer() local
526 result = NANOHUB_APP_NOT_LOADED; in handleTransfer()
538 result = NANOHUB_APP_NOT_LOADED; in handleTransfer()
543 if (result != 0) { in handleTransfer()
546 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleTransfer()
591 int32_t result = NANOHUB_APP_NOT_LOADED; in handleStopTransfer() local
593 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleStopTransfer()
[all …]
/device/google/zuma/CopyEfsTest/src/com/android/test/
DCopyEfsTest.java50 String result = getDevice().getProperty("ro.boot.flash.locked"); in copyEfsTest() local
51 assumeTrue("0".equals(result)); in copyEfsTest()
69 String result = getDevice().executeShellCommand("cat /proc/mounts"); in getMountInfo() local
70 BufferedReader br = new BufferedReader(new StringReader(result)); in getMountInfo()
84 String[] result = getMountInfo(mountPoint); in getFsTypeFor() local
85 if (result == null) { in getFsTypeFor()
88 return result[2]; in getFsTypeFor()
91 String[] result = getMountInfo(mountPoint); in getBlockDevFor() local
92 if (result == null) { in getBlockDevFor()
95 return result[0]; in getBlockDevFor()

12345678910>>...14