public void clear() {
        int n = mSize;
        Object[] values = mValues;

        for (int i = 0; i < n; i++) {
            values[i] = null;
        }

        mSize = 0;
        mGarbage = false;
    }
Removes all key-value mappings from this SparseArray.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/SparseArrayCompat.java