Exploit databaseDownload repository ZIP
GH-87d78a8273b7c916c0f9f9ca25ca743e
trinadh465/frameworks_base_aosp10_r33_cve-2022-20007
Sources for CVE-2022-20007
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files147
trinadh465/frameworks_base_aosp10_r33_cve-2022-20007Revision d046b4eb34eb
- ↑..Parent directory
- AbsListView.java
- AbsSeekBar.java
- AbsSpinner.java
- AbsoluteLayout.java
- AccessibilityIterators.java
- ActionMenuPresenter.java
- ActionMenuView.java
- ActivityChooserModel.java
- ActivityChooserView.java
- Adapter.java
- AdapterView.java
- AdapterViewAnimator.java
- AdapterViewFlipper.java
- Advanceable.java
- AlphabetIndexer.java
- AnalogClock.java
- AppSecurityPermissions.java
- ArrayAdapter.java
- AutoCompleteTextView.java
- BaseAdapter.java
- BaseExpandableListAdapter.java
- Button.java
- CalendarView.java
- CalendarViewLegacyDelegate.java
- CalendarViewMaterialDelegate.java
- CheckBox.java
- Checkable.java
- CheckedTextView.java
- Chronometer.java
- CompoundButton.java
- CursorAdapter.java
- CursorFilter.java
- CursorTreeAdapter.java
- DatePicker.java
- DatePickerCalendarDelegate.java
- DatePickerController.java
- DatePickerSpinnerDelegate.java
- DateTimeView.java
- DayPickerPagerAdapter.java
- DayPickerView.java
- DayPickerViewPager.java
- DialerFilter.java
- DigitalClock.java
- DoubleDigitManager.java
- DropDownListView.java
- EdgeEffect.java
- EditText.java
- Editor.java
- ExpandableListAdapter.java
- ExpandableListConnector.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/java/android/widget/BaseExpandableListAdapter.java
Java · 4,148 bytes/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.widget;
import android.database.DataSetObservable;
import android.database.DataSetObserver;
/**
* Base class for a {@link ExpandableListAdapter} used to provide data and Views
* from some data to an expandable list view.
* <p>
* Adapters inheriting this class should verify that the base implementations of
* {@link #getCombinedChildId(long, long)} and {@link #getCombinedGroupId(long)}
* are correct in generating unique IDs from the group/children IDs.
* <p>
* @see SimpleExpandableListAdapter
* @see SimpleCursorTreeAdapter
*/
public abstract class BaseExpandableListAdapter implements ExpandableListAdapter,
HeterogeneousExpandableList {
private final DataSetObservable mDataSetObservable = new DataSetObservable();
public void registerDataSetObserver(DataSetObserver observer) {
mDataSetObservable.registerObserver(observer);
}
public void unregisterDataSetObserver(DataSetObserver observer) {
mDataSetObservable.unregisterObserver(observer);
}
/**
* @see DataSetObservable#notifyInvalidated()
*/
public void notifyDataSetInvalidated() {
mDataSetObservable.notifyInvalidated();
}
/**
* @see DataSetObservable#notifyChanged()
*/
public void notifyDataSetChanged() {
mDataSetObservable.notifyChanged();
}
public boolean areAllItemsEnabled() {
return true;
}
public void onGroupCollapsed(int groupPosition) {
}
public void onGroupExpanded(int groupPosition) {
}
/**
* Override this method if you foresee a clash in IDs based on this scheme:
* <p>
* Base implementation returns a long:
* <li> bit 0: Whether this ID points to a child (unset) or group (set), so for this method
* this bit will be 1.
* <li> bit 1-31: Lower 31 bits of the groupId
* <li> bit 32-63: Lower 32 bits of the childId.
* <p>
* {@inheritDoc}
*/
public long getCombinedChildId(long groupId, long childId) {
return 0x8000000000000000L | ((groupId & 0x7FFFFFFF) << 32) | (childId & 0xFFFFFFFF);
}
/**
* Override this method if you foresee a clash in IDs based on this scheme:
* <p>
* Base implementation returns a long:
* <li> bit 0: Whether this ID points to a child (unset) or group (set), so for this method
* this bit will be 0.
* <li> bit 1-31: Lower 31 bits of the groupId
* <li> bit 32-63: Lower 32 bits of the childId.
* <p>
* {@inheritDoc}
*/
public long getCombinedGroupId(long groupId) {
return (groupId & 0x7FFFFFFF) << 32;
}
/**
* {@inheritDoc}
*/
public boolean isEmpty() {
return getGroupCount() == 0;
}
/**
* {@inheritDoc}
* @return 0 for any group or child position, since only one child type count is declared.
*/
public int getChildType(int groupPosition, int childPosition) {
return 0;
}
/**
* {@inheritDoc}
* @return 1 as a default value in BaseExpandableListAdapter.
*/
public int getChildTypeCount() {
return 1;
}
/**
* {@inheritDoc}
* @return 0 for any groupPosition, since only one group type count is declared.
*/
public int getGroupType(int groupPosition) {
return 0;
}
/**
* {@inheritDoc}
* @return 1 as a default value in BaseExpandableListAdapter.
*/
public int getGroupTypeCount() {
return 1;
}
}