/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ParceledListSliceTest.java | 40 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/ |
D | MetaModel.cpp | 181 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/ |
D | bricked.rscript | 78 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/ |
D | ISliceListener.aidl | 17 package android.app.slice; 19 import android.app.slice.ISliceManager; 20 import android.app.slice.Slice;
|
D | SliceQuery.java | 17 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()
|
D | Slice.java | 17 package android.app.slice; 430 public Builder addSubSlice(@NonNull Slice slice, @Nullable @SliceSubtype String subType) { in addSubSlice() argument 431 Preconditions.checkNotNull(slice); in addSubSlice() 432 mItems.add(new SliceItem(slice, SliceItem.FORMAT_SLICE, subType, in addSubSlice() 433 slice.getHints().toArray(new String[slice.getHints().size()]))); in addSubSlice()
|
D | ISliceManager.aidl | 17 package android.app.slice; 19 import android.app.slice.SliceSpec;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 39 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; 113 Slice slice = mProvider.onBindSlice(mProvider.getUri()); in returnsValidSlice() local 114 SliceItem text = SliceQuery.find(slice, android.app.slice.SliceItem.FORMAT_TEXT, in returnsValidSlice() 115 android.app.slice.Slice.HINT_TITLE, in returnsValidSlice()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSliceView.java | 19 import static android.app.slice.Slice.HINT_LIST_ITEM; 50 import androidx.slice.Slice; 51 import androidx.slice.SliceItem; 52 import androidx.slice.SliceViewManager; 53 import androidx.slice.core.SliceQuery; 54 import androidx.slice.widget.ListContent; 55 import androidx.slice.widget.RowContent; 56 import androidx.slice.widget.SliceContent; 57 import androidx.slice.widget.SliceLiveData; 268 android.app.slice.SliceItem.FORMAT_IMAGE); in showSlice() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 311 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats() local 313 if (slice != null) { in queryUsageStats() 314 return slice.getList(); in queryUsageStats() 340 ParceledListSlice<ConfigurationStats> slice = mService.queryConfigurationStats( in queryConfigurations() local 342 if (slice != null) { in queryConfigurations() 343 return slice.getList(); in queryConfigurations() 383 ParceledListSlice<EventStats> slice = mService.queryEventStats(intervalType, beginTime, in queryEventStats() local 385 if (slice != null) { in queryEventStats() 386 return slice.getList(); in queryEventStats() 581 final ParceledListSlice<AppStandbyInfo> slice = mService.getAppStandbyBuckets( in getAppStandbyBuckets() local [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 358 for (auto& slice : mCurrentSlicedBucket) { in resetBase() local 359 for (auto& interval : slice.second) { in resetBase() 551 for (auto& slice : mCurrentSlicedBucket) { in accumulateEvents() local 552 bool presentInPulledData = mMatchedMetricDimensionKeys.find(slice.first) in accumulateEvents() 555 for (auto& interval : slice.second) { in accumulateEvents() 867 for (const auto& slice : mCurrentSlicedBucket) { in flushCurrentBucketLocked() local 868 ValueBucket bucket = buildPartialBucket(bucketEndTime, slice.second); in flushCurrentBucketLocked() 872 auto& bucketList = mPastBuckets[slice.first]; in flushCurrentBucketLocked() 957 for (const auto& slice : mCurrentSlicedBucket) { in appendToFullBucket() local 958 if (hitFullBucketGuardRailLocked(slice.first)) { in appendToFullBucket() [all …]
|
D | GaugeMetricProducer.cpp | 513 for (const auto& slice : *mCurrentSlicedBucket) { in updateCurrentSlicedBucketForAnomaly() 514 if (slice.second.empty()) { in updateCurrentSlicedBucketForAnomaly() 517 const Value& value = slice.second.front().mFields->front().mValue; in updateCurrentSlicedBucketForAnomaly() 524 (*mCurrentSlicedBucketForAnomaly)[slice.first] = gaugeVal; in updateCurrentSlicedBucketForAnomaly() 571 for (const auto& slice : *mCurrentSlicedBucket) { in flushCurrentBucketLocked() 572 info.mGaugeAtoms = slice.second; in flushCurrentBucketLocked() 573 auto& bucketList = mPastBuckets[slice.first]; in flushCurrentBucketLocked() 576 slice.first.toString().c_str()); in flushCurrentBucketLocked()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 383 for (const auto& slice : mSlicedConditionState) { in isConditionMet() local 385 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet() 386 if (slice.first.contains(key)) { in isConditionMet() 391 filterValues(dimensionFields, slice.first.getValues(), &dimensionKey); in isConditionMet() 394 dimensionsKeySet.insert(slice.first); in isConditionMet() 439 for (const auto& slice : mSlicedConditionState) { in getMetConditionDimension() local 441 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in getMetConditionDimension() 447 filterValues(dimensionFields, slice.first.getValues(), &dimensionKey); in getMetConditionDimension() 450 dimensionsKeySet.insert(slice.first); in getMetConditionDimension()
|
/frameworks/base/core/java/android/util/apk/ |
D | VerityBuilder.java | 122 ByteBuffer tree = slice(output, 0, merkleTreeSize); in generateVerityTreeInternal() 178 ByteBuffer footer = slice(result.verityData, result.merkleTreeSize, in generateApkVerity() 212 mOutput = output.slice(); in BufferedDigester() 359 generateApkVerityDigestAtLeafLevel(apk, signatureInfo, salt, slice(output, in generateVerityTreeInternal() 362 generateFsVerityDigestAtLeafLevel(apk, slice(output, in generateVerityTreeInternal() 368 ByteBuffer inputBuffer = slice(output, levelOffset[level + 1], levelOffset[level + 2]); in generateVerityTreeInternal() 369 ByteBuffer outputBuffer = slice(output, levelOffset[level], levelOffset[level + 1]); in generateVerityTreeInternal() 381 digester.consume(slice(output, 0, CHUNK_SIZE_BYTES)); in generateVerityTreeInternal() 519 private static ByteBuffer slice(ByteBuffer buffer, int begin, int end) { in slice() method in VerityBuilder 524 return b.slice(); in slice()
|
D | ByteBufferDataSource.java | 36 mBuf = buf.slice(); in ByteBufferDataSource() 61 region = mBuf.slice(); in feedIntoDataDigester()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 79 for (int slice : pattern) { in transmit() 80 if (slice <= 0) { in transmit() 83 totalXmitTime += slice; in transmit()
|
/frameworks/ml/nn/common/operations/ |
D | Slice.cpp | 28 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/ |
D | slice.example.cpp | 7 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/ |
D | KeyguardSliceProvider.java | 43 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; 211 Slice slice; in onBindSlice() local 222 slice = builder.build(); in onBindSlice() 225 return slice; in onBindSlice()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuCore.cpp | 398 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/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardSliceViewTest.java | 26 import androidx.slice.SliceProvider; 27 import androidx.slice.SliceSpecs; 28 import androidx.slice.builders.ListBuilder;
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | PinnedSliceStateTest.java | 1 package com.android.server.slice; 20 import android.app.slice.ISliceListener; 21 import android.app.slice.SliceProvider; 22 import android.app.slice.SliceSpec;
|
D | SliceProviderPermissionsTest.java | 15 package com.android.server.slice; 30 import com.android.server.slice.SlicePermissionManager.PkgUser; 31 import com.android.server.slice.SliceProviderPermissions.SliceAuthority;
|
D | PackageMatchingCacheTest.java | 15 package com.android.server.slice; 30 import com.android.server.slice.SliceManagerService.PackageMatchingCache;
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | PinnedSliceState.java | 15 package com.android.server.slice; 17 import android.app.slice.SliceProvider; 18 import android.app.slice.SliceSpec;
|