Home
last modified time | relevance | path

Searched refs:which (Results 1 – 25 of 491) sorted by relevance

12345678910>>...20

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DFakeUid.java142 public long getWifiRunningTime(long elapsedRealtimeUs, int which) { in getWifiRunningTime() argument
147 public long getFullWifiLockTime(long elapsedRealtimeUs, int which) { in getFullWifiLockTime() argument
152 public long getWifiScanTime(long elapsedRealtimeUs, int which) { in getWifiScanTime() argument
157 public int getWifiScanCount(int which) { in getWifiScanCount() argument
167 public int getWifiScanBackgroundCount(int which) { in getWifiScanBackgroundCount() argument
187 public long getWifiBatchedScanTime(int csphBin, long elapsedRealtimeUs, int which) { in getWifiBatchedScanTime() argument
192 public int getWifiBatchedScanCount(int csphBin, int which) { in getWifiBatchedScanCount() argument
197 public long getWifiMulticastTime(long elapsedRealtimeUs, int which) { in getWifiMulticastTime() argument
232 public long getProcessStateTime(int state, long elapsedRealtimeUs, int which) { in getProcessStateTime() argument
256 public int getUserActivityCount(int type, int which) { in getUserActivityCount() argument
[all …]
DBatteryUtils.java109 int which) { in getProcessTimeMs() argument
116 return getScreenUsageTimeMs(uid, which); in getProcessTimeMs()
118 return getProcessForegroundTimeMs(uid, which); in getProcessTimeMs()
120 return getProcessBackgroundTimeMs(uid, which); in getProcessTimeMs()
122 return getProcessForegroundTimeMs(uid, which) in getProcessTimeMs()
123 + getProcessBackgroundTimeMs(uid, which); in getProcessTimeMs()
128 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs() argument
134 final long localTime = uid.getProcessStateTime(type, rawRealTimeUs, which); in getScreenUsageTimeMs()
146 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which) { in getScreenUsageTimeMs() argument
148 return getScreenUsageTimeMs(uid, which, rawRealTimeUs); in getScreenUsageTimeMs()
[all …]
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java238 public void onClick(DialogInterface dialog, int which) { in getOnItemClickListener()
240 if (which < 0 || which >= preference.getEntryValues().length) { in getOnItemClickListener()
243 String entryValue = preference.getEntryValues()[which].toString(); in getOnItemClickListener()
251 setClickedDialogEntryIndex(which); in getOnItemClickListener()
280 protected void setClickedDialogEntryIndex(int which) { in setClickedDialogEntryIndex() argument
281 super.setClickedDialogEntryIndex(which); in setClickedDialogEntryIndex()
282 mLastCheckedPosition = which; in setClickedDialogEntryIndex()
DCustomListPreference.java107 public void onClick(DialogInterface dialog, int which) { in onPrepareDialogBuilder()
140 public void onClick(DialogInterface dialog, int which) { in getOnItemClickListener()
141 setClickedDialogEntryIndex(which); in getOnItemClickListener()
149 protected void setClickedDialogEntryIndex(int which) { in setClickedDialogEntryIndex() argument
150 mClickedDialogEntryIndex = which; in setClickedDialogEntryIndex()
212 public void onClick(DialogInterface dialog, int which) {
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/
DAlertDialogBuilderTest.java83 ((dialog, which) -> { in test_showSingleListChoiceItem_StringArray_hidesDefaultButton()
94 .setSingleChoiceItems(R.array.test_string_array, 0, ((dialog, which) -> { in test_showSingleListChoiceItem_StringArrayResource_hidesDefaultButton()
125 .setSingleChoiceItems(cursor, 0, "ColumnName", ((dialog, which) -> { in test_showSingleListChoiceItem_cursor_hidesDefaultButton()
135 .setItems(R.array.test_string_array, ((dialog, which) -> { in test_setItems_StringArrayResource_hidesDefaultButton()
145 .setItems(new CharSequence[]{"Item 1", "Item 2"}, ((dialog, which) -> { in test_setItems_StringArray_hidesDefaultButton()
176 ((dialog, which, isChecked) -> { in test_multichoiceItems_StringArrayResource_forcesDefaultButton()
188 ((dialog, which, isChecked) -> { in test_multichoiceItems_StringArray_forcesDefaultButton()
201 ((dialog, which, isChecked) -> { in test_multichoiceItems_Cursor_forcesDefaultButton()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/alertdialog/
DAlertDialogTestFragment.java62 public void onClick(DialogInterface dialog, int which) { in onCreateView()
68 public void onClick(DialogInterface dialog, int which) { in onCreateView()
86 public void onClick(DialogInterface dialog, int which) { in onCreateView()
92 public void onClick(DialogInterface dialog, int which) { in onCreateView()
110 public void onClick(DialogInterface dialog, int which) { in onCreateView()
116 public void onClick(DialogInterface dialog, int which) { in onCreateView()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java122 int which = (int) (v >> 32); in getImageAt() local
124 int subindex = mSkipCounts[which] + (index - skipCount); in getImageAt()
125 return mSubList[which].getImageAt(subindex); in getImageAt()
128 mSkipCounts[which] += offset; in getImageAt()
220 int which = (int) (value >> 32); in getImageIndex() local
221 if (which == listIndex) { in getImageIndex()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java191 public void onClick(DialogInterface dialog, int which) { in onClick() argument
192 if (which != BUTTON_NEGATIVE && which != BUTTON_POSITIVE) return; in onClick()
200 final boolean accept = (which == BUTTON_POSITIVE); in onClick()
205 final boolean accept = (which == BUTTON_POSITIVE); in onClick()
210 final boolean avoid = (which == BUTTON_POSITIVE); in onClick()
DNetworkRequestErrorDialogFragment.java67 (dialog, which) -> onRescanClick()) in onCreateDialog()
69 (dialog, which) -> rejectNetworkRequestAndFinish()); in onCreateDialog()
73 (dialog, which) -> rejectNetworkRequestAndFinish()); in onCreateDialog()
/packages/modules/adb/
DREADME.md3 If you are new to adb source code, you should start by reading [OVERVIEW.TXT](OVERVIEW.TXT) which d…
5 …ot find function or class documentation here but rather the "big picture" which should allow you t…
9 …er (a.k.a Host), and Daemon (a.k.a adbd)). The central part is the Server which runs on the Host c…
36 …vice via a Transport. adb initially targeted devices connecting over USB, which is restricted to a…
40 At the heart of both the Server and Daemon is a main thread running an fdevent loop, which is an pl…
62 … is unidirectional. To model a bi-directional stream, asocket have a peer which go in the opposite…
86 …re local and remote ports identify an unique stream. Note that unlike TCP which feature an "unackn…
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutDialogFragment.java107 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
114 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
115 onKeyboardLayoutClicked(which); in onCreateDialog()
163 private void onKeyboardLayoutClicked(int which) { in onKeyboardLayoutClicked() argument
164 if (which >= 0 && which < mAdapter.getCount()) { in onKeyboardLayoutClicked()
165 KeyboardLayout keyboardLayout = mAdapter.getItem(which); in onKeyboardLayoutClicked()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java323 .setPositiveButton(R.string.allow, (dialog, which) -> proceedAndFinish()) in createDiscoverableConfirmDialog()
325 (dialog, which) -> finishWithResult(RESULT_CANCELED)) in createDiscoverableConfirmDialog()
339 (dialog, which) -> finishWithResult(RESULT_CANCELED)) in createRequestEnableBluetoothDialog()
356 (dialog, which) -> finishWithResult(RESULT_CANCELED)) in createRequestEnableBluetoothDialogWithTimeout()
361 private void onConfirmEnableBluetooth(DialogInterface dialog, int which) { in onConfirmEnableBluetooth() argument
413 (dialog, which) -> finishWithResult(RESULT_CANCELED)) in createRequestDisableBluetoothDialog()
418 private void onConfirmDisableBluetooth(DialogInterface dialog, int which) { in onConfirmDisableBluetooth() argument
/packages/modules/DnsResolver/
DREADME-DoT.md20 `DnsTlsSocket`, which happen on a different thread.
30 know anything about which queries correspond to which responses, and does not retain
53 from its thread, and the loop thread (which owns the SSL socket)
84 which could happen as a result of malfunctioning authoritative DNS servers.
108 `DnsTlsSocket` (which requires `CAP_NET_ADMIN` because it uses `setsockopt(SO_MARK)`) and
109 `DnsTlsSessionCache` (which requires integration with libssl). These classes are
121 which in production is a `DnsTlsSocketFactory`. However, in unit tests, we can
/packages/modules/StatsD/lib/libkll/proto/
Dkll-quantiles.proto28 // State proto: 'Sketch' of aggregation from which results can be extracted or
29 // which can be re-aggregated/merged with other sketches.
32 // Used for values which cannot be serialized in a packed format.
39 // Used for values for which can be serialized in a packed format and
40 // which are not difference encoded (see below). All values are stored in
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelPicker.java97 public void onClick(DialogInterface dialog, int which) {
99 mAlertParams.mCheckedItem = which;
105 public void onClick(DialogInterface dialog, int which) { in onClick() argument
106 if (which == DialogInterface.BUTTON_POSITIVE) { in onClick()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/dialogs/
DDialogsActivity.java109 .setNeutralButton(getString(R.string.neutral), (dialogInterface, which) -> { in showDialog()
111 .setPositiveButton(getString(R.string.ok), (dialogInterface, which) -> { in showDialog()
113 .setNegativeButton(getString(R.string.cancel), (dialogInterface, which) -> { in showDialog()
138 (dialog, which, isChecked) -> { in showDialogWithCheckbox()
140 .setPositiveButton(getString(R.string.ok), (dialogInterface, which) -> { in showDialogWithCheckbox()
142 .setNegativeButton(getString(R.string.cancel), (dialogInterface, which) -> { in showDialogWithCheckbox()
172 .setNegativeButton(getString(R.string.cancel), (dialogInterface, which) -> { in showDialogWithoutTitle()
/packages/apps/Settings/
Dproguard.flags4 # Some tests use thenThrow from Mockito which require information on
8 # Keep all Fragments in this package, which are used by reflection.
60 # Keep classes that implements CustomSliceable, which are used by reflection.
65 # Keep classes that extends SliceBackgroundWorker, which are used by reflection.
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java231 public void onClick(DialogInterface dialog, int which) { in onActivityCreated()
232 if (which == DialogInterface.BUTTON_POSITIVE) { in onActivityCreated()
267 public void onClick(DialogInterface dialog, int which) { in onActivityCreated()
268 if (which == DialogInterface.BUTTON_POSITIVE) { in onActivityCreated()
286 public void onClick(DialogInterface dialog, int which) { in onActivityCreated()
287 if (which == DialogInterface.BUTTON_POSITIVE) { in onActivityCreated()
306 public void onClick(DialogInterface dialog, int which) { in onActivityCreated()
307 if (which == DialogInterface.BUTTON_POSITIVE) { in onActivityCreated()
327 } else if (which == DialogInterface.BUTTON_NEGATIVE) { in onActivityCreated()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSeekBarDialogPreference.java113 public void onClick(final DialogInterface dialog, final int which) { in onClick() argument
114 super.onClick(dialog, which); in onClick()
116 if (which == DialogInterface.BUTTON_NEUTRAL) { in onClick()
122 if (which == DialogInterface.BUTTON_POSITIVE) { in onClick()
DAccountsSettingsFragment.java395 public void onClick(final DialogInterface dialog, final int which) { in onClick() argument
397 switch (which) { in onClick()
445 public void onClick(final DialogInterface dialog, final int which) { in onPreferenceClick()
446 if (which == DialogInterface.BUTTON_POSITIVE) { in onPreferenceClick()
479 final int which) { in onPreferenceClick()
480 if (which == DialogInterface.BUTTON_POSITIVE) { in onPreferenceClick()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollAccessibilityDialog.java57 .setNegativeButton(negativeButtonResId, (dialog, which) -> { in onCreateDialog()
60 .setPositiveButton(positiveButtonResId, (dialog, which) -> { in onCreateDialog()
61 mPositiveButtonListener.onClick(dialog, which); in onCreateDialog()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/
DSeekbarPreferenceDialogFragment.java52 public void onClick(DialogInterface dialog, int which) { in onClick() argument
53 super.onClick(dialog, which); in onClick()
56 dialogPreference.onClick(dialog, which); in onClick()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/
DNetworkRequestErrorDialogFragment.java63 (dialog, which) -> startScanningDialog()) in onCreateDialog()
64 .setNegativeButton(R.string.cancel, (dialog, which) -> getActivity().finish()); in onCreateDialog()
67 .setPositiveButton(R.string.okay, (dialog, which) -> getActivity().finish()); in onCreateDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkRequestErrorDialogFragment.java67 (dialog, which) -> startScanningDialog()) in onCreateDialog()
68 .setNegativeButton(R.string.cancel, (dialog, which) -> getActivity().finish()); in onCreateDialog()
71 .setPositiveButton(R.string.okay, (dialog, which) -> getActivity().finish()); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java186 (dialog, which) -> removeUser()); in onCreateDialog()
189 (dialog, which) -> enableCallsAndSms(true)); in onCreateDialog()
192 (dialog, which) -> enableCallsAndSms(true)); in onCreateDialog()
195 (dialog, which) -> { in onCreateDialog()
202 (dialog, which) -> resetGuest()); in onCreateDialog()

12345678910>>...20