Home
last modified time | relevance | path

Searched refs:buttonId (Results 1 – 9 of 9) sorted by relevance

/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadView.java326 private int getKeyButtonAnimationDelay(int buttonId) { in getKeyButtonAnimationDelay() argument
329 if (buttonId == R.id.three) { in getKeyButtonAnimationDelay()
331 } else if (buttonId == R.id.six) { in getKeyButtonAnimationDelay()
333 } else if (buttonId == R.id.nine) { in getKeyButtonAnimationDelay()
335 } else if (buttonId == R.id.pound) { in getKeyButtonAnimationDelay()
337 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
339 } else if (buttonId == R.id.five) { in getKeyButtonAnimationDelay()
341 } else if (buttonId == R.id.eight) { in getKeyButtonAnimationDelay()
343 } else if (buttonId == R.id.zero) { in getKeyButtonAnimationDelay()
345 } else if (buttonId == R.id.one) { in getKeyButtonAnimationDelay()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java133 public void onButtonVisibilityChanged(ButtonManager buttonManager, int buttonId); in onButtonVisibilityChanged() argument
138 public void onButtonEnabledChanged(ButtonManager buttonManager, int buttonId); in onButtonEnabledChanged() argument
245 private MultiToggleImageButton getButtonOrError(int buttonId) { in getButtonOrError() argument
246 switch (buttonId) { in getButtonOrError()
288 throw new IllegalArgumentException("button not known by id=" + buttonId); in getButtonOrError()
297 private ImageButton getImageButtonOrError(int buttonId) { in getImageButtonOrError() argument
298 switch (buttonId) { in getImageButtonOrError()
325 throw new IllegalArgumentException("button not known by id=" + buttonId); in getImageButtonOrError()
336 public void initializeButton(int buttonId, ButtonCallback cb) { in initializeButton() argument
337 initializeButton(buttonId, cb, null); in initializeButton()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java201 int buttonId = getButtonId(); in setImageViewResources() local
208 views.setImageViewResource(buttonId, getButtonImageId(false)); in setImageViewResources()
215 views.setImageViewResource(buttonId, getButtonImageId(true)); in setImageViewResources()
228 views.setImageViewResource(buttonId, getButtonImageId(true)); in setImageViewResources()
234 views.setImageViewResource(buttonId, getButtonImageId(false)); in setImageViewResources()
789 int buttonId) { in getLaunchPendingIntent() argument
793 launchIntent.setData(Uri.parse("custom:" + buttonId)); in getLaunchPendingIntent()
819 int buttonId = Integer.parseInt(data.getSchemeSpecificPart()); in onReceive() local
820 if (buttonId == BUTTON_WIFI) { in onReceive()
822 } else if (buttonId == BUTTON_BRIGHTNESS) { in onReceive()
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DIndicatorIconController.java99 public void onButtonVisibilityChanged(ButtonManager buttonManager, int buttonId) { in onButtonVisibilityChanged() argument
100 syncIndicatorWithButton(buttonId); in onButtonVisibilityChanged()
104 public void onButtonEnabledChanged(ButtonManager buttonManager, int buttonId) { in onButtonEnabledChanged() argument
105 syncIndicatorWithButton(buttonId); in onButtonEnabledChanged()
112 private void syncIndicatorWithButton(int buttonId) { in syncIndicatorWithButton() argument
113 switch (buttonId) { in syncIndicatorWithButton()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java1409 public static int getResponseFromButtonId(int buttonId) { in getResponseFromButtonId() argument
1411 if (buttonId == R.id.response_yes) { in getResponseFromButtonId()
1413 } else if (buttonId == R.id.response_maybe) { in getResponseFromButtonId()
1415 } else if (buttonId == R.id.response_no) { in getResponseFromButtonId()
1424 int buttonId; in findButtonIdForResponse() local
1427 buttonId = R.id.response_yes; in findButtonIdForResponse()
1430 buttonId = R.id.response_maybe; in findButtonIdForResponse()
1433 buttonId = R.id.response_no; in findButtonIdForResponse()
1436 buttonId = -1; in findButtonIdForResponse()
1438 return buttonId; in findButtonIdForResponse()
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DCallButtonFragment.java369 public void showButton(int buttonId, boolean show) { in showButton() argument
370 mButtonVisibilityMap.put(buttonId, show ? BUTTON_VISIBLE : BUTTON_HIDDEN); in showButton()
374 public void enableButton(int buttonId, boolean enable) { in enableButton() argument
375 final View button = getButtonById(buttonId); in enableButton()
DCallButtonPresenter.java456 void showButton(int buttonId, boolean show); in showButton() argument
457 void enableButton(int buttonId, boolean enable); in enableButton() argument
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java2136 int buttonId = ButtonManager.BUTTON_HDR;
2139 buttonId = ButtonManager.BUTTON_HDR_PLUS;
2141 buttonManager.showButton(buttonId);
2142 buttonManager.disableButton(buttonId);
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java3141 int buttonId, ComponentName activityName, int fallbackDrawableId, in updateTextButtonWithIconFromExternalActivity() argument
3148 TextView button = (TextView) findViewById(buttonId); in updateTextButtonWithIconFromExternalActivity()
3168 int buttonId, ComponentName activityName, int fallbackDrawableId, in updateButtonWithIconFromExternalActivity() argument
3170 ImageView button = (ImageView) findViewById(buttonId); in updateButtonWithIconFromExternalActivity()
3187 private void updateTextButtonWithDrawable(int buttonId, Drawable d) { in updateTextButtonWithDrawable() argument
3188 TextView button = (TextView) findViewById(buttonId); in updateTextButtonWithDrawable()
3192 private void updateButtonWithDrawable(int buttonId, Drawable.ConstantState d) { in updateButtonWithDrawable() argument
3193 ImageView button = (ImageView) findViewById(buttonId); in updateButtonWithDrawable()