/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/privacy/ |
D | MicQcPanelTest.java | 100 List<PrivacyDialog.PrivacyElement> elements = Collections.emptyList(); in testGetQCItem_micDisabled_noPrivacyItems_returnsOnlyMicMutedRow() local 101 when(mMicPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_micDisabled_noPrivacyItems_returnsOnlyMicMutedRow() 112 List<PrivacyDialog.PrivacyElement> elements = Collections.emptyList(); in testGetQCItem_micEnabled_noPrivacyItems_returnsOnlyMicMutedRow() local 113 when(mMicPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_micEnabled_noPrivacyItems_returnsOnlyMicMutedRow() 124 List<PrivacyDialog.PrivacyElement> elements = in testGetQCItem_micEnabled_onlyOneActivePrivacyItem_firstRowMicEnabled() local 126 when(mMicPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_micEnabled_onlyOneActivePrivacyItem_firstRowMicEnabled() 139 List<PrivacyDialog.PrivacyElement> elements = in testGetQCItem_micEnabled_onlyOneActivePrivacyItem_secondRowActiveApp() local 141 when(mMicPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_micEnabled_onlyOneActivePrivacyItem_secondRowActiveApp() 152 List<PrivacyDialog.PrivacyElement> elements = in testGetQCItem_micDisabled_onlyOneInactivePhonePrivacyItem_firstRowMicDisabled() local 154 when(mMicPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_micDisabled_onlyOneInactivePhonePrivacyItem_firstRowMicDisabled() [all …]
|
D | CameraQcPanelTest.java | 100 List<PrivacyDialog.PrivacyElement> elements = Collections.emptyList(); in testGetQCItem_cameraDisabled_noPrivacyItems_returnsOnlyCameraOffRow() local 101 when(mCameraPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_cameraDisabled_noPrivacyItems_returnsOnlyCameraOffRow() 112 List<PrivacyDialog.PrivacyElement> elements = Collections.emptyList(); in testGetQCItem_cameraEnabled_noPrivacyItems_returnsOnlyCameraOffRow() local 113 when(mCameraPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_cameraEnabled_noPrivacyItems_returnsOnlyCameraOffRow() 124 List<PrivacyDialog.PrivacyElement> elements = in testGetQCItem_cameraEnabled_onlyOneActivePrivacyItem_firstRowCameraEnabled() local 126 when(mCameraPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_cameraEnabled_onlyOneActivePrivacyItem_firstRowCameraEnabled() 139 List<PrivacyDialog.PrivacyElement> elements = in testGetQCItem_cameraEnabled_onlyOneActivePrivacyItem_secondRowActiveApp() local 141 when(mCameraPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_cameraEnabled_onlyOneActivePrivacyItem_secondRowActiveApp() 153 List<PrivacyDialog.PrivacyElement> elements = in testGetQCItem_cameraDisabled_onlyOneInactivePhonePrivacyItem_firstRowCameraDisabled() local 155 when(mCameraPrivacyElementsProvider.getPrivacyElements()).thenReturn(elements); in testGetQCItem_cameraDisabled_onlyOneInactivePhonePrivacyItem_firstRowCameraDisabled() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | AbstractKeyboardBuilder.java | 98 void setRowAt(final int row, final E[] elements) { in setRowAt() argument 105 newRows[rowIndex] = elements; in setRowAt() 119 final E[] elements = getRowAt(row); in setElementAt() local 125 if (columnIndex >= elements.length + 1) { in setElementAt() 128 final E[] newElements = Arrays.copyOf(elements, elements.length + 1); in setElementAt() 131 elements.length - columnIndex); in setElementAt() 138 final E[] newElements = (columnIndex < elements.length) ? elements in setElementAt() 139 : Arrays.copyOf(elements, columnIndex + 1); in setElementAt()
|
D | ActualKeyboardBuilder.java | 61 ArrayList<Key> elements = new ArrayList<>(); in buildKeyboard() local 67 rows.add(elements); in buildKeyboard() 68 elements = new ArrayList<>(); in buildKeyboard() 70 elements.add(key); in buildKeyboard() 72 rows.add(elements); // Add the last row. in buildKeyboard()
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
D | NdefMessageParser.java | 52 List<ParsedNdefRecord> elements = new ArrayList<ParsedNdefRecord>(); in getRecords() local 55 elements.add(SmartPoster.parse(record)); in getRecords() 57 elements.add(UriRecord.parse(record)); in getRecords() 59 elements.add(TextRecord.parse(record)); in getRecords() 61 elements.add(ImageRecord.parse(record)); in getRecords() 63 elements.add(VCardRecord.parse(record)); in getRecords() 65 elements.add(MimeRecord.parse(record)); in getRecords() 67 elements.add(new UnknownRecord()); in getRecords() 70 return elements; in getRecords()
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | Sets.java | 68 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() argument 69 int capacity = elements.length * 4 / 3 + 1; in newHashSet() 71 Collections.addAll(set, elements); in newHashSet() 91 public static <E> SortedSet<E> newSortedSet(E... elements) { in newSortedSet() argument 93 Collections.addAll(set, elements); in newSortedSet() 107 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet() argument 108 int capacity = elements.length * 4 / 3 + 1; in newArraySet() 110 Collections.addAll(set, elements); in newArraySet()
|
D | Lists.java | 62 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() argument 63 int capacity = (elements.length * 110) / 100 + 5; in newArrayList() 65 Collections.addAll(list, elements); in newArrayList()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | SlidingWindowTest.java | 46 List<Integer> elements = Arrays.asList(3, 4); in testAdd() local 48 elements.forEach(window::add); in testAdd() 49 assertThat(sameContents(elements.iterator(), window.iterator())).isTrue(); in testAdd() 62 List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testAddOverflow() local 65 window.addAll(elements); in testAddOverflow() 71 List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testStream() local 74 window.addAll(elements); in testStream() 81 List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testCount() local 83 window.addAll(elements); in testCount()
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | LocaleUtils.java | 177 final String[] elements = localeString.split("_", 3); in constructLocaleFromString() local 179 if (elements.length == 1) { in constructLocaleFromString() 180 locale = new Locale(elements[0] /* language */); in constructLocaleFromString() 181 } else if (elements.length == 2) { in constructLocaleFromString() 182 locale = new Locale(elements[0] /* language */, elements[1] /* country */); in constructLocaleFromString() 184 locale = new Locale(elements[0] /* language */, elements[1] /* country */, in constructLocaleFromString() 185 elements[2] /* variant */); in constructLocaleFromString()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | UidCpuStatsCollector.cpp | 69 std::vector<std::string> elements = Split(lines[i], delimiter); in readUidCpuTimeFile() local 70 if (elements.size() < 3) { in readUidCpuTimeFile() 75 if (EndsWith(elements[0], ":")) { in readUidCpuTimeFile() 76 elements[0].pop_back(); in readUidCpuTimeFile() 81 if (!ParseInt(elements[0], &uid) || !ParseInt(elements[1], &userCpuTimeUs) || in readUidCpuTimeFile() 82 !ParseInt(elements[2], &systemCpuTimeUs)) { in readUidCpuTimeFile()
|
/packages/modules/StatsD/framework/java/android/util/ |
D | StatsEvent.java | 596 public Builder writeBooleanArray(@NonNull final boolean[] elements) { in writeBooleanArray() argument 597 final byte numElements = (byte)elements.length; in writeBooleanArray() 602 mPos += mBuffer.putBoolean(mPos, elements[i]); in writeBooleanArray() 619 public Builder writeIntArray(@NonNull final int[] elements) { in writeIntArray() argument 620 final byte numElements = (byte)elements.length; in writeIntArray() 625 mPos += mBuffer.putInt(mPos, elements[i]); in writeIntArray() 642 public Builder writeLongArray(@NonNull final long[] elements) { in writeLongArray() argument 643 final byte numElements = (byte)elements.length; in writeLongArray() 648 mPos += mBuffer.putLong(mPos, elements[i]); in writeLongArray() 665 public Builder writeFloatArray(@NonNull final float[] elements) { in writeFloatArray() argument [all …]
|
/packages/modules/StatsD/lib/libstatssocket/ |
D | stats_event.c | 280 void AStatsEvent_writeInt32Array(AStatsEvent* event, const int32_t* elements, size_t numElements) { in AStatsEvent_writeInt32Array() argument 286 append_int32(event, elements[i]); in AStatsEvent_writeInt32Array() 290 void AStatsEvent_writeInt64Array(AStatsEvent* event, const int64_t* elements, size_t numElements) { in AStatsEvent_writeInt64Array() argument 296 append_int64(event, elements[i]); in AStatsEvent_writeInt64Array() 300 void AStatsEvent_writeFloatArray(AStatsEvent* event, const float* elements, size_t numElements) { in AStatsEvent_writeFloatArray() argument 306 append_float(event, elements[i]); in AStatsEvent_writeFloatArray() 310 void AStatsEvent_writeBoolArray(AStatsEvent* event, const bool* elements, size_t numElements) { in AStatsEvent_writeBoolArray() argument 316 append_bool(event, elements[i]); in AStatsEvent_writeBoolArray() 320 void AStatsEvent_writeStringArray(AStatsEvent* event, const char* const* elements, in AStatsEvent_writeStringArray() argument 327 append_string(event, elements[i] == NULL ? "" : elements[i]); in AStatsEvent_writeStringArray()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sdp/ |
D | SdpMedia.java | 38 List<String> elements = Splitter.on(" ").limit(4).splitToList(line); in parseMediaLine() local 42 if (elements.size() != 4) { in parseMediaLine() 49 .setName(elements.get(0)) in parseMediaLine() 50 .setPort(Integer.parseInt(elements.get(1))) in parseMediaLine() 51 .setProtocol(elements.get(2)) in parseMediaLine() 52 .setFormat(elements.get(3)); in parseMediaLine()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | bloom_filter_test.cpp | 34 std::vector<int> elements; in TEST() local 42 elements.push_back(randomNumberGenerator()); in TEST() 48 for (const int elem : elements) { in TEST() 58 for (const int elem : elements) { in TEST() 66 for (const int elem : elements) { in TEST()
|
/packages/modules/StatsD/lib/libstatssocket/include/ |
D | stats_event.h | 149 void AStatsEvent_writeInt32Array(AStatsEvent* event, const int32_t* elements, size_t numElements); 157 void AStatsEvent_writeInt64Array(AStatsEvent* event, const int64_t* elements, size_t numElements); 165 void AStatsEvent_writeFloatArray(AStatsEvent* event, const float* elements, size_t numElements); 173 void AStatsEvent_writeBoolArray(AStatsEvent* event, const bool* elements, size_t numElements); 183 void AStatsEvent_writeStringArray(AStatsEvent* event, const char* const* elements,
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/ |
D | SensorQcPanel.java | 113 List<PrivacyDialog.PrivacyElement> elements = in getQCItem() local 116 List<PrivacyDialog.PrivacyElement> activeElements = elements.stream() in getQCItem() 121 List<PrivacyDialog.PrivacyElement> inactiveElements = elements.stream() in getQCItem() 161 List<PrivacyDialog.PrivacyElement> elements) { in addPrivacyElementsToQcList() argument 162 for (int i = 0; i < elements.size(); i++) { in addPrivacyElementsToQcList() 163 PrivacyDialog.PrivacyElement element = elements.get(i); in addPrivacyElementsToQcList() 176 if (i == elements.size() - 1) { in addPrivacyElementsToQcList() 183 appName, elements.size() - 1 - i, getSensorShortName()); in addPrivacyElementsToQcList()
|
D | PrivacyElementsProviderImpl.java | 88 List<PrivacyDialog.PrivacyElement> elements = filterAndSort(createPrivacyElements()); in getPrivacyElements() local 89 mPrivacyLogger.logShowDialogContents(elements); in getPrivacyElements() 90 return elements; in getPrivacyElements()
|
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/utils/ |
D | Utils.java | 41 String[] elements = ssid.split(":"); in buildWifiSuggestion() local 42 builder.setSsid(WifiInfo.sanitizeSsid(elements[0])); in buildWifiSuggestion() 43 if (elements.length > 1) { in buildWifiSuggestion() 44 builder.setWpa2Passphrase(elements[1]); in buildWifiSuggestion()
|
/packages/modules/NeuralNetworks/tools/api/ |
D | OperationTypes.t | 92 * elements. The first n elements are still a permutation of [D0, …, Dn-1]. The last k 93 * elements are a permutation of [Dn, …, Dn+k-1], defining how to traverse a block 101 * * 3: A 1-D {@link OperandType::TENSOR_INT32} tensor with n+k elements defining the format of 105 * elements are stored. 106 * * 4: A 1-D {@link OperandType::TENSOR_INT32} tensor with n+k elements defining the size of 107 * each dimension or block. The product of all these sizes totals the number of elements in 108 * the dense tensor. First n elements represent the sparse tensor’s shape, and the last k 109 * elements represent the block’s shape. 124 * the array indices. The array indices represent the index of the non-zero elements
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | Constants.java | 121 public static boolean hasBaseANQPElements(Collection<ANQPElementType> elements) { in hasBaseANQPElements() argument 122 if (elements == null) { in hasBaseANQPElements() 125 for (ANQPElementType element : elements) { in hasBaseANQPElements() 133 public static boolean hasR2Elements(List<ANQPElementType> elements) { in hasR2Elements() argument 134 return elements.contains(ANQPElementType.HSOSUProviders); in hasR2Elements()
|
/packages/modules/NeuralNetworks/common/ |
D | ModelUtils.cpp | 60 void keepSelectedElements(std::vector<Type>* elements, const std::vector<bool>& elementsToKeep) { in keepSelectedElements() argument 61 CHECK(elements != nullptr); in keepSelectedElements() 62 CHECK_EQ(elements->size(), elementsToKeep.size()); in keepSelectedElements() 68 (*elements)[elementsCopied] = std::move((*elements)[i]); in keepSelectedElements() 73 elements->resize(elementsCopied); in keepSelectedElements()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | document.h | 577 for (GenericValue* v = data_.a.elements; v != data_.a.elements + data_.a.size; ++v) 579 Allocator::Free(data_.a.elements); 1293 data_.a.elements[i].~GenericValue(); 1305 return data_.a.elements[index]; 1311 ValueIterator Begin() { RAPIDJSON_ASSERT(IsArray()); return data_.a.elements; } 1314 ValueIterator End() { RAPIDJSON_ASSERT(IsArray()); return data_.a.elements + data_.a.size; } 1331 …data_.a.elements = (GenericValue*)allocator.Realloc(data_.a.elements, data_.a.capacity * sizeof(Ge… 1351 data_.a.elements[data_.a.size++].RawAssign(value); 1405 data_.a.elements[--data_.a.size].~GenericValue(); 1431 RAPIDJSON_ASSERT(data_.a.elements != 0); [all …]
|
/packages/services/Car/service/src/com/android/car/util/ |
D | SlidingWindow.java | 49 public void addAll(Iterable<T> elements) { in addAll() argument 50 elements.forEach(this::add); in addAll()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | AnqpEvent.java | 56 public AnqpEvent(long bssid, Map<Constants.ANQPElementType, ANQPElement> elements) { in AnqpEvent() argument 58 mElements = elements; in AnqpEvent()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/util/ |
D | BluetoothOperationExecutor.java | 317 public Operation(Object... elements) { in Operation() argument 318 mElements = elements; in Operation() 376 public SynchronousOperation(Object... elements) { in SynchronousOperation() argument 377 super(elements); in SynchronousOperation()
|