Home
last modified time | relevance | path

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

1234

/frameworks/ml/nn/runtime/test/generated/tests/
Dslice.mod.py.cpp5 namespace slice { namespace
12 TEST_F(GeneratedTests, slice) { in TEST_F() argument
13 execute(slice::CreateModel, in TEST_F()
14 slice::is_ignored, in TEST_F()
15 slice::get_examples()); in TEST_F()
17 TEST_AVAILABLE_SINCE(V1_2, slice, slice::CreateModel) in TEST_AVAILABLE_SINCE() argument
20 execute(slice::CreateModel_relaxed, in TEST_AVAILABLE_SINCE()
21 slice::is_ignored_relaxed, in TEST_AVAILABLE_SINCE()
22 slice::get_examples_relaxed()); in TEST_AVAILABLE_SINCE()
26 execute(slice::CreateModel_float16, in TEST_F()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DNioByteString.java56 this.buffer = buffer.slice().order(ByteOrder.nativeOrder()); in NioByteString()
66 return ByteString.copyFrom(buffer.slice()); in writeReplace()
97 ByteBuffer slice = slice(beginIndex, endIndex); in substring() local
98 return new NioByteString(slice); in substring()
109 ByteBuffer slice = buffer.slice(); in copyToInternal() local
110 slice.position(sourceOffset); in copyToInternal()
111 slice.get(target, targetOffset, numberToCopy); in copyToInternal()
116 target.put(buffer.slice()); in copyTo()
139 ByteBufferWriter.write(slice(sourceOffset, sourceOffset + numberToWrite), out); in writeToInternal()
144 output.writeLazy(buffer.slice()); in writeTo()
[all …]
/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/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbricked.rs78 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;
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;
128 slice = rsGetElementAt_uint(bricks, slice_pos + off_neg_z);
[all …]
/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;
106 Slice slice = mProvider.onBindSlice(mProvider.getUri()); in returnsValidSlice() local
107 SliceItem text = SliceQuery.find(slice, android.app.slice.SliceItem.FORMAT_TEXT, in returnsValidSlice()
108 android.app.slice.Slice.HINT_TITLE, in returnsValidSlice()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java311 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/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java19 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/cmds/statsd/src/metrics/
DValueMetricProducer.cpp363 for (auto& slice : mCurrentSlicedBucket) { in resetBase() local
364 for (auto& interval : slice.second) { in resetBase()
556 for (auto& slice : mCurrentSlicedBucket) { in accumulateEvents() local
557 bool presentInPulledData = mMatchedMetricDimensionKeys.find(slice.first) in accumulateEvents()
560 for (auto& interval : slice.second) { in accumulateEvents()
872 for (const auto& slice : mCurrentSlicedBucket) { in flushCurrentBucketLocked() local
873 ValueBucket bucket = buildPartialBucket(bucketEndTime, slice.second); in flushCurrentBucketLocked()
877 auto& bucketList = mPastBuckets[slice.first]; in flushCurrentBucketLocked()
962 for (const auto& slice : mCurrentSlicedBucket) { in appendToFullBucket() local
963 if (hitFullBucketGuardRailLocked(slice.first)) { in appendToFullBucket()
[all …]
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java122 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()
DByteBufferDataSource.java36 mBuf = buf.slice(); in ByteBufferDataSource()
61 region = mBuf.slice(); in feedIntoDataDigester()
/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/cmds/statsd/src/condition/
DSimpleConditionTracker.cpp387 for (const auto& slice : mSlicedConditionState) { in isConditionMet() local
389 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
390 if (slice.first.contains(key)) { in isConditionMet()
395 filterValues(dimensionFields, slice.first.getValues(), &dimensionKey); in isConditionMet()
398 dimensionsKeySet.insert(slice.first); in isConditionMet()
443 for (const auto& slice : mSlicedConditionState) { in getMetConditionDimension() local
445 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in getMetConditionDimension()
451 filterValues(dimensionFields, slice.first.getValues(), &dimensionKey); in getMetConditionDimension()
454 dimensionsKeySet.insert(slice.first); in getMetConditionDimension()
/frameworks/base/core/java/android/app/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;
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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Drepeated_composite_container.cc231 PyObject* Subscript(RepeatedCompositeContainer* self, PyObject* slice) { in Subscript() argument
237 return PyObject_GetItem(self->child_messages, slice); in Subscript()
241 PyObject* slice, in AssignSubscript() argument
255 slice, in AssignSubscript()
265 if (PySlice_Check(slice)) { in AssignSubscript()
267 if (PySlice_GetIndicesEx(slice, in AssignSubscript()
269 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in AssignSubscript()
275 } else if (PyInt_Check(slice) || PyLong_Check(slice)) { in AssignSubscript()
276 from = to = PyLong_AsLong(slice); in AssignSubscript()
Drepeated_composite_container.h142 PyObject* Subscript(RepeatedCompositeContainer* self, PyObject* slice);
148 PyObject* slice,
/frameworks/ml/nn/common/operations/
DSlice.cpp24 namespace slice { namespace
172 NN_REGISTER_OPERATION(SLICE, slice::kOperationName, slice::validate, slice::prepare, slice::execute,
/frameworks/ml/nn/runtime/
DExecutionPlan.cpp1189 void initializeSlice(Slice<T_SlicedModel>* slice);
1193 Slice<T_SlicedModel>* slice) { in getSlice() argument
1194 CHECK(slice != nullptr); in getSlice()
1195 if (slice->mState == SliceState::UNINITIALIZED) { in getSlice()
1196 initializeSlice(slice); in getSlice()
1198 if (slice->mState == SliceState::INVALID) { in getSlice()
1202 slice->mHidlModel, [slice](uint32_t slicedOperationIndex) { in getSlice()
1203 return slice->mSlicedOperationIndexToOrigIndex.at(slicedOperationIndex); in getSlice()
1247 void PlanModelSlicer::initializeSlice(Slice<T_SlicedModel>* slice) { in initializeSlice() argument
1248 using SlicedOperand = std::remove_pointer_t<decltype(slice->mHidlModel.operands.data())>; in initializeSlice()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DPinnedSliceStateTest.java1 package com.android.server.slice;
18 import android.app.slice.ISliceListener;
19 import android.app.slice.SliceProvider;
20 import android.app.slice.SliceSpec;
DPackageMatchingCacheTest.java15 package com.android.server.slice;
30 import com.android.server.slice.SliceManagerService.PackageMatchingCache;
DSliceProviderPermissionsTest.java15 package com.android.server.slice;
30 import com.android.server.slice.SlicePermissionManager.PkgUser;
31 import com.android.server.slice.SliceProviderPermissions.SliceAuthority;
/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;
214 Slice slice; in onBindSlice() local
225 slice = builder.build(); in onBindSlice()
228 return slice; in onBindSlice()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardSliceViewTest.java26 import androidx.slice.SliceProvider;
27 import androidx.slice.SliceSpecs;
28 import androidx.slice.builders.ListBuilder;
/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 …]

1234