Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 1498) sorted by relevance

12345678910>>...60

/packages/modules/Bluetooth/system/gd/crypto_toolbox/
Dcrypto_toolbox.cc46 it = std::copy(&z, &z + 1, it); in f4()
47 it = std::copy(v, v + OCTET32_LEN, it); in f4()
48 it = std::copy(u, u + OCTET32_LEN, it); in f4()
67 it = std::copy(length, length + 2, it); in calculate_mac_key_or_ltk()
68 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
69 it = std::copy(a1, a1 + 7, it); in calculate_mac_key_or_ltk()
70 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
71 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk()
72 it = std::copy(key_id, key_id + 4, it); in calculate_mac_key_or_ltk()
73 it = std::copy(&counter, &counter + 1, it); in calculate_mac_key_or_ltk()
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DNodeBuilder.java121 when(node.getParent()).thenReturn(MockNodeCopierProvider.get().copy(builder.mParent)); in build()
133 MockNodeCopierProvider.get().copy(builder.mParent), in build()
134 MockNodeCopierProvider.get().copy(builder.mParent), in build()
135 MockNodeCopierProvider.get().copy(builder.mParent), in build()
136 MockNodeCopierProvider.get().copy(builder.mParent), in build()
137 MockNodeCopierProvider.get().copy(builder.mParent), in build()
138 MockNodeCopierProvider.get().copy(builder.mParent)) in build()
223 mParent = MockNodeCopierProvider.get().copy(parent); in setParent()
331 NodeBuilder copy = new NodeBuilder(this.mNodeList); in cut() local
332 copy.mWindow = mWindow; in cut()
[all …]
DWindowBuilder.java57 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build()
58 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build()
59 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build()
60 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build()
61 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build()
62 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build()
86 mRoot = MockNodeCopierProvider.get().copy(root); in setRoot()
/packages/modules/DnsResolver/
Dresolv_private.h104 ResState copy; member
105 copy.netid = netid;
106 copy.uid = uid;
107 copy.pid = pid;
108 copy.search_domains = search_domains;
109 copy.nsaddrs = nsaddrs;
110 copy.udpsocks_ts = udpsocks_ts;
111 copy.ndots = ndots;
112 copy.mark = mark;
113 copy.tcp_nssock_ts = tcp_nssock_ts;
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DHomogenousBiMapTest.java65 HomogenousBiMap<Integer> copy = new HomogenousBiMap<>(); in equals_equalMaps_works() local
66 copy.put(KEY, VALUE); in equals_equalMaps_works()
68 assertThat(copy).isEqualTo(mBiMap); in equals_equalMaps_works()
73 HomogenousBiMap<Integer> copy = new HomogenousBiMap<>(); in equals_differentMaps_works() local
74 copy.put(OTHER_KEY, OTHER_VALUE); in equals_differentMaps_works()
76 assertThat(copy).isNotEqualTo(mBiMap); in equals_differentMaps_works()
81 HomogenousBiMap<Integer> copy = new HomogenousBiMap<>(); in hashCode_equalMaps_works() local
82 copy.put(KEY, VALUE); in hashCode_equalMaps_works()
84 assertThat(copy.hashCode()).isEqualTo(mBiMap.hashCode()); in hashCode_equalMaps_works()
89 HomogenousBiMap<Integer> copy = new HomogenousBiMap<>(); in hashCode_differentMaps_works() local
[all …]
/packages/modules/Bluetooth/system/stack/crypto_toolbox/
Dcrypto_toolbox.cc50 it = std::copy(&z, &z + 1, it); in f4()
51 it = std::copy(v, v + BT_OCTET32_LEN, it); in f4()
52 it = std::copy(u, u + BT_OCTET32_LEN, it); in f4()
67 it = std::copy(length, length + 2, it); in calculate_mac_key_or_ltk()
68 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
69 it = std::copy(a1, a1 + 7, it); in calculate_mac_key_or_ltk()
70 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
71 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk()
72 it = std::copy(key_id, key_id + 4, it); in calculate_mac_key_or_ltk()
73 it = std::copy(&counter, &counter + 1, it); in calculate_mac_key_or_ltk()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DSimCard.java172 SimCard copy = new SimCard(this); in withImportAndDismissStates() local
173 copy.mImported = imported; in withImportAndDismissStates()
174 copy.mDismissed = dismissed; in withImportAndDismissStates()
175 return copy; in withImportAndDismissStates()
187 final SimCard copy = new SimCard(this); in withContacts() local
188 copy.mContacts = contacts; in withContacts()
189 return copy; in withContacts()
193 final SimCard copy = new SimCard(this); in withContacts() local
194 copy.mContacts = Arrays.asList(contacts); in withContacts()
195 return copy; in withContacts()
/packages/modules/Bluetooth/system/gd/packet/
Dbit_inserter_unittest.cc50 std::vector<uint8_t> copy; in TEST() local
53 …it.RegisterObserver(ByteObserver([&copy](uint8_t byte) { copy.push_back(byte); }, [checksum]() { r… in TEST()
67 ASSERT_EQ(result.size(), copy.size()); in TEST()
68 for (size_t i = 0; i < copy.size(); i++) { in TEST()
69 ASSERT_EQ(result[i], copy[i]); in TEST()
78 ASSERT_EQ(result.size(), copy.size()); in TEST()
Dfragmenting_inserter_unittest.cc63 std::vector<uint8_t> copy; in TEST() local
66 …it.RegisterObserver(ByteObserver([&copy](uint8_t byte) { copy.push_back(byte); }, [checksum]() { r… in TEST()
85 ASSERT_EQ(result.size(), copy.size()); in TEST()
86 for (size_t i = 0; i < copy.size(); i++) { in TEST()
87 ASSERT_EQ(result[i], copy[i]); in TEST()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollectorTest.java191 HashMap<String, Long> copy = new HashMap<>(); in copyAppUsageMap() local
193 copy.put(key, (long) other.get(key)); in copyAppUsageMap()
195 return copy; in copyAppUsageMap()
199 HashMap<LocationInfo, Long> copy = new HashMap<>(); in copyLocationMap() local
201 copy.put(new LocationInfo(key), (long) other.get(key)); in copyLocationMap()
203 return copy; in copyLocationMap()
207 Deque<AppUsageEntry> copy = new ArrayDeque<>(); in copyAppUsageEntries() local
209 copy.add(new AppUsageEntry(entry)); in copyAppUsageEntries()
211 return copy; in copyAppUsageEntries()
215 Deque<LocationInfo> copy = new ArrayDeque<>(); in copyLocationEntries() local
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java137 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testBasicSettings() local
138 assertThat(copy).isNotSameInstanceAs(original); in testBasicSettings()
139 assertThat(copy).isEqualTo(original); in testBasicSettings()
140 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testBasicSettings()
194 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa2() local
195 assertThat(copy).isNotSameInstanceAs(original); in testWpa2()
196 assertThat(copy).isEqualTo(original); in testWpa2()
197 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa2()
267 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa2WithAllFieldCustomized() local
268 assertThat(copy).isNotSameInstanceAs(original); in testWpa2WithAllFieldCustomized()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/navigation/
DCarNavigationInstrumentClusterTest.java37 CarNavigationInstrumentCluster copy = new CarNavigationInstrumentCluster( in testCopyConstructor_constructsAsExpected() local
40 assertThat(copy.getExtra().keySet()).isEmpty(); in testCopyConstructor_constructsAsExpected()
41 assertThat(copy.getImageColorDepthBits()).isEqualTo(32); in testCopyConstructor_constructsAsExpected()
42 assertThat(copy.getImageHeight()).isEqualTo(480); in testCopyConstructor_constructsAsExpected()
43 assertThat(copy.getImageWidth()).isEqualTo(800); in testCopyConstructor_constructsAsExpected()
44 assertThat(copy.getMinIntervalMillis()).isEqualTo(100); in testCopyConstructor_constructsAsExpected()
/packages/modules/adb/
Dtypes.h41 std::copy(begin, end, data_.get()); in Block()
44 Block(const Block& copy) = delete;
50 Block& operator=(const Block& copy) = delete;
74 std::copy(begin, end, data_.get()); in assign()
147 IOVector(const IOVector& copy) = delete;
150 IOVector& operator=(const IOVector& copy) = delete;
281 weak_ptr(const weak_ptr& copy) { reset(copy.get()); } in weak_ptr()
290 weak_ptr& operator=(const weak_ptr& copy) {
291 if (&copy == this) {
295 reset(copy.get());
/packages/apps/Launcher3/src/com/android/launcher3/util/
DCellAndSpan.java31 public void copyFrom(CellAndSpan copy) { in copyFrom() argument
32 cellX = copy.cellX; in copyFrom()
33 cellY = copy.cellY; in copyFrom()
34 spanX = copy.spanX; in copyFrom()
35 spanY = copy.spanY; in copyFrom()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java86 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithDefaultValues() local
87 compareWifiP2pDevices(device, copy); in testCopyConstructorWithDefaultValues()
105 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithUpdatedValues() local
106 compareWifiP2pDevices(device, copy); in testCopyConstructorWithUpdatedValues()
124 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithNullWfdInfo() local
125 compareWifiP2pDevices(device, copy); in testCopyConstructorWithNullWfdInfo()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DGetByDocumentIdRequest.java82 Map<String, List<String>> copy = new ArrayMap<>(); in getProjections() local
84 copy.put(entry.getKey(), new ArrayList<>(entry.getValue())); in getProjections()
86 return copy; in getProjections()
99 Map<String, List<PropertyPath>> copy = new ArrayMap<>(mTypePropertyPathsMap.size()); in getProjectionPaths() local
105 copy.put(entry.getKey(), propertyPathList); in getProjectionPaths()
107 return copy; in getProjectionPaths()
/packages/modules/Connectivity/tests/common/java/android/net/
DDependenciesTest.java75 final byte[] copy = Arrays.copyOfRange(src, offset, offset + copySize); in testArrays()
76 assertArrayEquals(expected, copy); in testArrays()
84 final byte[] copy = Arrays.copyOf(src, src.length); in testCopyOf()
85 assertArrayEquals(src, copy); in testCopyOf()
86 assertFalse(src == copy); in testCopyOf()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DCallDetailsFooterViewHolder.java39 private final View copy; field in CallDetailsFooterViewHolder
53 copy = view.findViewById(R.id.call_detail_action_copy); in CallDetailsFooterViewHolder()
57 copy.setOnClickListener(this); in CallDetailsFooterViewHolder()
66 copy.setVisibility(View.GONE); in setPhoneNumber()
76 if (view == copy) { in onClick()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DPackageItemInfo.java50 public PackageItemInfo(PackageItemInfo copy) { in PackageItemInfo() argument
51 this.packageName = copy.packageName; in PackageItemInfo()
52 this.widgetCategory = copy.widgetCategory; in PackageItemInfo()
53 this.user = copy.user; in PackageItemInfo()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterDrawRepresentation.java100 public StrokeData(StrokeData copy) { in StrokeData() argument
101 mType = copy.mType; in StrokeData()
102 mPath = new Path(copy.mPath); in StrokeData()
103 mRadius = copy.mRadius; in StrokeData()
104 mColor = copy.mColor; in StrokeData()
105 noPoints = copy.noPoints; in StrokeData()
106 mPoints = Arrays.copyOf(copy.mPoints, copy.mPoints.length); in StrokeData()
187 public FilterRepresentation copy() { in copy() method in FilterDrawRepresentation
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseTests.java214 final MdnsResponse copy = new MdnsResponse(response); in copyConstructor() local
216 assertEquals(response.getInet6AddressRecord(), copy.getInet6AddressRecord()); in copyConstructor()
217 assertEquals(response.getInet4AddressRecord(), copy.getInet4AddressRecord()); in copyConstructor()
218 assertEquals(response.getPointerRecords(), copy.getPointerRecords()); in copyConstructor()
219 assertEquals(response.getServiceRecord(), copy.getServiceRecord()); in copyConstructor()
220 assertEquals(response.getTextRecord(), copy.getTextRecord()); in copyConstructor()
221 assertEquals(response.getRecords(), copy.getRecords()); in copyConstructor()
222 assertEquals(response.getNetwork(), copy.getNetwork()); in copyConstructor()
223 assertEquals(response.getInterfaceIndex(), copy.getInterfaceIndex()); in copyConstructor()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DInputPointers.java82 public void copy(@Nonnull final InputPointers ip) { in copy() method in InputPointers
83 mXCoordinates.copy(ip.mXCoordinates); in copy()
84 mYCoordinates.copy(ip.mYCoordinates); in copy()
85 mPointerIds.copy(ip.mPointerIds); in copy()
86 mTimes.copy(ip.mTimes); in copy()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionViewModel.kt72 .copy( in setDeletionType()
78 _deletionParameters.value = _deletionParameters.value?.copy(chosenRange = chosenRange) in setChosenRange()
83 _deletionParameters.value?.copy(endTimeMs = endTime.toEpochMilli()) in setEndTime()
88 _deletionParameters.value?.copy(startTimeMs = startTime.toEpochMilli()) in setStartTime()
102 _deletionParameters.value = currentDeletionParameters().copy(deletionState = newState) in setDeletionState()
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/
Dgatt_ble_advertiser_shim.cc122 std::copy(data.begin(), data.end(), std::back_inserter(converted)); in SetData()
149 std::copy(advertise_data.begin(), advertise_data.end(), std::back_inserter(converted_adv_data)); in StartAdvertising()
150 …std::copy(scan_response_data.begin(), scan_response_data.end(), std::back_inserter(converted_scan_… in StartAdvertising()
174 std::copy(advertise_data.begin(), advertise_data.end(), std::back_inserter(converted_adv_data)); in StartAdvertisingSet()
175 …std::copy(scan_response_data.begin(), scan_response_data.end(), std::back_inserter(converted_scan_… in StartAdvertisingSet()
176 …std::copy(periodic_data.begin(), periodic_data.end(), std::back_inserter(converted_periodic_data)); in StartAdvertisingSet()
200 std::copy(data.begin(), data.end(), std::back_inserter(converted)); in SetPeriodicAdvertisingData()
/packages/modules/Bluetooth/system/types/
Draw_address.cc34 std::copy(addr, addr + kLength, address); in RawAddress()
38 std::copy(mac.begin(), mac.end(), address); in RawAddress()
62 std::copy(std::begin(address), std::end(address), std::begin(mac)); in ToArray()
90 std::copy(from, from + kLength, address); in FromOctets()

12345678910>>...60