/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | NodeBuilder.java | 121 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 …]
|
D | WindowBuilder.java | 52 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build() 53 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build() 54 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build() 55 .thenReturn(MockNodeCopierProvider.get().copy(mRoot)) in build() 77 mRoot = MockNodeCopierProvider.get().copy(root); in setRoot()
|
/packages/modules/DnsResolver/ |
D | resolv_private.h | 102 ResState copy; member 103 copy.netid = netid; 104 copy.uid = uid; 105 copy.pid = pid; 106 copy.search_domains = search_domains; 107 copy.nsaddrs = nsaddrs; 108 copy.ndots = ndots; 109 copy._mark = _mark; 110 copy._flags = _flags; 111 copy.event = (dnsEvent == nullptr) ? event : dnsEvent; [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | HomogenousBiMapTest.java | 65 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/apps/TvSettings/Settings/src/com/android/tv/settings/service/ |
D | PreferenceParcelable.java | 223 PreferenceParcelable copy = new PreferenceParcelable(Arrays.copyOf(key, key.length)); in immutableCopy() local 224 copy.setTitle(title); in immutableCopy() 225 copy.setSummary(summary); in immutableCopy() 226 copy.setType(type); in immutableCopy() 227 copy.setChecked(checked); in immutableCopy() 228 copy.setVisible(visible); in immutableCopy() 229 copy.setContentDescription(contentDescription); in immutableCopy() 231 copy.setExtras(new Bundle(extras)); in immutableCopy() 234 copy.setIntent(new Intent(intent)); in immutableCopy() 240 copy.setInfoMap(infoMapCopy); in immutableCopy() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | SoftApConfigurationTest.java | 105 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testBasicSettings() local 106 assertThat(copy).isNotSameInstanceAs(original); in testBasicSettings() 107 assertThat(copy).isEqualTo(original); in testBasicSettings() 108 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testBasicSettings() 129 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa2() local 130 assertThat(copy).isNotSameInstanceAs(original); in testWpa2() 131 assertThat(copy).isEqualTo(original); in testWpa2() 132 assertThat(copy.hashCode()).isEqualTo(original.hashCode()); in testWpa2() 187 SoftApConfiguration copy = new SoftApConfiguration.Builder(original).build(); in testWpa2WithAllFieldCustomized() local 188 assertThat(copy).isNotSameInstanceAs(original); in testWpa2WithAllFieldCustomized() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimCard.java | 172 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/adb/ |
D | types.h | 41 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 (© == this) { 295 reset(copy.get());
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | CellAndSpan.java | 31 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/ |
D | WifiP2pDeviceTest.java | 77 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithDefaultValues() local 78 compareWifiP2pDevices(device, copy); in testCopyConstructorWithDefaultValues() 96 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithUpdatedValues() local 97 compareWifiP2pDevices(device, copy); in testCopyConstructorWithUpdatedValues() 115 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithNullWfdInfo() local 116 compareWifiP2pDevices(device, copy); in testCopyConstructorWithNullWfdInfo()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterDrawRepresentation.java | 100 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/common/java/android/net/ |
D | DependenciesTest.java | 75 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()
|
D | NetworkTest.java | 197 final Network copy = mNetwork.getPrivateDnsBypassingCopy(); in testGetPrivateDnsBypassingCopy() local 198 assertEquals(mNetwork.netId, copy.netId); in testGetPrivateDnsBypassingCopy() 199 assertNotEquals(copy.netId, copy.getNetIdForResolv()); in testGetPrivateDnsBypassingCopy() 200 assertNotEquals(mNetwork.getNetIdForResolv(), copy.getNetIdForResolv()); in testGetPrivateDnsBypassingCopy()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/ |
D | ToolbarControllerAdapterV1.java | 141 update(mAdapterState.copy().setTitle(charSequenceToString(title)).build()); in setTitle() 156 update(mAdapterState.copy().setSubtitle(charSequenceToString(subtitle)).build()); in setSubtitle() 177 update(mAdapterState.copy() in setTabs() 223 update(mAdapterState.copy().setTabs(convertList(modernTabs, TabAdapterV1::new)).build()); in updateModernTabsFromDeprecatedOnes() 241 update(mAdapterState.copy() in selectTab() 257 update(mAdapterState.copy().setShowTabsInSubpage(showTabs).build()); in setShowTabsInSubpage() 272 update(mAdapterState.copy().setLogo(drawable).build()); in setLogo() 303 update(mAdapterState.copy().setSearchMode(mode).build()); in setSearchMode() 327 update(mAdapterState.copy().setNavButtonMode(mode).build()); in setNavButtonMode() 359 update(mAdapterState.copy() in setMenuItems() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | CallDetailsFooterViewHolder.java | 39 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/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | InputPointers.java | 82 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/apps/Test/connectivity/sl4n/rapidjson/example/simplereader/ |
D | simplereader.cpp | 15 bool String(const char* str, SizeType length, bool copy) { in String() 16 cout << "String(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl; in String() 20 bool Key(const char* str, SizeType length, bool copy) { in Key() 21 cout << "Key(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl; in Key()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | tutorial.md | 278 A very special decision during design of RapidJSON is that, assignment of value does not copy the s… 290 … are often unnoticed. Especially when we need to create temporary object, copy it to another varia… 292 For example, if normal *copy* semantics was used: 306 ![Copy semantics makes a lots of copy operations.](diagram/move2.png) 346 1. copy-string: allocates a buffer, and then copy the source data into it. 349 Copy-string is always safe because it owns a copy of the data. Const-string can be used for storing… 353 Therefore, when we assign a copy-string, we call this overloaded `SetString()` with allocator: 419 …eateString)) to the array, you need to create a string Value by using the copy-string API. To avo… 423 contact.PushBack(Value("copy", document.GetAllocator()).Move(), // copy string 427 Value val("key", document.GetAllocator()); // copy string [all …]
|
D | sax.md | 70 bool String(const char* str, SizeType length, bool copy) { 71 cout << "String(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl; 75 bool Key(const char* str, SizeType length, bool copy) { 76 cout << "Key(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl; 109 bool String(const Ch* str, SizeType length, bool copy); 111 bool Key(const Ch* str, SizeType length, bool copy); 124 …copy)` is called when the `Reader` encounters a string. The first parameter is pointer to the stri… 426 …return out_.String(&buffer_.front(), length, true); // true = output handler need to copy the stri… 429 bool Key(const char* str, SizeType length, bool copy) { return String(str, length, copy); }
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduComposer.java | 354 mStack.copy(); in appendEncodedString() 467 temp = EncodedStringValue.copy(address); in appendAddressType() 565 mStack.copy(); in appendHeader() 647 mStack.copy(); in appendHeader() 929 mStack.copy(); in makeMessageBody() 957 mStack.copy(); in makeMessageBody() 1024 mStack.copy(); in makeMessageBody() 1089 mStack.copy(); in makeMessageBody() 1189 void copy() { in copy() method in PduComposer.BufferStack
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowWifiManager.java | 182 WifiConfiguration copy = Shadows.shadowOf(config).copy(); in makeCopy() local 183 copy.networkId = networkId; in makeCopy() 184 return copy; in makeCopy()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | FilterShowActivity.java | 609 ImagePreset copy = new ImagePreset(oldPreset); in removeFilterRepresentation() local 610 copy.removeFilter(filterRepresentation); in removeFilterRepresentation() 611 PrimaryImage.getImage().setPreset(copy, copy.getLastRepresentation(), true); in removeFilterRepresentation() 613 FilterRepresentation lastRepresentation = copy.getLastRepresentation(); in removeFilterRepresentation() 633 ImagePreset copy = new ImagePreset(oldPreset); in useFilterRepresentation() local 634 FilterRepresentation representation = copy.getRepresentation(filterRepresentation); in useFilterRepresentation() 636 filterRepresentation = filterRepresentation.copy(); in useFilterRepresentation() 637 copy.addFilter(filterRepresentation); in useFilterRepresentation() 646 copy.removeFilter(representation); in useFilterRepresentation() 647 copy.addFilter(filterRepresentation); in useFilterRepresentation() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 308 networkCapabilities = copy(nc); in TestNetworkAgent() 367 networkId, copy(networkCapabilities))); in fakeConnect() 368 nri.handler.post(() -> cb.onLinkPropertiesChanged(networkId, copy(linkProperties))); in fakeConnect() 401 cb.onLinkPropertiesChanged(networkId, copy(linkProperties)); in sendLinkProperties() 411 static NetworkCapabilities copy(NetworkCapabilities nc) { in copy() method in TestConnectivityManager 415 static LinkProperties copy(LinkProperties lp) { in copy() method in TestConnectivityManager
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | PackageItemInfo.java | 57 public PackageItemInfo(PackageItemInfo copy) { in PackageItemInfo() argument 58 this.packageName = copy.packageName; in PackageItemInfo() 59 this.category = copy.category; in PackageItemInfo()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/ |
D | ClipStorageTest.java | 94 File copy = mStorage.getFile(mSlot); in testRead() local 95 try(ClipStorageReader provider = mStorage.createReader(copy)) { in testRead() 123 File copy = mStorage.getFile(mSlot); in testReadConcurrently() local 125 try(ClipStorageReader reader = mStorage.createReader(copy)) { in testReadConcurrently()
|