Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 143) sorted by relevance

123456

/frameworks/libs/net/common/netd/libnetdutils/
DMemBlockTest.cpp37 for (Slice slice = result.get(); !slice.empty(); slice = drop(slice, 1)) { in makeArbitraryMemBlock() local
38 slice.base()[0] = ARBITRARY_VALUE; in makeArbitraryMemBlock()
43 void checkAllZeros(Slice slice) { in checkAllZeros() argument
44 for (; !slice.empty(); slice = drop(slice, 1)) { in checkAllZeros()
45 EXPECT_EQ(0U, slice.base()[0]); in checkAllZeros()
50 Slice slice = block.get(); in checkArbitraryMemBlock() local
51 EXPECT_EQ(expectedSize, slice.size()); in checkArbitraryMemBlock()
52 EXPECT_NE(nullptr, slice.base()); in checkArbitraryMemBlock()
53 for (; !slice.empty(); slice = drop(slice, 1)) { in checkArbitraryMemBlock()
54 EXPECT_EQ(ARBITRARY_VALUE, slice.base()[0]); in checkArbitraryMemBlock()
[all …]
DSlice.cpp54 std::ostream& operator<<(std::ostream& os, const Slice& slice) { in operator <<() argument
55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base()) in operator <<()
56 << ", limit: " << reinterpret_cast<void*>(slice.limit()) << ", size: 0x" in operator <<()
57 << slice.size() << "]" << std::dec; in operator <<()
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/
DParceledListSliceTest.java40 ParceledListSlice<SmallObject> slice; in testSmallList() local
46 slice = parcel.readParcelable(getClass().getClassLoader()); in testSmallList()
51 assertNotNull(slice); in testSmallList()
52 assertNotNull(slice.getList()); in testSmallList()
53 assertEquals(objectCount, slice.getList().size()); in testSmallList()
56 assertEquals(i * 2, slice.getList().get(i).mFieldA); in testSmallList()
57 assertEquals((i * 2) + 1, slice.getList().get(i).mFieldB); in testSmallList()
91 ParceledListSlice<LargeObject> slice; in testLargeList() local
97 slice = parcel.readParcelable(getClass().getClassLoader()); in testLargeList()
102 assertNotNull(slice); in testLargeList()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceViewController.java19 import static android.app.slice.Slice.HINT_LIST_ITEM;
33 import androidx.slice.Slice;
34 import androidx.slice.SliceViewManager;
35 import androidx.slice.widget.ListContent;
36 import androidx.slice.widget.RowContent;
37 import androidx.slice.widget.SliceContent;
38 import androidx.slice.widget.SliceLiveData;
90 public void onChanged(Slice slice) {
91 mSlice = slice;
92 showSlice(slice);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanelSlicesAdapter.java19 import static android.app.slice.Slice.HINT_ERROR;
20 import static android.app.slice.SliceItem.FORMAT_SLICE;
32 import androidx.slice.Slice;
33 import androidx.slice.SliceItem;
34 import androidx.slice.widget.SliceView;
115 final Slice slice = sliceLiveData.getValue(); in onBind() local
118 if (slice == null || !isValidSlice(slice)) { in onBind()
125 private boolean isValidSlice(Slice slice) { in isValidSlice() argument
126 if (slice.getHints().contains(HINT_ERROR)) { in isValidSlice()
129 for (SliceItem item : slice.getItems()) { in isValidSlice()
DVolumePanelDialog.java44 import androidx.slice.Slice;
45 import androidx.slice.SliceMetadata;
46 import androidx.slice.widget.EventInfo;
47 import androidx.slice.widget.SliceLiveData;
144 sliceLiveData.observe(this, slice -> { in loadAllSlices()
148 Log.d(TAG, "received slice: " + (slice == null ? null : slice.getUri())); in loadAllSlices()
149 final SliceMetadata metadata = SliceMetadata.from(getContext(), slice); in loadAllSlices()
150 if (slice == null || metadata.isErrorSlice()) { in loadAllSlices()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DParceledListSliceTest.java45 ParceledListSlice<SmallObject> slice; in testSmallList() local
51 slice = parcel.readParcelable(getClass().getClassLoader()); in testSmallList()
56 assertNotNull(slice); in testSmallList()
57 assertNotNull(slice.getList()); in testSmallList()
58 assertEquals(objectCount, slice.getList().size()); in testSmallList()
61 assertEquals(i * 2, slice.getList().get(i).mFieldA); in testSmallList()
62 assertEquals((i * 2) + 1, slice.getList().get(i).mFieldB); in testSmallList()
96 ParceledListSlice<LargeObject> slice; in testLargeList() local
102 slice = parcel.readParcelable(getClass().getClassLoader()); in testLargeList()
107 assertNotNull(slice); in testLargeList()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbricked.rscript78 uint slice;
89 slice = 0x80000000 & rsGetElementAt_uint(bricks, slice_pos - BRICK_SIZE);
90 out |= slice >> 31;
93 slice = 1 & rsGetElementAt_uint(bricks, slice_pos + BRICK_SIZE);
94 out |= slice << 31;
98 int off_neg_y = -1; // simple case -1 slice;
107 slice = rsGetElementAt_uint(bricks, slice_pos + off_neg_y);
108 out |= slice;
118 slice = rsGetElementAt_uint(bricks, slice_pos + off_pos_y);
119 out |= slice;
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/provider/
DDemo.kt17 package com.android.settingslib.spa.slice.provider
24 import androidx.slice.Slice
25 import androidx.slice.SliceManager
26 import androidx.slice.builders.ListBuilder
27 import androidx.slice.builders.SliceAction
29 import com.android.settingslib.spa.slice.createBroadcastPendingIntent
30 import com.android.settingslib.spa.slice.createBrowsePendingIntent
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardSliceViewTest.java25 import androidx.slice.Slice;
26 import androidx.slice.SliceProvider;
27 import androidx.slice.SliceSpecs;
28 import androidx.slice.builders.ListBuilder;
29 import androidx.slice.widget.RowContent;
66 Slice slice = builder.build(); in showSlice_notifiesListener() local
67 RowContent rowContent = new RowContent(slice.getItemArray()[0], 0); in showSlice_notifiesListener()
92 Slice slice = builder.build(); in hasHeader_readsSliceData() local
93 RowContent rowContent = new RowContent(slice.getItemArray()[0], 0); in hasHeader_readsSliceData()
/frameworks/base/core/java/android/service/credentials/
DCredentialEntry.java24 import android.app.slice.Slice;
85 @NonNull Slice slice) { in CredentialEntry() argument
91 mSlice = requireNonNull(slice, "slice must not be null"); in CredentialEntry()
108 @NonNull Slice slice) { in CredentialEntry() argument
116 mSlice = requireNonNull(slice, "slice must not be null"); in CredentialEntry()
129 public CredentialEntry(@NonNull String type, @NonNull Slice slice) { in CredentialEntry() argument
132 mSlice = requireNonNull(slice, "slice must not be null"); in CredentialEntry()
DAction.java21 import android.app.slice.Slice;
58 public Action(@NonNull Slice slice) { in Action() argument
59 Objects.requireNonNull(slice, "slice must not be null"); in Action()
60 mSlice = slice; in Action()
DCreateEntry.java21 import android.app.slice.Slice;
79 @NonNull Slice slice) { in CreateEntry()
80 this.mSlice = slice; in CreateEntry()
DRemoteEntry.java21 import android.app.slice.Slice;
86 @NonNull Slice slice) { in RemoteEntry()
87 this.mSlice = slice; in RemoteEntry()
/frameworks/base/core/java/android/credentials/ui/
DEntry.java24 import android.app.slice.Slice;
49 Slice slice = in.readTypedObject(Slice.CREATOR); in Entry() local
55 mSlice = slice; in Entry()
64 public Entry(@NonNull String key, @NonNull String subkey, @NonNull Slice slice) { in Entry() argument
67 mSlice = slice; in Entry()
73 public Entry(@NonNull String key, @NonNull String subkey, @NonNull Slice slice, in Entry() argument
75 this(key, subkey, slice); in Entry()
DAuthenticationEntry.java24 import android.app.slice.Slice;
80 public AuthenticationEntry(@NonNull String key, @NonNull String subkey, @NonNull Slice slice, in AuthenticationEntry() argument
84 mSlice = slice; in AuthenticationEntry()
91 public AuthenticationEntry(@NonNull String key, @NonNull String subkey, @NonNull Slice slice, in AuthenticationEntry() argument
93 this(key, subkey, slice, status); in AuthenticationEntry()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/
DSpaSliceProvider.kt17 package com.android.settingslib.spa.slice
22 import androidx.slice.Slice
23 import androidx.slice.SliceProvider
67 override fun onChanged(slice: Slice?) { in onChanged()
68 val uri = slice?.uri ?: return in onChanged()
/frameworks/base/core/java/android/app/slice/
DISliceListener.aidl17 package android.app.slice;
19 import android.app.slice.ISliceManager;
20 import android.app.slice.Slice;
/frameworks/base/core/java/android/service/autofill/
DInlinePresentation.java21 import android.app.slice.Slice;
86 public static InlinePresentation createTooltipPresentation(@NonNull Slice slice, in createTooltipPresentation() argument
88 return new InlinePresentation(slice, spec, /* pinned */ false); in createTooltipPresentation()
129 @NonNull Slice slice, in InlinePresentation()
132 this.mSlice = slice; in InlinePresentation()
247 Slice slice = (Slice) in.readTypedObject(Slice.CREATOR); in InlinePresentation() local
250 this.mSlice = slice; in InlinePresentation()
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java101 ByteBuffer tree = slice(output, 0, merkleTreeSize); in generateVerityTreeInternal()
142 ByteBuffer tree = slice(output, 0, merkleTreeSize); in generateFsVerityRootHash()
163 ByteBuffer footer = slice(result.verityData, result.merkleTreeSize, in generateApkVerity()
197 mOutput = output.slice(); in BufferedDigester()
343 slice(output, levelOffset[levelOffset.length - 2], in generateFsVerityTreeInternal()
348 ByteBuffer inputBuffer = slice(output, levelOffset[level + 1], levelOffset[level + 2]); in generateFsVerityTreeInternal()
349 ByteBuffer outputBuffer = slice(output, levelOffset[level], levelOffset[level + 1]); in generateFsVerityTreeInternal()
361 digester.consume(slice(output, 0, CHUNK_SIZE_BYTES)); in generateFsVerityTreeInternal()
373 generateApkVerityDigestAtLeafLevel(apk, signatureInfo, salt, slice(output, in generateVerityTreeInternal()
378 ByteBuffer inputBuffer = slice(output, levelOffset[level + 1], levelOffset[level + 2]); in generateVerityTreeInternal()
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/presenter/
DDemo.kt17 package com.android.settingslib.spa.slice.presenter in <lambda>()
26 import androidx.slice.widget.SliceLiveData in <lambda>()
27 import androidx.slice.widget.SliceView in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java41 import androidx.slice.Slice;
42 import androidx.slice.SliceItem;
43 import androidx.slice.SliceProvider;
44 import androidx.slice.SliceSpecs;
45 import androidx.slice.builders.ListBuilder;
46 import androidx.slice.core.SliceQuery;
129 Slice slice = mProvider.onBindSlice(mProvider.getUri()); in returnsValidSlice() local
130 SliceItem text = SliceQuery.find(slice, android.app.slice.SliceItem.FORMAT_TEXT, in returnsValidSlice()
131 android.app.slice.Slice.HINT_TITLE, in returnsValidSlice()
/frameworks/libs/net/common/device/com/android/net/module/util/netlink/
DNduseroptMessage.java91 final ByteBuffer slice = buf.slice(); in NduseroptMessage() local
92 slice.limit(opts_len); in NduseroptMessage()
93 option = NdOption.parse(slice); in NduseroptMessage()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java466 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats() local
468 if (slice != null) { in queryUsageStats()
469 return slice.getList(); in queryUsageStats()
498 ParceledListSlice<ConfigurationStats> slice = mService.queryConfigurationStats( in queryConfigurations() local
500 if (slice != null) { in queryConfigurations()
501 return slice.getList(); in queryConfigurations()
544 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats() local
546 if (slice != null) { in queryEventStats()
547 return slice.getList(); in queryEventStats()
768 final ParceledListSlice<AppStandbyInfo> slice = mService.getAppStandbyBuckets( in getAppStandbyBuckets() local
[all …]
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java54 ParceledListSlice<PackageInfo> slice = mIBics.getBackgroundInstalledPackages( in testGetMockBackgroundInstalledPackages() local
57 assertThat(slice).isNotNull(); in testGetMockBackgroundInstalledPackages()
59 var packageList = slice.getList(); in testGetMockBackgroundInstalledPackages()

123456