Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/content/pm/
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/ml/nn/common/
DMetaModel.cpp181 MetaModel::ReturnedSlice<T_SlicedModel> MetaModel::getSlice(Slice<T_SlicedModel>* slice) const { in getSlice()
182 CHECK(slice != nullptr); in getSlice()
183 if (slice->mState == SliceState::UNINITIALIZED) { in getSlice()
184 *slice = makeSlice<T_SlicedModel>(); in getSlice()
186 if (slice->mState == SliceState::INVALID) { in getSlice()
190 slice->mHidlModel, Mapper([slice](uint32_t slicedOperationIndex) { in getSlice()
191 return slice->mSlicedOperationIndexToOrigIndex.at(slicedOperationIndex); in getSlice()
195 Slice<hal::V1_0::Model>* slice) const;
197 Slice<hal::V1_1::Model>* slice) const;
199 Slice<hal::V1_2::Model>* slice) const;
[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/core/java/android/app/slice/
DISliceListener.aidl17 package android.app.slice;
19 import android.app.slice.ISliceManager;
20 import android.app.slice.Slice;
DSliceQuery.java17 package android.app.slice;
39 public static SliceItem getPrimaryIcon(Slice slice) { in getPrimaryIcon() argument
40 for (SliceItem item : slice.getItems()) { in getPrimaryIcon()
152 public static Stream<SliceItem> stream(SliceItem slice) { in stream() argument
154 items.add(slice); in stream()
DISliceManager.aidl17 package android.app.slice;
19 import android.app.slice.SliceSpec;
DSlice.java17 package android.app.slice;
429 public Builder addSubSlice(@NonNull Slice slice, @Nullable @SliceSubtype String subType) { in addSubSlice() argument
430 Objects.requireNonNull(slice); in addSubSlice()
431 mItems.add(new SliceItem(slice, SliceItem.FORMAT_SLICE, subType, in addSubSlice()
432 slice.getHints().toArray(new String[slice.getHints().size()]))); in addSubSlice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java39 import androidx.slice.Slice;
40 import androidx.slice.SliceItem;
41 import androidx.slice.SliceProvider;
42 import androidx.slice.SliceSpecs;
43 import androidx.slice.builders.ListBuilder;
44 import androidx.slice.core.SliceQuery;
122 Slice slice = mProvider.onBindSlice(mProvider.getUri()); in returnsValidSlice() local
123 SliceItem text = SliceQuery.find(slice, android.app.slice.SliceItem.FORMAT_TEXT, in returnsValidSlice()
124 android.app.slice.Slice.HINT_TITLE, in returnsValidSlice()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java19 import static android.app.slice.Slice.HINT_LIST_ITEM;
52 import androidx.slice.Slice;
53 import androidx.slice.SliceItem;
54 import androidx.slice.SliceViewManager;
55 import androidx.slice.core.SliceQuery;
56 import androidx.slice.widget.ListContent;
57 import androidx.slice.widget.RowContent;
58 import androidx.slice.widget.SliceContent;
59 import androidx.slice.widget.SliceLiveData;
278 android.app.slice.SliceItem.FORMAT_IMAGE); in showSlice()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java443 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats() local
445 if (slice != null) { in queryUsageStats()
446 return slice.getList(); in queryUsageStats()
475 ParceledListSlice<ConfigurationStats> slice = mService.queryConfigurationStats( in queryConfigurations() local
477 if (slice != null) { in queryConfigurations()
478 return slice.getList(); in queryConfigurations()
521 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats() local
523 if (slice != null) { in queryEventStats()
524 return slice.getList(); in queryEventStats()
732 final ParceledListSlice<AppStandbyInfo> slice = mService.getAppStandbyBuckets( in getAppStandbyBuckets() local
[all …]
/frameworks/base/core/java/android/service/autofill/
DInlinePresentation.java21 import android.app.slice.Slice;
105 @NonNull Slice slice, in InlinePresentation()
108 this.mSlice = slice; in InlinePresentation()
218 Slice slice = (Slice) in.readTypedObject(Slice.CREATOR); in InlinePresentation() local
221 this.mSlice = slice; in InlinePresentation()
/frameworks/base/cmds/statsd/src/metrics/
DValueMetricProducer.cpp413 for (auto& slice : mCurrentBaseInfo) { in resetBase() local
414 for (auto& baseInfo : slice.second) { in resetBase()
620 for (auto& slice : mCurrentSlicedBucket) { in accumulateEvents() local
621 const auto& whatKey = slice.first.getDimensionKeyInWhat(); in accumulateEvents()
988 for (const auto& slice : mCurrentSlicedBucket) { in flushCurrentBucketLocked() local
989 ValueBucket bucket = buildPartialBucket(bucketEndTime, slice.second); in flushCurrentBucketLocked()
993 auto& bucketList = mPastBuckets[slice.first]; in flushCurrentBucketLocked()
1101 for (const auto& slice : mCurrentSlicedBucket) { in appendToFullBucket() local
1102 if (hitFullBucketGuardRailLocked(slice.first)) { in appendToFullBucket()
1106 auto& interval = slice.second[0]; in appendToFullBucket()
[all …]
DGaugeMetricProducer.cpp509 for (const auto& slice : *mCurrentSlicedBucket) { in updateCurrentSlicedBucketForAnomaly()
510 if (slice.second.empty()) { in updateCurrentSlicedBucketForAnomaly()
513 const Value& value = slice.second.front().mFields->front().mValue; in updateCurrentSlicedBucketForAnomaly()
520 (*mCurrentSlicedBucketForAnomaly)[slice.first] = gaugeVal; in updateCurrentSlicedBucketForAnomaly()
567 for (const auto& slice : *mCurrentSlicedBucket) { in flushCurrentBucketLocked()
568 info.mGaugeAtoms = slice.second; in flushCurrentBucketLocked()
569 auto& bucketList = mPastBuckets[slice.first]; in flushCurrentBucketLocked()
572 slice.first.toString().c_str()); in flushCurrentBucketLocked()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java79 for (int slice : pattern) { in transmit()
80 if (slice <= 0) { in transmit()
83 totalXmitTime += slice; in transmit()
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java101 ByteBuffer tree = slice(output, 0, merkleTreeSize); in generateVerityTreeInternal()
154 ByteBuffer footer = slice(result.verityData, result.merkleTreeSize, in generateApkVerity()
188 mOutput = output.slice(); in BufferedDigester()
334 generateApkVerityDigestAtLeafLevel(apk, signatureInfo, salt, slice(output, in generateVerityTreeInternal()
339 ByteBuffer inputBuffer = slice(output, levelOffset[level + 1], levelOffset[level + 2]); in generateVerityTreeInternal()
340 ByteBuffer outputBuffer = slice(output, levelOffset[level], levelOffset[level + 1]); in generateVerityTreeInternal()
352 digester.consume(slice(output, 0, CHUNK_SIZE_BYTES)); in generateVerityTreeInternal()
490 private static ByteBuffer slice(ByteBuffer buffer, int begin, int end) { in slice() method in VerityBuilder
495 return b.slice(); in slice()
DByteBufferDataSource.java36 mBuf = buf.slice(); in ByteBufferDataSource()
61 region = mBuf.slice(); in feedIntoDataDigester()
/frameworks/ml/nn/common/operations/
DSlice.cpp28 namespace slice { namespace
193 NN_REGISTER_OPERATION(SLICE, slice::kOperationName, slice::validate, slice::prepare, slice::execute,
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/
Dslice.example.cpp7 namespace generated_tests::slice { namespace
74 namespace generated_tests::slice { namespace
175 namespace generated_tests::slice { namespace
242 namespace generated_tests::slice { namespace
343 namespace generated_tests::slice { namespace
410 namespace generated_tests::slice { namespace
511 namespace generated_tests::slice { namespace
578 namespace generated_tests::slice { namespace
679 namespace generated_tests::slice { namespace
746 namespace generated_tests::slice { namespace
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java43 import androidx.slice.Slice;
44 import androidx.slice.SliceProvider;
45 import androidx.slice.builders.ListBuilder;
46 import androidx.slice.builders.ListBuilder.RowBuilder;
47 import androidx.slice.builders.SliceAction;
202 Slice slice; in onBindSlice() local
213 slice = builder.build(); in onBindSlice()
216 return slice; in onBindSlice()
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp398 uint32_t slice = (uint32_t)__sync_fetch_and_add(&mtls->mSliceNum, 1); in walk_general_foreach() local
400 if (!SelectOuterSlice(mtls, &fep, slice)) { in walk_general_foreach()
425 uint32_t slice = (uint32_t)__sync_fetch_and_add(&mtls->mSliceNum, 1); in walk_2d_foreach() local
426 uint32_t yStart = mtls->start.y + slice * mtls->mSliceSize; in walk_2d_foreach()
450 uint32_t slice = (uint32_t)__sync_fetch_and_add(&mtls->mSliceNum, 1); in walk_1d_foreach() local
451 uint32_t xStart = mtls->start.x + slice * mtls->mSliceSize; in walk_1d_foreach()
546 uint32_t slice = (uint32_t)__sync_fetch_and_add(&mtls->mSliceNum, 1); in walk_1d_reduce() local
547 uint32_t xStart = mtls->start.x + slice * mtls->mSliceSize; in walk_1d_reduce()
585 uint32_t slice = (uint32_t)__sync_fetch_and_add(&mtls->mSliceNum, 1); in walk_2d_reduce() local
586 uint32_t yStart = mtls->start.y + slice * mtls->mSliceSize; in walk_2d_reduce()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DPinnedSliceStateTest.java1 package com.android.server.slice;
21 import android.app.slice.ISliceListener;
22 import android.app.slice.SliceProvider;
23 import android.app.slice.SliceSpec;
DSliceProviderPermissionsTest.java15 package com.android.server.slice;
30 import com.android.server.slice.SlicePermissionManager.PkgUser;
31 import com.android.server.slice.SliceProviderPermissions.SliceAuthority;
DPackageMatchingCacheTest.java15 package com.android.server.slice;
30 import com.android.server.slice.SliceManagerService.PackageMatchingCache;
/frameworks/ml/nn/common/include/
DMetaModel.h122 ReturnedSlice<T_SlicedModel> getSlice(Slice<T_SlicedModel>* slice) const;
135 Slice<T_SlicedModel>* slice,
/frameworks/base/services/core/java/com/android/server/slice/
DPinnedSliceState.java15 package com.android.server.slice;
17 import android.app.slice.SliceProvider;
18 import android.app.slice.SliceSpec;

1234