/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
SurfaceCompositionMeasuringActivity.java | 40 import android.widget.Button; 61 * In manual mode, which activated by pressing button 'Compositor speed' or 90 private Button mMeasureCompositionButton; 91 private Button mMeasureAllocationButton; 311 mResultView.setText("Press button to start test."); 355 private Button createButton(String caption, LinearLayout layout) { 356 Button button = new Button(this); local 357 button.setText(caption) [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
BasePermissionsTest.java | 257 UiObject2 button = getUiDevice().findObject(By.text("Close")); local 258 if (button != null) { 259 button.click();
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
PermissionsTest.java | 65 .clazz(android.widget.Button.class.getName()) 166 UiObject2 button = mDevice.findObject(CRASH_POPUP_BUTTON_SELECTOR); 167 if (button != null) { 170 button.click(); 317 .clazz(android.widget.Button.class.getName()) 320 UiObject2 button = mDevice.findObject(selector); local 321 assertNotNull("Couldn't find button with resource id: " + resName, button); 322 button.click();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioGroupTest.java | 124 // inject the tracker to the button when the button is added by 133 // the tracker informs the checked state change of the button to the group 137 // the tracker informs the checked state change of the button to the group 141 // remove the tracker from the button when the button is removed 187 // uncheck the original button 197 // why the method is called while none of the button is checked or unchecked? 207 // why the method is called while none of the button is checked or unchecked? 227 // uncheck the original button 365 RadioButton button = new RadioButton(mActivity); local [all...] |
RelativeLayoutTest.java | 349 View button = mActivity.findViewById(R.id.button1); local 350 assertTrue(button.getHeight() > 0); 352 button = mActivity.findViewById(R.id.button2); 353 assertTrue(button.getHeight() > 0); 355 button = mActivity.findViewById(R.id.button3); 356 assertTrue(button.getHeight() > 0); 358 button = mActivity.findViewById(R.id.button4); 359 assertTrue(button.getHeight() > 0);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
ViewLoaderTest.java | 329 Button button = (Button)activity.findViewById(R.id.button); local 330 button.performClick(); 340 Button button = local 341 (Button)activity.findViewById(R.id.invalid_onclick_button); 345 button.performClick(); 351 + "faulty button", [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowLayoutInflaterTest.java | 25 import android.widget.Button; 396 Button button = activity.findViewById(R.id.button); local 397 button.performClick(); 407 Button button = activity.findViewById(R.id.invalid_onclick_button); local 411 button.performClick(); 417 .as("The error message should contain the id name of the faulty button")
|
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
SoundTriggerTestActivity.java | 44 import android.widget.Button; 69 private Button mPlayTriggerButton = null; 74 private Button mPlayCapturedAudioButton = null; 123 RadioButton button = new RadioButton(this); local 124 mModelRadioButtons.add(button); 125 button.setText(name); 126 button.setOnClickListener(new View.OnClickListener() { 131 mButtonModelUuidMap.put(button, modelUuid); 132 mModelButtons.put(modelUuid, button); 149 button.setChecked(true) [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
AttendeesView.java | 191 // Set up the Image button even if the view is disabled 193 final ImageButton button = (ImageButton) view.findViewById(R.id.contact_remove); local 194 button.setVisibility(isEnabled() ? View.VISIBLE : View.GONE); 195 button.setTag(item); 197 button.setImageResource(R.drawable.ic_menu_add_field_holo_light); 198 button.setContentDescription(mContext.getString(R.string.accessibility_add_attendee)); 200 button.setImageResource(R.drawable.ic_menu_remove_field_holo_light); 201 button.setContentDescription(mContext. 204 button.setOnClickListener(this); 481 // Button corresponding to R.id.contact_remove [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
DirectoryListBot.java | 123 UiObject button = findHeaderMessageButton(); local 125 assertEquals(msg, button.getText()); 129 UiObject button = findHeaderMessageButton(); local 130 button.click();
|
/packages/apps/Settings/src/com/android/settings/ |
TrustedCredentialsDialogBuilder.java | 31 import android.widget.Button; 101 private Button mPositiveButton; 102 private Button mNegativeButton; 233 // Show trust button only when it requires consumer user (non-PO/DO) to approve 255 private Button updateButton(int buttonType, CharSequence displayText) { 257 Button button = mDialog.getButton(buttonType); local 258 button.setText(displayText); 259 button.setOnClickListener(this); 260 return button; [all...] |
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
ProviderPerfActivity.java | 56 import android.widget.Button; 242 final Button button = (Button) findViewById(button_id); local 243 button.setOnClickListener(new View.OnClickListener() { 245 button.requestFocus(); 246 button.setEnabled(false);
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityWindowReportingTest.java | 56 import android.widget.Button; 129 final Button button = new Button(mActivity); local 130 button.setText(R.string.button1); 132 () -> mActivity.getWindowManager().addView(button, paramsForTop)), 138 () -> mActivity.getWindowManager().updateViewLayout(button, paramsForBottom)), 143 () -> mActivity.getWindowManager().removeView(button)), 301 final Button button = new Button(mActivity) local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
IsolatedService.java | 32 import android.widget.Button; 117 Button button = (Button)mActivity.findViewById(start); local 118 button.setOnClickListener(mStartListener); 119 button = (Button)mActivity.findViewById(stop); 120 button.setOnClickListener(mStopListener);
|
RemoteService.java | 38 import android.widget.Button; 230 // Watch for button clicks. 231 Button button = (Button)findViewById(R.id.start); local 232 button.setOnClickListener(mStartListener); 233 button = (Button)findViewById(R.id.stop); 234 button.setOnClickListener(mStopListener); 275 Button mKillButton 291 Button button = (Button)findViewById(R.id.bind); local 532 Button button = (Button)findViewById(R.id.bind_normal); local [all...] |
ServiceStartArguments.java | 35 import android.widget.Button; 136 // For the start fail button, we will simulate the process dying 217 // Watch for button clicks. 218 Button button = (Button)findViewById(R.id.start1); local 219 button.setOnClickListener(mStart1Listener); 220 button = (Button)findViewById(R.id.start2); 221 button.setOnClickListener(mStart2Listener) [all...] |
/development/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ |
ThemedNavBarKeyboard.java | 31 import android.widget.Button; 88 * IME is expected to control Navigation Bar appearance, including button color. 99 * IME is expected to control Navigation Bar appearance, including button color. 115 * button color. 219 final Button button = new Button(getContext()); local 220 button.setText(text); 221 button.setOnClickListener(view -> onClickCallback.run()); 222 return button; [all...] |
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/ |
bootstrap.js | 155 * bootstrap-button.js v2.0.4 179 /* BUTTON PUBLIC CLASS DEFINITION 182 var Button = function (element, options) { 184 this.options = $.extend({}, $.fn.button.defaults, options) 187 Button.prototype.setState = function (state) { 206 Button.prototype.toggle = function () { 217 /* BUTTON PLUGIN DEFINITION 220 $.fn.button = function (option) { 223 , data = $this.data('button') 225 if (!data) $this.data('button', (data = new Button(this, options)) [all...] |
/external/okhttp/website/static/ |
bootstrap.min.js | 6 !function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(". (…) [all...] |
/external/vboot_reference/firmware/lib/ |
vboot_api_kernel.c | 160 uint32_t button; local 170 button = VbExGetSwitches(VB_INIT_FLAG_REC_BUTTON_PRESSED); 197 /* If the recovery button is physical, and is pressed, 201 if (button) { 202 VBDEBUG(("%s() - Rec button pressed\n", 206 VBDEBUG(("%s() - Rec button (1)\n", 462 * button, require removal of all external media. 564 * Is the recovery button stuck? In [all...] |
/frameworks/base/core/tests/coretests/src/android/animation/ |
ViewPropertyAnimatorTest.java | 24 import android.widget.Button; 141 Button button = (Button) activity.findViewById(R.id.animatingButton); local 143 mAnimator = button.animate().x(100).y(100);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
CarFacetButtonController.java | 19 * button group. 34 * Add facet button to this controller. The expected use is for the facet button 53 // Using the following as a default button for display id info it's not 127 CarFacetButton button = mButtonsByComponentName.get(componentName.flattenToShortString()); local 128 return (button != null) ? button :
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
ButtonDispatcher.java | 95 final ButtonInterface button = (ButtonInterface) view; local 97 button.setDarkIntensity(mDarkIntensity); 100 button.setImageDrawable(mImageDrawable); 103 button.setDelayTouchFeedback(mDelayTouchFeedback); 105 button.setVertical(mVertical);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
NavBarTuner.java | 132 String button = extractButton(val); 133 if (button.startsWith(KEY)) { 135 String uri = extractImage(button); 136 int code = extractKeycode(button); 143 type.setValue(button); 204 String button = type.getValue(); local 205 if (KEY.equals(button)) { 212 button = button + KEY_CODE_START + code + KEY_IMAGE_DELIM + uri + KEY_CODE_END; 214 Dependency.get(TunerService.class).setValue(setting, button); [all...] |
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/ |
LowStorageTest.java | 32 import android.widget.Button; 57 Button button = findViewById(R.id.button_run); local 58 button.setOnClickListener(mStartListener);
|