/system/connectivity/shill/ |
D | key_value_store_unittest.cc | 308 KeyValueStore first, second; in TEST_F() local 311 EXPECT_NE(first, second); in TEST_F() 314 second.Clear(); in TEST_F() 315 second.SetBool("boolKey", true); in TEST_F() 316 EXPECT_NE(first, second); in TEST_F() 319 second.Clear(); in TEST_F() 321 second.SetBool("boolOtherKey", true); in TEST_F() 322 EXPECT_NE(first, second); in TEST_F() 325 second.Clear(); in TEST_F() 327 second.SetBool("boolKey", false); in TEST_F() [all …]
|
D | key_value_store.cc | 53 properties_.find(name)->second.IsTypeCompatible<bool>(); in ContainsBool() 58 properties_.find(name)->second in ContainsByteArrays() 64 properties_.find(name)->second.IsTypeCompatible<int32_t>(); in ContainsInt() 69 properties_.find(name)->second.IsTypeCompatible<int16_t>(); in ContainsInt16() 74 properties_.find(name)->second.IsTypeCompatible<KeyValueStore>(); in ContainsKeyValueStore() 79 properties_.find(name)->second.IsTypeCompatible<dbus::ObjectPath>(); in ContainsRpcIdentifier() 84 properties_.find(name)->second in ContainsRpcIdentifiers() 90 properties_.find(name)->second.IsTypeCompatible<string>(); in ContainsString() 95 properties_.find(name)->second.IsTypeCompatible<Stringmap>(); in ContainsStringmap() 100 properties_.find(name)->second.IsTypeCompatible<Strings>(); in ContainsStrings() [all …]
|
D | fake_store.cc | 46 const auto& required_value = required_property_name_and_value.second; in DoesGroupContainProperties() 48 if (group_it == group.end() || group_it->second != required_value) { in DoesGroupContainProperties() 97 const auto& group_settings = group_name_and_settings.second; in GetGroupsWithKey() 111 const auto& group_settings = group_name_and_settings.second; in GetGroupsWithProperties() 131 auto& group_settings = group_name_and_settings->second; in DeleteKey() 221 const auto& group_settings = group_name_and_settings->second; in ReadSetting() 228 if (!property_name_and_value->second.IsTypeCompatible<T>()) { in ReadSetting() 233 << property_name_and_value->second.GetUndecoratedTypeName() in ReadSetting() 239 return property_name_and_value->second.GetValue(out); in ReadSetting() 254 auto& group_settings = group_name_and_settings->second; in WriteSetting() [all …]
|
D | json_store.cc | 75 const auto& required_value = required_property_name_and_value.second; in DoesGroupContainProperties() 77 if (group_it == group.end() || group_it->second != required_value) { in DoesGroupContainProperties() 303 const auto& value = key_and_value.second; in ConvertVariantDictionaryToDictionaryValue() 433 group_name_and_settings.second)); in Flush() 491 const auto& group_settings = group_name_and_settings.second; in GetGroupsWithKey() 505 const auto& group_settings = group_name_and_settings.second; in GetGroupsWithProperties() 525 auto& group_settings = group_name_and_settings->second; in DeleteKey() 645 const auto& group_settings = group_name_and_settings->second; in ReadSetting() 652 if (!property_name_and_value->second.IsTypeCompatible<T>()) { in ReadSetting() 657 << property_name_and_value->second.GetUndecoratedTypeName() in ReadSetting() [all …]
|
D | icmp_session.cc | 211 seq_num_to_sent_recv_time_pair->second.second = tick_clock_->NowTicks(); in OnEchoReplyReceived() 226 seq_num_to_sent_recv_time_pair.second; in GenerateIcmpResult() 227 if (sent_recv_timestamp_pair.second.is_null()) { in GenerateIcmpResult() 231 latencies.push_back(sent_recv_timestamp_pair.second - in GenerateIcmpResult()
|
/system/security/keystore/ |
D | operation.cpp | 56 *outHandle = entry->second.handle; in getOperation() 57 *outKeyid = entry->second.keyid; in getOperation() 58 *outPurpose = entry->second.purpose; in getOperation() 59 *outDevice = entry->second.device; in getOperation() 61 *outCharacteristics = entry->second.characteristics.get(); in getOperation() 79 sp<IBinder> appToken = entry->second.appToken; in removeOperation() 95 auto tokenEntry = std::find(appEntry->second.begin(), appEntry->second.end(), token); in removeOperationTracking() 96 appEntry->second.erase(tokenEntry); in removeOperationTracking() 98 if (appEntry->second.size() == 0) { in removeOperationTracking() 124 *outToken = entry->second.authToken.get(); in getOperationAuthToken() [all …]
|
/system/webservd/libwebserv/ |
D | request.cc | 78 data.emplace_back(pair.first, pair.second.get()); in GetFiles() 86 while (pair.first != pair.second) { in GetFormField() 87 data.push_back(pair.first->second); in GetFormField() 91 while (pair.first != pair.second) { in GetFormField() 92 data.push_back(pair.first->second); in GetFormField() 102 while (pair.first != pair.second) { in GetFormFieldPost() 103 data.push_back(pair.first->second); in GetFormFieldPost() 113 while (pair.first != pair.second) { in GetFormFieldGet() 114 data.push_back(pair.first->second); in GetFormFieldGet() 124 while (pair.first != pair.second) { in GetFileInfo() [all …]
|
D | dbus_protocol_handler.cc | 86 ports.insert(pair.second->port()); in GetPorts() 93 protocols.insert(pair.second->protocol()); in GetProtocols() 100 fingerprint = pair.second->certificate_fingerprint(); in GetCertificateFingerprint() 119 pair.second->AddRequestHandlerAsync( in AddHandler() 126 pair.second), in AddHandler() 149 for (const auto& pair : p->second.remote_handler_ids) { in RemoveHandler() 151 pair.second, in RemoveHandler() 164 pair.second.url, in Connect() 165 pair.second.method, in Connect() 182 pair.second.remote_handler_ids.clear(); in Disconnect() [all …]
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 104 const struct timespec *second) in tsDelta() argument 109 assert(second != NULL); in tsDelta() 111 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); in tsDelta() 112 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta() 113 if (second->tv_nsec >= first->tv_nsec) { in tsDelta() 114 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta() 116 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta() 127 const struct timeval *second) in tvDelta() argument 132 assert(second != NULL); in tvDelta() 134 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec); in tvDelta() [all …]
|
/system/core/logcat/tests/ |
D | logcat_benchmark.cpp | 38 int second; in TEST() member in TEST::timestamp 48 &month, &day, &hour, &minute, &second, &millisecond) == 6; in TEST() 68 && ((second < T.second) in TEST() 69 || ((second == T.second) in TEST()
|
/system/update_engine/payload_generator/ |
D | graph_utils.cc | 41 graph[edge.first].out_edges.find(edge.second)->second.extents; in EdgeWeight() 58 CHECK(result.second); in AddReadBeforeDep() 61 AppendBlockToExtents(&edge_it->second.extents, block); in AddReadBeforeDep() 83 if (!it->second.write_extents.empty()) in DropWriteBeforeDeps() 84 it->second.write_extents.clear(); in DropWriteBeforeDeps() 85 if (it->second.extents.empty()) { in DropWriteBeforeDeps() 117 DumpExtents(it->second.extents, 6); in DumpOutEdges() 119 DumpExtents(it->second.write_extents, 6); in DumpOutEdges()
|
D | ext2_filesystem.cc | 106 ino_file->second.name = dir_file->second.name; in UpdateFileAndAppend() 107 if (dir_file->second.name != "/") in UpdateFileAndAppend() 108 ino_file->second.name += "/"; in UpdateFileAndAppend() 109 ino_file->second.name += basename; in UpdateFileAndAppend() 114 state->files->push_back(ino_file->second); in UpdateFileAndAppend() 306 if (ino_file.second.extents.empty()) in GetFiles() 309 File file = ino_file.second; in GetFiles()
|
/system/extras/memtrack/ |
D | memtrack.cpp | 172 it->second.pids.clear(); in scan() 211 if (it->second.pids.size() > all_[it->first].max_num_pids) { in scan() 212 all_[it->first].max_num_pids = it->second.pids.size(); in scan() 215 all_[it->first].pids = it->second.pids; in scan() 217 if (it->second.pss_kb > all_[it->first].max_pss_kb) { in scan() 218 all_[it->first].max_pss_kb = it->second.pss_kb; in scan() 222 it->second.pss_kb < all_[it->first].min_pss_kb) { in scan() 223 all_[it->first].min_pss_kb = it->second.pss_kb; in scan() 226 all_[it->first].last_pss_kb = it->second.pss_kb; in scan() 228 computeAvg(&all_[it->first].avg_pss_kb, it->second.pss_kb, in scan() [all …]
|
/system/extras/perfprofd/ |
D | perf_data_converter.cc | 81 for (const auto &module_profile : program_profile.second) { in RawPerfDataToAndroidPerfProfile() 87 iter->second = current_index++; in RawPerfDataToAndroidPerfProfile() 98 const std::string &build_id = nbmi->second; in RawPerfDataToAndroidPerfProfile() 109 for (const auto &module_profile : program_profile.second) { in RawPerfDataToAndroidPerfProfile() 113 for (const auto &addr_count : module_profile.second.address_count_map) { in RawPerfDataToAndroidPerfProfile() 116 address_samples->set_count(addr_count.second); in RawPerfDataToAndroidPerfProfile() 118 for (const auto &range_count : module_profile.second.range_count_map) { in RawPerfDataToAndroidPerfProfile() 123 range_samples->set_count(range_count.second); in RawPerfDataToAndroidPerfProfile()
|
D | configreader.cc | 163 return it->second; in getUnsignedValue() 171 return it->second; in getStringValue() 182 vals = iit->second; in overrideUnsignedEntry() 184 it->second = new_value; in overrideUnsignedEntry() 210 vals = iit->second; in parseLine() 219 uit->second = uvalue; in parseLine() 231 sit->second = std::string(value); in parseLine()
|
/system/update_engine/ |
D | chrome_browser_proxy_resolver.cc | 68 MessageLoop::current()->CancelTask(timer.second); in ~ChromeBrowserProxyResolver() 69 timer.second = MessageLoop::kTaskIdNull; in ~ChromeBrowserProxyResolver() 107 *callback = it->second; in DeleteUrlState() 115 MessageLoop::current()->CancelTask(it->second); in DeleteUrlState() 139 (*callback.first)(ParseProxyString(proxy_info), callback.second); in OnProxyResolvedSignal() 148 (*callback.first)(proxies, callback.second); in HandleTimeout()
|
/system/webservd/webservd/ |
D | dbus_protocol_handler.cc | 52 pair.first, pair.second.on_client_disconnected_callback); in ~DBusProtocolHandler() 92 new DBusRequestHandler{server_, p->second.handler_proxy.get()} in AddRequestHandler() 96 p->second.handler_ids.insert(handler_id); in AddRequestHandler() 117 std::string service_name = p->second; in RemoveRequestHandler() 142 if (p == dbus_service_data_.end() || p->second.owner == service_owner) in OnClientDisconnected() 145 for (const std::string& handler_id : p->second.handler_ids) { in OnClientDisconnected() 150 service_name, p->second.on_client_disconnected_callback); in OnClientDisconnected()
|
/system/weaved/buffet/ |
D | shill_client.cc | 61 string new_state = property_it->second.TryGet<string>(); in GetStateForService() 135 OnManagerPropertyChange(shill::kDevicesProperty, it->second); in Init() 233 return ContainsKey(device_whitelist_, it->second.TryGet<string>()); in IsMonitoredDevice() 261 OnManagerPropertyChange(shill::kDevicesProperty, it->second); in OnManagerPropertyChangeRegistration() 322 DeviceProxy* device = it->second.device.get(); in OnDevicePropertyChangeRegistration() 334 prop_it->second); in OnDevicePropertyChangeRegistration() 349 DeviceState& device_state = it->second; in OnDevicePropertyChange() 412 if (kv.second.selected_service && in OnServicePropertyChangeRegistration() 413 kv.second.selected_service->GetObjectPath() == path) { in OnServicePropertyChangeRegistration() 414 service = kv.second.selected_service.get(); in OnServicePropertyChangeRegistration() [all …]
|
/system/core/libmemunreachable/ |
D | LeakFolding.cpp | 48 LeakInfo& leak = it.second; in ComputeDAG() 82 LeakInfo& leak = it.first->second; in FoldLeaks() 89 LeakInfo& leak = it.second; in FoldLeaks() 118 const LeakInfo& leak = it.second; in Leaked() 124 const LeakInfo& leak = it.second; in Leaked()
|
/system/core/bootstat/ |
D | bootstat.cpp | 47 bootstat::LogHistogram(i->first, i->second); in LogBootEvents() 58 printf("%s\t%d\n", i->first.c_str(), i->second); in PrintBootEvents() 132 return mapping->second; in BootReasonStrToEnum() 155 build_date != record.second) { in CalculateBootCompletePrefix() 183 time_t boot_complete = uptime - record.second; in RecordBootComplete() 246 time_t factory_reset_utc = record.second; in RecordFactoryReset()
|
/system/extras/simpleperf/ |
D | cmd_list.cpp | 90 PrintEventTypesOfType(it->second.first, it->second.second, event_types); in Run()
|
D | thread_tree.cpp | 54 CHECK(pair.second); in AddThread() 58 it->second->comm = thread_comm_storage_.back()->c_str(); in AddThread() 74 if (pid != it->second.get()->pid) { in FindThreadOrNew() 76 LOG(DEBUG) << "unexpected (pid, tid) pair: expected (" << it->second.get()->pid << ", " << tid in FindThreadOrNew() 80 return it->second.get(); in FindThreadOrNew() 93 CHECK(pair.second); in AddKernelMap() 108 return it->second.get(); in FindKernelDsoOrNew() 118 CHECK(pair.second); in AddThreadMap() 127 return it->second.get(); in FindUserDsoOrNew()
|
/system/connectivity/shill/wimax/ |
D | wimax_provider.cc | 114 RpcIdentifier path = find_it->second; in OnDeviceInfoAvailable() 124 const set<RpcIdentifier>& networks = device.second->networks(); in OnNetworksChanged() 311 return devices_.begin()->second; in SelectCarrier() 365 if (find(live_devices.begin(), live_devices.end(), it->second) == in DestroyDeadDevices() 367 LOG(INFO) << "Forgetting pending device: " << it->second; in DestroyDeadDevices() 374 if (find(live_devices.begin(), live_devices.end(), it->second->path()) == in DestroyDeadDevices() 377 const WiMaxRefPtr& device = it->second; in DestroyDeadDevices() 425 const WiMaxServiceRefPtr& service = find_it->second; in FindService() 460 const NetworkInfo& info = nit.second; in StartLiveServices() 467 const WiMaxServiceRefPtr& service = entry.second; in StartLiveServices() [all …]
|
/system/core/libbinderwrapper/ |
D | stub_binder_wrapper.cc | 39 return it != registered_services_.end() ? it->second : sp<IBinder>(); in GetRegisteredService() 45 it->second.Run(); in NotifyAboutBinderDeath() 50 return it != services_to_return_.end() ? it->second : sp<IBinder>(); in GetService()
|
/system/bt/service/ |
D | gatt_server.cpp | 328 for (auto tmp : iter->second) { in SendResponse() 406 for (auto conn : conn_iter->second) { in SendNotification() 421 handle_iter->second, in SendNotification() 472 for (auto conn_iter = iter->second.begin(); conn_iter != iter->second.end(); in ConnectionCallback() 477 iter->second.erase(conn_iter); in ConnectionCallback() 675 if (iter->second.IsCharacteristic()) { in RequestReadCallback() 677 this, device_address, trans_id, offset, is_long, iter->second); in RequestReadCallback() 678 } else if (iter->second.IsDescriptor()) { in RequestReadCallback() 680 this, device_address, trans_id, offset, is_long, iter->second); in RequestReadCallback() 742 if (iter->second.IsCharacteristic()) { in RequestWriteCallback() [all …]
|