/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | sparse_array.h | 110 class SparseArray { 112 SparseArray(); 113 explicit SparseArray(int max_size); 114 ~SparseArray(); 122 SparseArray(const SparseArray& src); 123 SparseArray(SparseArray&& src); 125 SparseArray& operator=(const SparseArray& src); 126 SparseArray& operator=(SparseArray&& src); 266 SparseArray<Value>::SparseArray() = default; 269 SparseArray<Value>::SparseArray(const SparseArray& src) in SparseArray() function [all …]
|
/aosp_15_r20/external/cronet/third_party/re2/src/re2/ |
H A D | sparse_array.h | 110 class SparseArray { 112 SparseArray(); 113 explicit SparseArray(int max_size); 114 ~SparseArray(); 122 SparseArray(const SparseArray& src); 123 SparseArray(SparseArray&& src); 125 SparseArray& operator=(const SparseArray& src); 126 SparseArray& operator=(SparseArray&& src); 266 SparseArray<Value>::SparseArray() = default; 269 SparseArray<Value>::SparseArray(const SparseArray& src) in SparseArray() function [all …]
|
/aosp_15_r20/external/regex-re2/util/ |
H A D | sparse_array.h | 110 class SparseArray { 112 SparseArray(); 113 explicit SparseArray(int max_size); 114 ~SparseArray(); 122 SparseArray(const SparseArray& src); 123 SparseArray(SparseArray&& src); 125 SparseArray& operator=(const SparseArray& src); 126 SparseArray& operator=(SparseArray&& src); 266 SparseArray<Value>::SparseArray() = default; 269 SparseArray<Value>::SparseArray(const SparseArray& src) in SparseArray() function [all …]
|
/aosp_15_r20/cts/tests/tests/util/src/android/util/cts/ |
H A D | SparseArrayTest.java | 27 import android.util.SparseArray; 50 SparseArray<Integer> sparseArray = new SparseArray<>(); in testSparseArrayWithDefaultCapacity() 116 SparseArray<Integer> sparseArray = new SparseArray<>(5); in testSparseArrayWithSpecifiedCapacity() 182 SparseArray<Long> sparseArray = new SparseArray<>(); in testIterationOrder() 202 SparseArray<String> first = new SparseArray<>(); in testSet() 207 SparseArray<String> second = new SparseArray<>(); in testSet() 218 testContentEquals(first, second, SparseArray::contentEquals); in testSet() 223 SparseArray<TestData> first = new SparseArray<>(); in testContentEquals() 228 SparseArray<SubTestData> second = new SparseArray<>(); in testContentEquals() 234 testContentEquals(first, second, SparseArray::contentEquals); in testContentEquals() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
H A D | HapticFeedbackVibrationProviderTest.java | 60 import android.util.SparseArray; 130 SparseArray<VibrationEffect> customizations = new SparseArray<>(); in testUseValidCustomizedVibration() 132 SparseArray<VibrationEffect> customizationsRotary = new SparseArray<>(); in testUseValidCustomizedVibration() 135 SparseArray<VibrationEffect> customizationsTouchScreen = new SparseArray<>(); in testUseValidCustomizedVibration() 178 SparseArray<VibrationEffect> customizations = new SparseArray<>(); in testHapticTextDisabled_noVibrationReturnedForTextHandleMove() 206 SparseArray<VibrationEffect> customizations = new SparseArray<>(); in testHapticTextEnabled_vibrationReturnedForTextHandleMove() 208 SparseArray<VibrationEffect> customizationsByRotary = new SparseArray<>(); in testHapticTextEnabled_vibrationReturnedForTextHandleMove() 210 SparseArray<VibrationEffect> customizationsByTouchScreen = new SparseArray<>(); in testHapticTextEnabled_vibrationReturnedForTextHandleMove() 237 SparseArray<VibrationEffect> customizations = new SparseArray<>(); in testFeedbackConstantNoHapticEffect_noVibrationRegardlessCustomizations() 239 SparseArray<VibrationEffect> customizationsByRotary = new SparseArray<>(); in testFeedbackConstantNoHapticEffect_noVibrationRegardlessCustomizations() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/ |
H A D | CpuInfoReaderTest.java | 31 import android.util.SparseArray; 97 SparseArray<CpuInfoReader.CpuInfo> actualCpuInfos = cpuInfoReader.readCpuInfos(); in testReadCpuInfoWithUpdatedCpuset() 98 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = in testReadCpuInfoWithUpdatedCpuset() 124 SparseArray<CpuInfoReader.CpuInfo> actualCpuInfos = cpuInfoReader.readCpuInfos(); in testReadCpuInfoWithUpdatedCpusetBeforeStopSignal() 125 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = in testReadCpuInfoWithUpdatedCpusetBeforeStopSignal() 156 SparseArray<CpuInfoReader.CpuInfo> actualCpuInfos = cpuInfoReader.readCpuInfos(); in testReadCpuInfoWithUpdatedCpusetAfterStopSignal() 157 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = in testReadCpuInfoWithUpdatedCpusetAfterStopSignal() 179 SparseArray<CpuInfoReader.CpuInfo> actualCpuInfos = cpuInfoReader.readCpuInfos(); in testReadCpuInfoWithTimeInState() 180 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = in testReadCpuInfoWithTimeInState() 201 SparseArray<CpuInfoReader.CpuInfo> actualCpuInfos = cpuInfoReader.readCpuInfos(); in testReadCpuInfoWithoutTimeInState() [all …]
|
/aosp_15_r20/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/ |
D | SafeParcelableSparseArrayTest.java | 22 import android.util.SparseArray; 49 private static SparseArray<Bundle> newBundleSparseArray(int[] keys) { in newBundleSparseArray() 50 SparseArray<Bundle> sparseArray = new SparseArray<>(keys.length); in newBundleSparseArray() 60 SparseArray<byte[]> sparseArray = new SparseArray<>(); in testReadWriteBytesSparseArray() 68 SparseArray<byte[]> readSparseArray = in testReadWriteBytesSparseArray() 78 SparseArray<Bundle> sparseArray = newBundleSparseArray(keys); in testReadWriteBundleSparseArray() 84 SparseArray<Bundle> readSparseArray = in testReadWriteBundleSparseArray() 90 private static <T> SparseArray<T> create(T[] values) { in create() 91 SparseArray<T> result = new SparseArray<>(); in create() 136 SparseArray<Float> floats = create(new Float[] {3.1f, 3.14f}); in testReadWriteSafeParcelableWithSparseArray() [all …]
|
D | TestSafeParcelableWithSparseArray.java | 20 import android.util.SparseArray; 40 final SparseArray<Float> mFloats; 43 final SparseArray<Double> mDoubles; 46 final SparseArray<String> mStrings; 49 final SparseArray<Bundle> mBundles; 52 final SparseArray<byte[]> mBytes; 59 @Param(id = 4) SparseArray<Float> floats, in TestSafeParcelableWithSparseArray() 60 @Param(id = 5) SparseArray<Double> doubles, in TestSafeParcelableWithSparseArray() 61 @Param(id = 6) SparseArray<String> strings, in TestSafeParcelableWithSparseArray() 62 @Param(id = 7) SparseArray<Bundle> bundles, in TestSafeParcelableWithSparseArray() [all …]
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/vibrator/ |
H A D | HapticFeedbackCustomization.java | 30 import android.util.SparseArray; 105 private final SparseArray<VibrationEffect> mHapticCustomizations; 112 private final SparseArray<VibrationEffect> mHapticCustomizationsForSourceRotary; 119 private final SparseArray<VibrationEffect> mHapticCustomizationsForSourceTouchScreen; 124 mHapticCustomizations = new SparseArray<>(); in HapticFeedbackCustomization() 125 mHapticCustomizationsForSourceRotary = new SparseArray<>(); in HapticFeedbackCustomization() 126 mHapticCustomizationsForSourceTouchScreen = new SparseArray<>(); in HapticFeedbackCustomization() 131 SparseArray<VibrationEffect> hapticCustomizations; in HapticFeedbackCustomization() 150 mHapticCustomizationsForSourceRotary = new SparseArray<>(); in HapticFeedbackCustomization() 151 mHapticCustomizationsForSourceTouchScreen = new SparseArray<>(); in HapticFeedbackCustomization() [all …]
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/mode/ |
H A D | VotesStorage.java | 23 import android.util.SparseArray; 49 private final SparseArray<SparseArray<Vote>> mVotesByDisplay = new SparseArray<>(); 63 SparseArray<Vote> getVotes(int displayId) { in getVotes() 64 SparseArray<Vote> votesLocal; in getVotes() 65 SparseArray<Vote> globalVotesLocal; in getVotes() 67 SparseArray<Vote> displayVotes = mVotesByDisplay.get(displayId); in getVotes() 68 votesLocal = displayVotes != null ? displayVotes.clone() : new SparseArray<>(); in getVotes() 69 SparseArray<Vote> globalVotes = mVotesByDisplay.get(GLOBAL_ID); in getVotes() 70 globalVotesLocal = globalVotes != null ? globalVotes.clone() : new SparseArray<>(); in getVotes() 100 SparseArray<Vote> votes; in updateVote() [all …]
|
H A D | SkinThermalStatusObserver.java | 25 import android.util.SparseArray; 51 private final SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> 52 mThermalThrottlingByDisplay = new SparseArray<>(); 70 SparseArray<SurfaceControl.RefreshRateRange> throttlingMap) { in findBestMatchingRefreshRateRange() 150 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> localMap = new SparseArray<>( in populateInitialDisplayInfo() 170 SparseArray<SurfaceControl.RefreshRateRange> throttlingMap = in updateThermalRefreshRateThrottling() 186 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> localMap; in updateVotes() 203 SparseArray<SurfaceControl.RefreshRateRange> localMap; in updateVoteForDisplay() 222 SparseArray<SurfaceControl.RefreshRateRange> throttlingMap) { in reportThrottlingIfNeeded() 260 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> localMap; in dumpLocked()
|
/aosp_15_r20/frameworks/base/core/java/android/view/translation/ |
H A D | TranslationResponse.java | 23 import android.util.SparseArray; 60 private final SparseArray<TranslationResponseValue> mTranslationResponseValues; 67 private final SparseArray<ViewTranslationResponse> mViewTranslationResponses; 102 builder.setTranslationResponseValues(new SparseArray<>()); in setTranslationResponseValue() 124 builder.setViewTranslationResponses(new SparseArray<>()); in setViewTranslationResponse() 131 private static SparseArray<TranslationResponseValue> defaultTranslationResponseValues() { in defaultTranslationResponseValues() 132 return new SparseArray<>(); in defaultTranslationResponseValues() 135 private static SparseArray<ViewTranslationResponse> defaultViewTranslationResponses() { in defaultViewTranslationResponses() 136 return new SparseArray<>(); in defaultViewTranslationResponses() 186 @NonNull SparseArray<TranslationResponseValue> translationResponseValues, in TranslationResponse() [all …]
|
/aosp_15_r20/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarDuckingTest.java | 35 import android.util.SparseArray; 75 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); 79 private final SparseArray<List<AudioFocusInfo>> mMediaFocusHolders = new SparseArray<>(); 80 private final SparseArray<List<AudioFocusInfo>> mMediaNavFocusHolders = new SparseArray<>(); 130 SparseArray<CarDuckingInfo> currentDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in constructor_initializesEmptyDuckingInfoForZones() 152 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_forPrimaryZone_updatesUsagesHoldingFocus() 164 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_forPrimaryZone_doesNotUpdateSecondaryZones() 177 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_withMultipleFocusHolders_updatesAddressesToDuck() 190 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_withDuckedDevices_updatesAddressesToUnduck() 240 SparseArray<List<AudioFocusInfo>> focusChanges = new SparseArray<>(); in onFocusChange_withMultipleZones_notifiesForEachZone() [all …]
|
D | CarAudioZonesValidatorUnitTest.java | 29 import android.util.SparseArray; 46 () -> CarAudioZonesValidator.validate(new SparseArray<CarAudioZone>(), in validate_thereIsAtLeastOneZone() 57 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnEmptyInputDevices() 70 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnNullInputDevices() 85 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnMissingMicrophoneInputDevices() 97 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_zoneConfigsForEachZone() 129 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_addressesCanNotRepeatAcrossZones() 150 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_addressesCanNotRepeatAcrossConfigs() 162 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_passesWithoutExceptionForValidZoneConfiguration() 181 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_passesWithoutExceptionForRepeatAddressInDifferentConfigs() [all …]
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelCpuUidBpfMapReaderTest.java | 28 import android.util.SparseArray; 91 SparseArray<long[]> data = new SparseArray<>(); in testReadErrorsLimit() 112 final SparseArray<long[]> data = getTestSparseArray(800, 50); in testGetNextUid() 119 final SparseArray<long[]> data = getTestSparseArray(200, 50); in testConcurrent() 120 final SparseArray<long[]> data1 = getTestSparseArray(180, 70); in testConcurrent() 177 final SparseArray<long[]> data = getTestSparseArray(200, 50); in testRemoveUidsInRange() 180 SparseArray<long[]> changedData = new SparseArray<>(); in testRemoveUidsInRange() 190 final SparseArray<long[]> data = getTestSparseArray(200, 50); in testRemoveUidsInRange_firstAndLastAbsent() 195 SparseArray<long[]> changedData = new SparseArray<>(); in testRemoveUidsInRange_firstAndLastAbsent() 203 private void testOpenAndReadData(SparseArray<long[]> expectedData) { in testOpenAndReadData() [all …]
|
/aosp_15_r20/out/soong/.intermediates/frameworks/base/framework-minus-apex/android_common/javac/shard18/anno/android/view/ |
D | View$InspectionCompanion.java | 4 import android.util.SparseArray; 518 final SparseArray<String> accessibilityLiveRegionEnumMapping = new SparseArray<>(); in mapProperties() 537 final SparseArray<String> drawingCacheQualityEnumMapping = new SparseArray<>(); in mapProperties() 548 final SparseArray<String> focusableEnumMapping = new SparseArray<>(); in mapProperties() 563 final SparseArray<String> importantForAccessibilityEnumMapping = new SparseArray<>(); in mapProperties() 569 final SparseArray<String> importantForAutofillEnumMapping = new SparseArray<>(); in mapProperties() 576 final SparseArray<String> importantForContentCaptureEnumMapping = new SparseArray<>(); in mapProperties() 587 final SparseArray<String> layerTypeEnumMapping = new SparseArray<>(); in mapProperties() 592 final SparseArray<String> layoutDirectionEnumMapping = new SparseArray<>(); in mapProperties() 609 final SparseArray<String> overScrollModeEnumMapping = new SparseArray<>(); in mapProperties() [all …]
|
/aosp_15_r20/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | QnsComponents.java | 21 import android.util.SparseArray; 37 private final SparseArray<CellularNetworkStatusTracker> mCellularNetworkStatusTrackers; 38 private final SparseArray<CellularQualityMonitor> mCellularQualityMonitors; 39 private final SparseArray<QnsImsManager> mQnsImsManagers; 40 private final SparseArray<QnsCarrierConfigManager> mQnsCarrierConfigManagers; 41 private final SparseArray<QnsEventDispatcher> mQnsEventDispatchers; 42 private final SparseArray<QnsProvisioningListener> mQnsProvisioningListeners; 43 private final SparseArray<QnsTelephonyListener> mQnsTelephonyListeners; 44 private final SparseArray<QnsCallStatusTracker> mQnsCallStatusTracker; 45 private final SparseArray<WifiBackhaulMonitor> mWifiBackhaulMonitors; [all …]
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/appop/ |
H A D | AppOpMigrationHelperImpl.java | 24 import android.util.SparseArray; 40 private SparseArray<Map<Integer, Map<String, Integer>>> mAppIdAppOpModes = null; 41 private SparseArray<Map<String, Map<String, Integer>>> mPackageAppOpModes = null; 75 final SparseArray<SparseIntArray> uidAppOpModes = new SparseArray<>(); in readLegacyAppOpState() 76 final SparseArray<ArrayMap<String, SparseIntArray>> packageAppOpModes = in readLegacyAppOpState() 77 new SparseArray<>(); in readLegacyAppOpState() 97 private SparseArray<Map<Integer, Map<String, Integer>>> getAppIdAppOpModes( in getAppIdAppOpModes() 98 SparseArray<SparseIntArray> uidAppOpModes) { in getAppIdAppOpModes() 99 SparseArray<Map<Integer, Map<String, Integer>>> userAppIdAppOpModes = new SparseArray<>(); in getAppIdAppOpModes() 117 private SparseArray<Map<String, Map<String, Integer>>> getPackageAppOpModes( in getPackageAppOpModes() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
H A D | BackgroundRestrictedAlarmsTest.java | 24 import android.util.SparseArray; 40 private SparseArray<ArrayList<Alarm>> addPendingAlarm( in addPendingAlarm() 41 SparseArray<ArrayList<Alarm>> all, int uid, String name, boolean removeIt) { in addPendingAlarm() 52 private static String toString(SparseArray<ArrayList<Alarm>> pendingAlarms) { in toString() 83 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms() 91 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() 103 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove() 117 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_nonremove() 131 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_complex() 164 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_complex_allRemove()
|
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
H A D | DisplayModeDirectorTest.java | 73 import android.util.SparseArray; 450 SparseArray<Display.Mode[]> supportedModesByDisplay = new SparseArray<>(); in setupModesForDisplays() 451 SparseArray<Display.Mode> defaultModesByDisplay = new SparseArray<>(); in setupModesForDisplays() 510 SparseArray<Vote> votes = new SparseArray<>(); in testDisplayModeVoting() 511 SparseArray<SparseArray<Vote>> votesByDisplay = new SparseArray<>(); in testDisplayModeVoting() 549 SparseArray<Vote> votes = new SparseArray<>(); in testDisplayModeVoting() 550 SparseArray<SparseArray<Vote>> votesByDisplay = new SparseArray<>(); in testDisplayModeVoting() 565 SparseArray<Vote> votes = new SparseArray<>(); in testVotingWithFloatingPointErrors() 566 SparseArray<SparseArray<Vote>> votesByDisplay = new SparseArray<>(); in testVotingWithFloatingPointErrors() 616 SparseArray<Vote> votes = new SparseArray<>(); in testFlickerHasLowerPriorityThanUserAndRangeIsSingle() [all …]
|
H A D | SkinThermalStatusObserverTest.java | 29 import android.util.SparseArray; 104 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testNotifyWithDefaultVotesForCritical() 114 SparseArray<Vote> otherDisplayVotes = mStorage.getVotes(DISPLAY_ID_OTHER); in testNotifyWithDefaultVotesForCritical() 156 SparseArray<SurfaceControl.RefreshRateRange> displayConfig = new SparseArray<>(); in testNotifiesWithConfigVotes() 159 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> config = new SparseArray<>(); in testNotifiesWithConfigVotes() 173 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testNotifiesWithConfigVotes() 196 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID_ADDED); in testDisplayAdded() 230 private final SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> mOverriddenConfig; 238 this(registerThermalListener, new SparseArray<>()); in RegisteringFakesInjector() 242 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> overriddenConfig) { in RegisteringFakesInjector() [all …]
|
/aosp_15_r20/frameworks/base/services/permission/java/com/android/server/permission/access/collection/ |
H A D | SparseArrayExtensions.kt | 19 import android.util.SparseArray in <lambda>() 21 inline fun <T> SparseArray<T>.allIndexed(predicate: (Int, Int, T) -> Boolean): Boolean { in <lambda>() 30 inline fun <T> SparseArray<T>.anyIndexed(predicate: (Int, Int, T) -> Boolean): Boolean { in anyIndexed() 39 inline fun <T> SparseArray<T>.forEachIndexed(action: (Int, Int, T) -> Unit) { in forEachIndexed() 45 inline fun <T> SparseArray<T>.forEachReversedIndexed(action: (Int, Int, T) -> Unit) { in forEachReversedIndexed() 51 inline fun <T> SparseArray<T>.getOrPut(key: Int, defaultValue: () -> T): T { in getOrPut() 60 inline val <T> SparseArray<T>.lastIndex: Int 64 inline operator fun <T> SparseArray<T>.minusAssign(key: Int) { in minusAssign() 68 inline fun <T> SparseArray<T>.noneIndexed(predicate: (Int, Int, T) -> Boolean): Boolean { in noneIndexed() 77 inline fun <T> SparseArray<T>.removeAllIndexed(predicate: (Int, Int, T) -> Boolean): Boolean { in removeAllIndexed() [all …]
|
/aosp_15_r20/packages/services/Car/service/src/com/android/car/audio/ |
D | FocusInteraction.java | 44 import android.util.SparseArray; 79 private static final SparseArray<SparseArray<Integer>> INTERACTION_MATRIX = 80 new SparseArray<>(/* initialCapacity= */ 13); 89 INTERACTION_MATRIX.append(/* INVALID= */ 0, new SparseArray() { 107 INTERACTION_MATRIX.append(MUSIC, new SparseArray() { in INTERACTION_MATRIX.append() 125 INTERACTION_MATRIX.append(NAVIGATION, new SparseArray() { in INTERACTION_MATRIX.append() 143 INTERACTION_MATRIX.append(VOICE_COMMAND, new SparseArray() { in INTERACTION_MATRIX.append() 161 INTERACTION_MATRIX.append(CALL_RING, new SparseArray() { in INTERACTION_MATRIX.append() 179 INTERACTION_MATRIX.append(CALL, new SparseArray() { in INTERACTION_MATRIX.append() 197 INTERACTION_MATRIX.append(ALARM, new SparseArray() { in INTERACTION_MATRIX.append() [all …]
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | DumpUtilsTest.java | 32 import android.util.SparseArray; 195 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_empty() 206 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_oneElement() 220 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_oneNullElement() 234 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_multipleElements() 252 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_keyDumperOnly() 273 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_valueDumperOnly() 295 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_keyAndValueDumpers() 319 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArrayValues()
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/am/ |
H A D | PhantomProcessList.java | 34 import android.util.SparseArray; 66 final SparseArray<PhantomProcessRecord> mPhantomProcesses = new SparseArray<>(); 73 final SparseArray<SparseArray<PhantomProcessRecord>> mAppPhantomProcessMap = 74 new SparseArray<>(); 80 final SparseArray<PhantomProcessRecord> mPhantomProcessesPidFds = new SparseArray<>(); 86 final SparseArray<PhantomProcessRecord> mZombiePhantomProcesses = new SparseArray<>(); 95 private final SparseArray<ProcessRecord> mPhantomToAppProcessMap = new SparseArray<>(); 98 private final SparseArray<InputStream> mCgroupProcsFds = new SparseArray<>(); 340 SparseArray<PhantomProcessRecord> array = mAppPhantomProcessMap.get(appPid); in getOrCreatePhantomProcessIfNeededLocked() 342 array = new SparseArray<>(); in getOrCreatePhantomProcessIfNeededLocked() [all …]
|