Home
last modified time | relevance | path

Searched refs:toggle (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DPrimarySwitchPreferenceTest.java64 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState() local
68 assertThat(toggle.isChecked()).isTrue(); in setChecked_shouldUpdateButtonCheckedState()
71 assertThat(toggle.isChecked()).isFalse(); in setChecked_shouldUpdateButtonCheckedState()
76 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState() local
80 assertThat(toggle.isEnabled()).isTrue(); in setSwitchEnabled_shouldUpdateButtonEnabledState()
83 assertThat(toggle.isEnabled()).isFalse(); in setSwitchEnabled_shouldUpdateButtonEnabledState()
88 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() local
92 assertThat(toggle.isEnabled()).isFalse(); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
99 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldToggleButton() local
102 toggle.performClick(); in clickWidgetView_shouldToggleButton()
[all …]
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DVectorDrawable01.java63 CheckBox toggle = new CheckBox(this); in onCreate() local
64 toggle.setText("Toggle"); in onCreate()
65 toggle.setChecked(true); in onCreate()
66 toggle.setOnCheckedChangeListener(new OnCheckedChangeListener() { in onCreate()
78 container.addView(toggle); in onCreate()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DProjectionActivity.java38 boolean toggle = false; in ProjectedView()
41 toggle = !toggle; in ProjectedView()
42 setProject(toggle); in ProjectedView()
/frameworks/proto_logging/stats/enums/app/
Dtvsettings_enums.proto44 /** Denotes that a toggle is clicked by a user. */
59 /** Denotes that a toggle is turned on by a user. */
62 /** Denotes that a toggle is turned off by a user. */
104 // TvSettings > Network & Internet > Wi-Fi (toggle)
136 // TvSettings > Network & Internet > Scanning always available (toggle)
184 // Google Assistant > SafeSearch filter (toggle)
188 // Google Assistant > Block offensive words (toggle)
196 // Google Assistant > Personal results (toggle)
200 // Apps only mode (toggle)
227 // [Choose synced apps] Calendar (toggle)
[all …]
Dwearsettings_enums.proto31 // Indicates a toggle was toggled on
34 // Indicates a toggle was toggled off
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DNavigationDrawerActivity.java39 ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( in onCreate() local
42 drawer.setDrawerListener(toggle); in onCreate()
43 toggle.syncState(); in onCreate()
DClippedListActivity.java40 ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( in initializeActivity() local
43 drawer.setDrawerListener(toggle); in initializeActivity()
44 toggle.syncState(); in initializeActivity()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt122 coordinator.toggle(cvh, "", true) in testToggleRunsWhenUnlocked()
132 coordinator.toggle(cvh, "", true) in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
155 coordinator.toggle(cvh, "", true) in testToggleRunsWhenLockedAndAuthNotRequired()
172 coordinator.toggle(cvh, "", true) in testToggleWhenLockedDoesNotTriggerDialog_featureFlagEnabled()
186 coordinator.toggle(cvh, "", true) in testToggleDoesNotRunsWhenLockedAndAuthRequired()
198 coordinator.toggle(cvh, "", true) in testNullControl()
/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/
DCheckedListItem.java59 public void toggle() { in toggle() method in CheckedListItem
60 getCheckedTextView().toggle(); in toggle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorListView.kt148 switch = findViewById(R.id.toggle) in onFinishInflate()
150 setOnClickListener { switch.toggle() } in onFinishInflate()
179 switch = findViewById(R.id.toggle) in onFinishInflate()
185 setOnClickListener { switch.toggle() } in onFinishInflate()
/frameworks/base/media/jni/soundpool/
DStream.h134 StreamCallback(Stream * stream, bool toggle) : mStream(stream), mToggle(toggle) {} in StreamCallback() argument
165 void onBufferEnd(int toggle, int tries) NO_THREAD_SAFETY_ANALYSIS;
DStream.cpp316 auto toggle = mToggle ^ 1; in play_l() local
329 mCallback = sp<StreamCallback>::make(this, toggle), in play_l()
355 mToggle = toggle; in play_l()
426 void Stream::onBufferEnd(int toggle, int tries) in onBufferEnd() argument
442 getPairStream()->onBufferEnd(toggle, tries + 1); in onBufferEnd()
448 if (mToggle != toggle) { in onBufferEnd()
/frameworks/base/core/java/android/widget/
DRadioButton.java78 public void toggle() { in toggle() method in RadioButton
82 super.toggle(); in toggle()
DCheckable.java41 void toggle(); in toggle() method
DToggleButton.java168 layerDrawable.findDrawableByLayerId(com.android.internal.R.id.toggle); in updateReferenceToIndicatorDrawable()
/frameworks/native/opengl/tests/gl2_basic/
Dgl2_basic.cpp271 static EGLBoolean toggle = GL_FALSE; in setSurfaceMetadata() local
281 if (toggle) { in setSurfaceMetadata()
290 if (toggle) { in setSurfaceMetadata()
300 toggle = !toggle; in setSurfaceMetadata()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp336 static EGLBoolean toggle = GL_FALSE; in setSurfaceMetadata() local
346 if (toggle) { in setSurfaceMetadata()
355 if (toggle) { in setSurfaceMetadata()
365 toggle = !toggle; in setSurfaceMetadata()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlActionCoordinator.kt43 fun toggle(cvh: ControlViewHolder, templateId: String, isChecked: Boolean) method
DToggleBehavior.kt39 cvh.controlActionCoordinator.toggle(cvh, template.getTemplateId(), template.isChecked()) in initialize()
DToggleRangeBehavior.kt183 cvh.controlActionCoordinator.toggle(cvh, templateId, isChecked) in <lambda>()
357 cvh.controlActionCoordinator.toggle(cvh, templateId, isChecked) in <lambda>()
/frameworks/base/core/proto/android/hardware/
Dsensorprivacy.proto64 // Per toggle type sensor privacy
113 // The toggle type for this state
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DCheckableLinearLayout.java82 public void toggle() { in toggle() method in CheckableLinearLayout
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/items/
DSwitchItem.java93 public void toggle(View view) { in toggle() method in SwitchItem
/frameworks/base/core/proto/android/providers/settings/
Dsystem.proto145 // Control whether the rotation lock toggle in the System UI should be hidden.
147 // the user to accidentally toggle the rotation lock while the display rotation
149 // If 0, then rotation lock toggle is not hidden for accessibility (although it may be
150 // unavailable for other reasons). If 1, then the rotation lock toggle is hidden.
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/
DControllerActivity.java149 private void updateWidgets(WindowInsets insets, int types, ToggleButton toggle, SeekBar seek) { in updateWidgets() argument
153 toggle.setChecked(isVisible); in updateWidgets()

12