Home
last modified time | relevance | path

Searched refs:enable (Results 1 – 25 of 139) sorted by relevance

123456

/packages/apps/Nfc/src/com/android/nfc/
DNfcDiscoveryParameters.java38 public NfcDiscoveryParameters.Builder setEnableLowPowerDiscovery(boolean enable) { in setEnableLowPowerDiscovery() argument
39 mParameters.mEnableLowPowerDiscovery = enable; in setEnableLowPowerDiscovery()
43 public NfcDiscoveryParameters.Builder setEnableReaderMode(boolean enable) { in setEnableReaderMode() argument
44 mParameters.mEnableReaderMode = enable; in setEnableReaderMode()
46 if (enable) { in setEnableReaderMode()
53 public NfcDiscoveryParameters.Builder setEnableHostRouting(boolean enable) { in setEnableHostRouting() argument
54 mParameters.mEnableHostRouting = enable; in setEnableHostRouting()
58 public NfcDiscoveryParameters.Builder setEnableP2p(boolean enable) { in setEnableP2p() argument
59 mParameters.mEnableP2p = enable; in setEnableP2p()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DSharedPreferencesFeature.java69 public void setEnabled(Context context, boolean enable) { in setEnabled() argument
70 if (DEBUG) Log.d(TAG, mKey + " is set to " + enable); in setEnabled()
74 mEnabled = enable; in setEnabled()
75 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); in setEnabled()
76 } else if (mEnabled != enable) { in setEnabled()
77 mEnabled = enable; in setEnabled()
78 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); in setEnabled()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java166 void onAdvertisingEnabled(int advertiser_id, boolean enable, int status) throws Exception { in onAdvertisingEnabled() argument
169 + enable + ", status=" + status); in onAdvertisingEnabled()
180 callback.onAdvertisingEnabled(advertiser_id, enable, status); in onAdvertisingEnabled()
254 void enableAdvertisingSet(int advertiserId, boolean enable, int duration, int maxExtAdvEvents) { in enableAdvertisingSet() argument
255 enableAdvertisingSetNative(advertiserId, enable, duration, maxExtAdvEvents); in enableAdvertisingSet()
285 void setPeriodicAdvertisingEnable(int advertiserId, boolean enable) { in setPeriodicAdvertisingEnable() argument
286 setPeriodicAdvertisingEnableNative(advertiserId, enable); in setPeriodicAdvertisingEnable()
370 void onPeriodicAdvertisingEnabled(int advertiser_id, boolean enable, int status) in onPeriodicAdvertisingEnabled() argument
384 callback.onPeriodicAdvertisingEnabled(advertiser_id, enable, status); in onPeriodicAdvertisingEnabled()
401 int advertiserId, boolean enable, int duration, int maxExtAdvEvents); in enableAdvertisingSetNative() argument
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAccessSettings.java70 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
71 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled()
72 if (!enable) { in setEnabled()
99 protected void enable(ComponentName service) { in enable() method in NotificationAccessSettings
104 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument
105 int logCategory = enable ? MetricsEvent.APP_SPECIAL_PERMISSION_NOTIVIEW_ALLOW in logSpecialPermissionChange()
/packages/apps/Settings/src/com/android/settings/applications/
DVrListenerSettings.java56 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
57 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled()
58 return super.setEnabled(service, title, enable); in setEnabled()
62 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument
63 int logCategory = enable ? MetricsEvent.APP_SPECIAL_PERMISSION_VRHELPER_ALLOW in logSpecialPermissionChange()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java181 private void tryCdmaSetCategory(Context context, int category, boolean enable) { in tryCdmaSetCategory() argument
187 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable) in tryCdmaSetCategory()
193 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable) in tryCdmaSetCategory()
199 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable).apply(); in tryCdmaSetCategory()
204 CellBroadcastSettings.KEY_ENABLE_CMAS_TEST_ALERTS, enable).apply(); in tryCdmaSetCategory()
208 Log.w(TAG, "Ignoring SCPD command to " + (enable ? "enable" : "disable") in tryCdmaSetCategory()
/packages/apps/Settings/src/com/android/settings/utils/
DManagedServiceSettings.java151 final boolean enable = (boolean) newValue; in updateList()
152 return setEnabled(cn, summary, enable); in updateList()
170 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
171 if (!enable) { in setEnabled()
187 protected void enable(ComponentName service) { in enable() method in ManagedServiceSettings
228 parent.enable(cn); in onCreateDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DEnableDisablePreference.java148 private static void prepareArgs(@NonNull Bundle args, String packageName, boolean enable) { in prepareArgs() argument
150 args.putBoolean(ARG_ENABLE, enable); in prepareArgs()
157 final Boolean enable = getArguments().getBoolean(ARG_ENABLE); in onCreateGuidance() local
159 getString(enable ? R.string.device_apps_app_management_enable : in onCreateGuidance()
161 getString(enable ? R.string.device_apps_app_management_enable_desc : in onCreateGuidance()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DAccessibleDragListenerAdapter.java57 protected void enableAccessibleDrag(boolean enable) { in enableAccessibleDrag() argument
59 setEnableForLayout((CellLayout) mViewGroup.getChildAt(i), enable); in enableAccessibleDrag() local
63 protected final void setEnableForLayout(CellLayout layout, boolean enable) { in setEnableForLayout() argument
64 layout.enableAccessibleDrag(enable, mDragType); in setEnableForLayout()
/packages/apps/Dialer/java/com/android/incallui/
DInCallOrientationEventListener.java134 public void enable(boolean notify) { in enable() method in InCallOrientationEventListener
140 super.enable(); in enable()
149 public void enable() { in enable() method in InCallOrientationEventListener
150 enable(false); in enable()
DAccelerometerListener.java100 public void enable(boolean enable) { in enable() method in AccelerometerListener
102 Log.d(TAG, "enable(" + enable + ")"); in enable()
105 if (enable) { in enable()
DProximitySensor.java85 mAccelerometerListener.enable(false); in tearDown()
115 mAccelerometerListener.enable(mIsPhoneOffhook); in onStateChange()
154 mAccelerometerListener.enable(isDisplayOn); in onDisplayStateChanged()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPeopleAndOptionsData.java173 final boolean enable) { in enableConversationNotifications() argument
177 mConversationId, enable); in enableConversationNotifications()
191 final BindingBase<PeopleAndOptionsData> binding, final boolean enable) { in enableConversationNotificationVibration() argument
195 mConversationId, enable); in enableConversationNotificationVibration()
/packages/apps/TV/src/com/android/tv/
DTvApplication.java561 boolean enable = (calledByTunerServiceChanged && tunerServiceEnabled) in handleInputCountChanged()
563 if (!enable) { in handleInputCountChanged()
574 enable = true; in handleInputCountChanged()
579 if (DEBUG) Log.d(TAG, "Enable MainActivity: " + enable); in handleInputCountChanged()
583 int newState = enable ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : in handleInputCountChanged()
588 Log.i(TAG, (enable ? "Un-hide" : "Hide") + " Live TV."); in handleInputCountChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java152 mIdleRunner.enable(); in addOnGLIdleListener()
319 Profile.enable(20); // take a sample every 20ms in onSurfaceChanged()
431 if (!mIdleListeners.isEmpty()) mIdleRunner.enable(); in onDrawFrameLocked()
510 if (!mRenderRequested && !mIdleListeners.isEmpty()) enable(); in run()
514 public void enable() { in enable() method in GLRootView.IdleRunner
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp1145 jboolean enable) { in gattClientRegisterForNotificationsNative() argument
1149 if (enable) in gattClientRegisterForNotificationsNative()
1396 jint client_if, jboolean enable) { in gattClientScanFilterEnableNative() argument
1398 sGattIf->scanner->ScanFilterEnable(enable, in gattClientScanFilterEnableNative()
1764 p.enable = false; in parsePeriodicParams()
1776 p.enable = true; in parsePeriodicParams()
1871 static void enableSetCb(uint8_t advertiser_id, bool enable, uint8_t status) { in enableSetCb() argument
1876 enable, status); in enableSetCb()
1880 jint advertiser_id, jboolean enable, in enableAdvertisingSetNative() argument
1884 sGattIf->advertiser->Enable(advertiser_id, enable, in enableAdvertisingSetNative()
[all …]
/packages/services/Telephony/src/com/android/phone/
DCdmaVoicePrivacySwitchPreference.java86 final int enable = ((int[]) ar.result)[0]; in handleGetVPResponse() local
87 setChecked(enable != 0); in handleGetVPResponse()
90 android.provider.Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED, enable); in handleGetVPResponse() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTextToSpeechFragment.java472 private void updateWidgetState(boolean enable) { in updateWidgetState() argument
473 mEngineSettingsPref.setEnabled(enable); in updateWidgetState()
474 mPlayExample.setEnabled(enable); in updateWidgetState()
475 mDefaultRatePref.setEnabled(enable); in updateWidgetState()
476 mEngineStatus.setEnabled(enable); in updateWidgetState()
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackWrapper.java160 public void setStatus(boolean enable) { in setStatus() argument
161 if (enable == mIsEnabled) { in setStatus()
165 mIsEnabled = enable; in setStatus()
/packages/apps/Settings/tests/app/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java73 Button enable = (Button) findViewById(R.id.enable); in onCreate() local
74 enable.setOnClickListener(new BtOnClickListener(true /* enable */)); in onCreate()
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java450 public void setAudioTrackAndClosedCaption(boolean enable) { in setAudioTrackAndClosedCaption() argument
453 enable ? 1 : 0); in setAudioTrackAndClosedCaption()
456 enable ? mVolume : 0.0f); in setAudioTrackAndClosedCaption()
459 enable); in setAudioTrackAndClosedCaption()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDiscoverableEnabler.java135 private void setEnabled(boolean enable) { in setEnabled() argument
136 if (enable) { in setEnabled()
144 Log.d(TAG, "setEnabled(): enabled = " + enable + "timeout = " + timeout); in setEnabled()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountServerBaseFragment.java199 public void enableNextButton(boolean enable) { in enableNextButton() argument
203 mProceedButton.setEnabled(enable); in enableNextButton()
205 setNextButtonEnabled(enable); in enableNextButton()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java747 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
752 enable); in enableButton()
754 speakerButtonController.setEnabled(enable); in enableButton()
756 muteButton.setEnabled(enable); in enableButton()
758 cameraOffButton.setEnabled(enable); in enableButton()
760 switchOnHoldCallController.setEnabled(enable); in enableButton()
/packages/apps/Camera2/src/com/android/camera/
DVideoUI.java162 public void setSwipingEnabled(boolean enable) { in setSwipingEnabled() argument
163 mActivity.setSwipingEnabled(enable); in setSwipingEnabled()
166 public void showPreviewBorder(boolean enable) { in showPreviewBorder() argument

123456