Home
last modified time | relevance | path

Searched refs:returnCode (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/DnsResolver/tests/dns_metrics_listener/
Dtest_metrics.cpp37 int32_t returnCode, int32_t /*latencyMs*/, in onDnsEvent() argument
61 if (returnCode != result.returnCode) continue; in onDnsEvent()
63 if (result.returnCode == 0 /*success*/) { in onDnsEvent()
Ddns_metrics_listener.cpp35 return std::tie(netId, eventType, returnCode, hostname, ipAddresses, ipAddressesCount) == in operator ==()
36 std::tie(o.netId, o.eventType, o.returnCode, o.hostname, o.ipAddresses, in operator ==()
42 data.returnCode, data.hostname, fmt::join(data.ipAddresses, ", "), in operator <<()
68 int32_t returnCode, int32_t /*latencyMs*/, in onDnsEvent() argument
75 {netId, eventType, returnCode, hostname, ipAddresses, ipAddressesCount}); in onDnsEvent()
Dtest_metrics.h73 int returnCode; member
86 ::ndk::ScopedAStatus onDnsEvent(int32_t netId, int32_t eventType, int32_t returnCode,
Ddns_metrics_listener.h45 int32_t returnCode; member
68 ::ndk::ScopedAStatus onDnsEvent(int32_t netId, int32_t eventType, int32_t returnCode,
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java262 int returnCode; in proceedAndFinish() local
266 returnCode = RESULT_OK; in proceedAndFinish()
279 returnCode = mTimeout; in proceedAndFinish()
281 if (returnCode < RESULT_FIRST_USER) { in proceedAndFinish()
282 returnCode = RESULT_FIRST_USER; in proceedAndFinish()
285 returnCode = RESULT_CANCELED; in proceedAndFinish()
293 setResult(returnCode); in proceedAndFinish()
/packages/modules/adb/client/
Dfastdeploy.cpp254 int returnCode = in extract_metadata() local
256 if (returnCode >= kInvalidAgentVersion) { in extract_metadata()
270 returnCode = in extract_metadata()
273 if (returnCode != 0) { in extract_metadata()
274 if (returnCode == kInvalidAgentVersion) { in extract_metadata()
280 if (returnCode == kPackageMissing) { in extract_metadata()
285 fprintf(stderr, "Executing %s returned %d\n", dump_command.c_str(), returnCode); in extract_metadata()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
DJPEGOutputStream.java102 int returnCode = JpegConfig.J_ERROR_FATAL; in write() local
104 returnCode = writeInputBytes(buffer, offset, length); in write()
106 if (returnCode < 0) { in write()
110 if (returnCode < 0) { in write()
/packages/modules/DnsResolver/tests/
Ddnsresolver_binder_test.cpp236 int returnCode = 0) { in toSetResolverConfigurationLogData() argument
242 if (returnCode != 0) { in toSetResolverConfigurationLogData()
244 returnCode, strerror(returnCode))); in toSetResolverConfigurationLogData()
245 hintRegexWithParcel.append(fmt::format(".*{}", returnCode)); in toSetResolverConfigurationLogData()
247 returnCode, strerror(returnCode))); in toSetResolverConfigurationLogData()
248 hintRegexWithoutParcel.append(fmt::format(".*{}", returnCode)); in toSetResolverConfigurationLogData()
338 int returnCode; in TEST_F() member
398 EXPECT_EQ(config.returnCode, status); in TEST_F()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DPackageDeletionTask.java68 public void packageDeleted(String packageName, int returnCode) { in packageDeleted() argument
69 if (returnCode != PackageManager.DELETE_SUCCEEDED) { in packageDeleted()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DMoveAppProgressFragment.java51 public static CharSequence moveStatusToMessage(Context context, int returnCode) { in moveStatusToMessage() argument
52 switch (returnCode) { in moveStatusToMessage()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardMoveProgress.java87 private CharSequence moveStatusToMessage(int returnCode) { in moveStatusToMessage() argument
88 switch (returnCode) { in moveStatusToMessage()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp307 uint32_t getDnsEventSubsamplingRate(int netid, int returnCode, bool isMdns) { in getDnsEventSubsamplingRate() argument
308 uint32_t subsampling_denom = resolv_cache_get_subsampling_denom(netid, returnCode, isMdns); in getDnsEventSubsamplingRate()
333 int returnCode, NetworkDnsEventReported& event, const std::string& query_name, in reportDnsEvent() argument
338 ? getDnsEventSubsamplingRate(netContext.dns_netid, returnCode, true)
339 : getDnsEventSubsamplingRate(netContext.dns_netid, returnCode, false);
344 event.set_return_code(static_cast<ReturnCode>(returnCode));
362 it->onDnsEvent(netContext.dns_netid, eventType, returnCode, latencyMs, query_name, ip_addrs,
368 if (returnCode == NETD_RESOLV_TIMEOUT) {
376 } else if (returnCode == NOERROR) {
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTask.java146 public void packageDeleted(String packageName, int returnCode) { in packageDeleted() argument
147 if (returnCode != PackageManager.DELETE_SUCCEEDED) { in packageDeleted()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DNetworkMonitorManager.java140 public boolean notifyDnsResponse(int returnCode) { in notifyDnsResponse() argument
143 mNetworkMonitor.notifyDnsResponse(returnCode); in notifyDnsResponse()
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeSpec.java190 final int returnCode = statusMatch && locationMatch ? SUCCESS_CODE : PORTAL_CODE; in getResult() local
192 returnCode, locationHeader, getUrl().toString(), this, PROBE_HTTP); in getResult()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java246 int returnCode = timeoutSeconds; in setDiscoverable() local
247 return returnCode < RESULT_FIRST_USER ? RESULT_FIRST_USER : returnCode; in setDiscoverable()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DDataStallDetectionStats.java73 @NonNull int[] returnCode, @NonNull long[] dnsTime, int evalType, int netType, in DataStallDetectionStats() argument
79 dns.dnsReturnCode = returnCode; in DataStallDetectionStats()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java307 private native byte[] doTransceive(byte[] data, boolean raw, int[] returnCode); in doTransceive() argument
310 public synchronized byte[] transceive(byte[] data, boolean raw, int[] returnCode) { in transceive() argument
314 byte[] result = doTransceive(data, raw, returnCode); in transceive()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DINetworkMonitor.aidl9 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DINetworkMonitor.aidl9 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DINetworkMonitor.aidl27 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/
DINetworkMonitor.aidl27 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DINetworkMonitor.aidl27 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DINetworkMonitor.aidl9 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/
DINetworkMonitor.aidl28 oneway void notifyDnsResponse(int returnCode); in notifyDnsResponse() argument

12