/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | ConcatSplit.cpp | 24 static void concatConstructor(uint32_t numInputs, bool isV1_0, uint32_t rank, RandomOperation* op) { in concatConstructor() argument 26 op->inputs[i]->dimensions.resize(rank); in concatConstructor() 29 op->outputs[0]->dimensions.resize(rank); in concatConstructor() 31 int32_t axis = getUniform<int32_t>(0, rank - 1); in concatConstructor() 33 for (uint32_t i = 0; i < rank; i++) { in concatConstructor() 56 .constructor = [](TestOperandType, uint32_t rank, RandomOperation* op) { in DEFINE_OPERATION_SIGNATURE() argument 57 concatConstructor(/*numInputs=*/2, /*isV1_0=*/true, rank, op); in DEFINE_OPERATION_SIGNATURE() 69 .constructor = [](TestOperandType, uint32_t rank, RandomOperation* op) { in DEFINE_OPERATION_SIGNATURE() argument 70 concatConstructor(/*numInputs=*/3, /*isV1_0=*/true, rank, op); in DEFINE_OPERATION_SIGNATURE() 81 .constructor = [](TestOperandType, uint32_t rank, RandomOperation* op) { in DEFINE_OPERATION_SIGNATURE() argument [all …]
|
D | Selection.cpp | 27 static void embeddingLookupConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in embeddingLookupConstructor() argument 29 setFreeDimensions(op->inputs[1], rank); in embeddingLookupConstructor() 30 op->outputs[0]->dimensions.resize(rank); in embeddingLookupConstructor() 32 for (uint32_t i = 1; i < rank; i++) { in embeddingLookupConstructor() 64 static void hashtableLookupConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in hashtableLookupConstructor() argument 67 op->inputs[2]->dimensions.resize(rank); in hashtableLookupConstructor() 68 op->outputs[0]->dimensions.resize(rank); in hashtableLookupConstructor() 71 for (uint32_t i = 1; i < rank; i++) { in hashtableLookupConstructor() 115 static void gatherConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in gatherConstructor() argument 117 int32_t axis = getRandomAxis(rank); in gatherConstructor() [all …]
|
D | Reshape.cpp | 26 static void spaceToDepthConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in spaceToDepthConstructor() argument 27 NN_FUZZER_CHECK(rank == 4); in spaceToDepthConstructor() 81 static void depthToSpaceConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in depthToSpaceConstructor() argument 82 NN_FUZZER_CHECK(rank == 4); in depthToSpaceConstructor() 137 static void reshapeConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in reshapeConstructor() argument 138 setFreeDimensions(op->inputs[0], rank); in reshapeConstructor() 139 op->inputs[1]->dimensions = {rank}; in reshapeConstructor() 140 op->inputs[1]->randomBuffer.resize(rank); in reshapeConstructor() 143 for (uint32_t i = 0; i < rank; i++) { in reshapeConstructor() 169 static void batchToSpaceConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in batchToSpaceConstructor() argument [all …]
|
D | OperationSignatureUtils.h | 169 inline int32_t getRandomAxis(int32_t rank) { 170 return getUniform(-rank, rank - 1); 174 inline int32_t toPositiveAxis(int32_t axis, int32_t rank) { 175 return axis >= 0 ? axis : axis + rank; 245 inline void setFreeDimensions(const std::shared_ptr<RandomOperand>& op, uint32_t rank) { 246 op->dimensions.resize(rank); 247 for (uint32_t i = 0; i < rank; i++) op->dimensions[i] = RandomVariableType::FREE; 261 inline void sameDimensionOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { 262 setFreeDimensions(op->inputs[0], rank); 267 inline void sameShapeOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { [all …]
|
D | Reduce.cpp | 23 static void reduceOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in reduceOpConstructor() argument 24 setFreeDimensions(op->inputs[0], rank); in reduceOpConstructor() 34 int32_t dim = getRandomAxis(rank); in reduceOpConstructor() 36 reduce[toPositiveAxis(dim, rank)] = true; in reduceOpConstructor() 47 for (uint32_t i = 0; i < rank; i++) { in reduceOpConstructor() 102 static void singleAxisReduceOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in singleAxisReduceOpConstructor() argument 103 setFreeDimensions(op->inputs[0], rank); in singleAxisReduceOpConstructor() 106 int32_t axis = getRandomAxis(rank); in singleAxisReduceOpConstructor() 108 for (uint32_t i = 0; i < rank; i++) { in singleAxisReduceOpConstructor() 109 if (i != static_cast<uint32_t>(toPositiveAxis(axis, rank))) { in singleAxisReduceOpConstructor()
|
D | Normalization.cpp | 23 static void softmaxConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in softmaxConstructor() argument 24 sameDimensionOpConstructor(dataType, rank, op); in softmaxConstructor() 27 op->inputs[2]->setScalarValue<int32_t>(getRandomAxis(rank)); in softmaxConstructor() 91 static void l2normConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in l2normConstructor() argument 92 sameDimensionOpConstructor(dataType, rank, op); in l2normConstructor() 95 op->inputs[1]->setScalarValue<int32_t>(getRandomAxis(rank)); in l2normConstructor() 158 static void localResponseNormConstructor(TestOperandType dataType, uint32_t rank, in localResponseNormConstructor() argument 160 sameDimensionOpConstructor(dataType, rank, op); in localResponseNormConstructor() 163 op->inputs[5]->setScalarValue<int32_t>(getRandomAxis(rank)); in localResponseNormConstructor()
|
D | Broadcast.cpp | 25 static void broadcastOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in broadcastOpConstructor() argument 26 const uint32_t rank2 = getUniform(1u, rank), rankDiff = rank - rank2; in broadcastOpConstructor() 27 op->inputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 29 op->outputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 30 for (uint32_t i = 0; i < rank; i++) { in broadcastOpConstructor()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderGridOrganizer.java | 135 public boolean updateRankAndPos(ItemInfo item, int rank) { in updateRankAndPos() argument 136 Point pos = getPosForRank(rank); in updateRankAndPos() 137 if (!pos.equals(item.cellX, item.cellY) || rank != item.rank) { in updateRankAndPos() 138 item.rank = rank; in updateRankAndPos() 149 public Point getPosForRank(int rank) { in getPosForRank() argument 150 int pagePos = rank % mMaxItemsPerPage; in getPosForRank() 165 for (int i = start, rank = 0; i < end; i++, rank++) { in previewItemsForPage() 166 if (isItemInPreview(page, rank)) { in previewItemsForPage() 180 public boolean isItemInPreview(int rank) { in isItemInPreview() argument 181 return isItemInPreview(0, rank); in isItemInPreview() [all …]
|
D | FolderPagedView.java | 193 public View createAndAddViewForRank(ItemInfo item, int rank) { in createAndAddViewForRank() argument 199 views.add(rank, icon); in createAndAddViewForRank() 208 public void addViewForRank(View view, ItemInfo item, int rank) { in addViewForRank() argument 209 int pageNo = rank / mOrganizer.getMaxItemsPerPage(); in addViewForRank() 212 lp.setCellXY(mOrganizer.getPosForRank(rank)); in addViewForRank() 320 int rank = 0; in arrangeChildren() local 337 lp.setCellXY(mOrganizer.getPosForRank(rank)); in arrangeChildren() 340 if (mOrganizer.isItemInPreview(rank) && v instanceof BubbleTextView) { in arrangeChildren() 345 rank++; in arrangeChildren() 406 int rank = rankProvider.applyAsInt(container); in getViewInCurrentPage() local [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | NetworkRankerTest.kt | 69 private fun rank(vararg scores: TestScore) = in rank() method 79 assertEquals(cell, rank(cell)) in rank() 86 assertEquals(cell, rank(wifi, cell)) in testPreferBadWifi_oneCellOneEvaluatingWifi() 94 assertEquals(badWifi, rank(badWifi, cell)) in testYieldToBadWiFi_oneCellOneBadWiFi() 102 assertEquals(winner, rank(badWifi, cell)) in testPreferBadWifi_oneCellOneBadWifi() 109 assertEquals(cell, rank(portalWifi, cell)) in testPreferBadWifi_oneCellOneCaptivePortalWifi() 116 assertEquals(portalWifiClosed, rank(portalWifiClosed, cell)) in testYieldToBadWifi_oneCellOneCaptivePortalWifiThatClosed() 125 assertEquals(cell, rank(cell, avoidedWifi)) in testYieldToBadWifi_avoidUnvalidated() 134 assertEquals(primaryBadWifi, rank(primaryBadWifi, secondaryBadWifi, cell)) in testYieldToBadWiFi_oneCellTwoBadWiFi() 144 assertEquals(badWifi, rank(badWifi, neverValidatedWifi, cell)) in testYieldToBadWiFi_oneCellTwoBadWiFiOneNotAvoided() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/popup/ |
D | PopupPopulatorTest.java | 67 private String generateId(boolean isStatic, int rank) { in generateId() argument 68 return (isStatic ? "static" : "dynamic") + rank; in generateId() 96 int rank = shortcut.getRank(); in assertIsSorted() local 100 assertTrue(rank > lastStaticRank); in assertIsSorted() 101 lastStaticRank = rank; in assertIsSorted() 105 assertTrue(rank > lastDynamicRank); in assertIsSorted() 106 lastDynamicRank = rank; in assertIsSorted() 122 private ShortcutInfo createInfo(boolean isStatic, int rank) { in createInfo() argument 124 getApplicationContext(), generateId(isStatic, rank)) in createInfo() 125 .setRank(rank) in createInfo()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatPredictionController.java | 213 for (int rank = 0; rank < mHotSeatItemsCount; rank++) { in fillGapsWithPrediction() 215 mHotseat.getCellXFromOrder(rank), in fillGapsWithPrediction() 216 mHotseat.getCellYFromOrder(rank)); in fillGapsWithPrediction() 241 preparePredictionInfo(predictedItem, rank); in fillGapsWithPrediction() 322 mHotseat.getCellXFromOrder(info.rank), in pinPrediction() 323 mHotseat.getCellYFromOrder(info.rank)); in pinPrediction() 365 int rank = ((WorkspaceItemInfo) icon.getTag()).rank; in removePredictedApps() local 367 mHotseat.getCellXFromOrder(rank), mHotseat.getCellYFromOrder(rank), icon)); in removePredictedApps() 425 private void preparePredictionInfo(WorkspaceItemInfo itemInfo, int rank) { in preparePredictionInfo() argument 427 itemInfo.rank = rank; in preparePredictionInfo() [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
D | SearchResult.java | 69 public final int rank; field in SearchResult 97 rank = builder.mRank; in SearchResult() 108 return this.rank - searchResult.rank; in compareTo() 151 public Builder setRank(int rank) { in setRank() argument 152 if (rank >= 0 && rank <= 9) { in setRank() 153 mRank = rank; in setRank()
|
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_3/ |
D | rank.example.cpp | 7 namespace generated_tests::rank { namespace 54 namespace generated_tests::rank { namespace 135 namespace generated_tests::rank { namespace 182 namespace generated_tests::rank { namespace 229 namespace generated_tests::rank { namespace 310 namespace generated_tests::rank { namespace 357 namespace generated_tests::rank { namespace 438 namespace generated_tests::rank { namespace 485 namespace generated_tests::rank { namespace 566 namespace generated_tests::rank { namespace [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | VolumeItemParser.java | 68 int rank = 0; in loadAudioUsageItems() local 80 usage, rank, in loadAudioUsageItems() 84 rank++; in loadAudioUsageItems() 110 public VolumeItem(@AudioAttributes.AttributeUsage int usage, int rank, in VolumeItem() argument 113 mRank = rank; in VolumeItem()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ |
D | TestHelpers.kt | 34 rank: Int in createShareShortcutInfo() 35 ): ShareShortcutInfo = ShareShortcutInfo(createShortcutInfo(id, componentName, rank), componentName) in createShareShortcutInfo() 37 internal fun createShortcutInfo(id: String, componentName: ComponentName, rank: Int): ShortcutInfo { in createShareShortcutInfo() 43 .setRank(rank) in createShareShortcutInfo()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/csis/ |
D | csis_shim.cc | 81 const RawAddress& addr, int group_id, int group_size, int rank, const bluetooth::Uuid& uuid) { in device_available_cb() argument 82 csis_device_available_callback(addr, group_id, group_size, rank, uuid); in device_available_cb() 112 int rank, in OnDeviceAvailable() argument 119 rank); in OnDeviceAvailable() 120 topshim::rust::internal::device_available_cb(addr, group_id, group_size, rank, uuid); in OnDeviceAvailable()
|
/packages/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/common/ |
D | MetricsProcessor.java | 68 int rank = values.size() / 2; in computeStats() local 70 median = (values.get(rank - 1) + values.get(rank)) / 2; in computeStats() 72 median = values.get(rank); in computeStats()
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | BatchMatmul.cpp | 88 int rank = getNumberOfDimensions(inputShape); in transposeRowsColumns() local 89 params.perm_count = rank; in transposeRowsColumns() 90 for (int i = 0; i < rank - 2; ++i) { in transposeRowsColumns() 93 params.perm[rank - 2] = rank - 1; in transposeRowsColumns() 94 params.perm[rank - 1] = rank - 2; in transposeRowsColumns()
|
D | SVDF.cpp | 82 const int rank = getScalarData<int>(*GetInput(operation, operands, kRankParam)); in Prepare() local 85 NN_CHECK_EQ(num_filters % rank, 0u); in Prepare() 86 const uint32_t num_units = num_filters / rank; in Prepare() 169 const int rank = params_.rank_; in EvalFloat32() local 173 const int num_units = num_filters / rank; in EvalFloat32() 208 tflite::tensor_utils::ReductionSumVector(scratch, outputData, batch_size * num_units, rank); in EvalFloat32()
|
/packages/apps/Settings/src/com/android/settings/notification/history/ |
D | NotificationStation.java | 284 Ranking rank = new Ranking(); in updateNotificationsFromRanking() local 289 mRanking.getRanking(p.getKey(), rank); in updateNotificationsFromRanking() local 433 Ranking rank = new Ranking(); in updateFromRanking() local 437 mRanking.getRanking(info.key, rank); in updateFromRanking() 438 info.alerted = rank.getLastAudiblyAlertedMillis() > 0; in updateFromRanking() 439 info.visuallyInterruptive = rank.isTextChanged(); in updateFromRanking() 440 info.channel = rank.getChannel(); in updateFromRanking() 451 Ranking rank = new Ranking(); in generateRankingExtraText() local 452 if (mRanking != null && mRanking.getRanking(info.key, rank)) { in generateRankingExtraText() 464 .append(String.valueOf(rank.getConversationShortcutInfo())); in generateRankingExtraText() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | FolderInfo.java | 131 public void add(ItemInfo item, int rank, boolean animate) { in add() argument 136 rank = Utilities.boundToRange(rank, 0, getContents().size()); in add() 137 getContents().add(rank, item); in add() 139 mListeners.get(i).onAdd(item, rank); in add() 213 void onAdd(ItemInfo item, int rank); in onAdd() argument 256 .setRank(rank) in buildProto()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/noising/ |
D | Combinatorics.java | 387 int totalCap, int[] perTypeNumWindowList, int[] perTypeCapList, long rank) { in getReportSetBasedOnRank() argument 394 rank, in getReportSetBasedOnRank() 433 long rank, in getReportSetBasedOnRankRecursive() argument 445 rank, in getReportSetBasedOnRankRecursive() 462 if (currentNumStates > rank) { in getReportSetBasedOnRankRecursive() 474 rank, in getReportSetBasedOnRankRecursive() 480 rank -= currentNumStates; in getReportSetBasedOnRankRecursive()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | svdf.mod.py | 19 rank = 1 variable 20 units = int(features / rank) 31 rank_param = Int32Scalar("rank_param", rank)
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | OperationManager.cpp | 51 for (auto rank : supportedRanks) { in matchFilter() local 52 if (hasValue(filter.ranks, rank)) combinedRanks.push_back(rank); in matchFilter()
|