Home
last modified time | relevance | path

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

12345678910

/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.java68 public void setEnabled(Context context, boolean enable) { in setEnabled() argument
69 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/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DEnableDisablePreference.java124 private static void prepareArgs(@NonNull Bundle args, String packageName, boolean enable) { in prepareArgs() argument
126 args.putBoolean(ARG_ENABLE, enable); in prepareArgs()
135 final Boolean enable = getArguments().getBoolean(ARG_ENABLE); in onCreateGuidance() local
137 getString(enable ? R.string.device_apps_app_management_enable : in onCreateGuidance()
139 getString(enable ? R.string.device_apps_app_management_enable_desc : in onCreateGuidance()
147 boolean enable = getArguments().getBoolean(ARG_ENABLE); in onOk()
148 mMetricsFeatureProvider.action(getContext(), enable in onOk()
152 getArguments().getString(ARG_PACKAGE_NAME), enable in onOk()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java168 void onAdvertisingEnabled(int advertiserId, boolean enable, int status) throws Exception { in onAdvertisingEnabled() argument
171 + enable + ", status=" + status); in onAdvertisingEnabled()
182 callback.onAdvertisingEnabled(advertiserId, enable, status); in onAdvertisingEnabled()
262 void enableAdvertisingSet(int advertiserId, boolean enable, int duration, int maxExtAdvEvents) { in enableAdvertisingSet() argument
263 enableAdvertisingSetNative(advertiserId, enable, duration, maxExtAdvEvents); in enableAdvertisingSet()
293 void setPeriodicAdvertisingEnable(int advertiserId, boolean enable) { in setPeriodicAdvertisingEnable() argument
294 setPeriodicAdvertisingEnableNative(advertiserId, enable); in setPeriodicAdvertisingEnable()
380 void onPeriodicAdvertisingEnabled(int advertiserId, boolean enable, int status) in onPeriodicAdvertisingEnabled() argument
394 callback.onPeriodicAdvertisingEnabled(advertiserId, enable, status); in onPeriodicAdvertisingEnabled()
416 private native void enableAdvertisingSetNative(int advertiserId, boolean enable, int duration, in enableAdvertisingSetNative() argument
[all …]
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/vrlistener/
DVrListenerSettings.java63 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
64 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled()
65 return super.setEnabled(service, title, enable); in setEnabled()
74 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument
75 int logCategory = enable ? SettingsEnums.APP_SPECIAL_PERMISSION_VRHELPER_ALLOW in logSpecialPermissionChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/vrlistener/
DVrListenerSettings.java63 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
64 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled()
65 return super.setEnabled(service, title, enable); in setEnabled()
74 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument
75 int logCategory = enable ? SettingsEnums.APP_SPECIAL_PERMISSION_VRHELPER_ALLOW in logSpecialPermissionChange()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAccessSettings.java95 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
96 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled()
97 if (!enable) { in setEnabled()
124 protected void enable(ComponentName service) { in enable() method in NotificationAccessSettings
134 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument
135 int logCategory = enable ? SettingsEnums.APP_SPECIAL_PERMISSION_NOTIVIEW_ALLOW in logSpecialPermissionChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationAccessSettings.java95 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
96 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled()
97 if (!enable) { in setEnabled()
124 protected void enable(ComponentName service) { in enable() method in NotificationAccessSettings
134 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument
135 int logCategory = enable ? SettingsEnums.APP_SPECIAL_PERMISSION_NOTIVIEW_ALLOW in logSpecialPermissionChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DManagedServiceSettings.java145 final boolean enable = (boolean) newValue; in updateList()
147 return setEnabled(cn, finalTitle.toString(), enable); in updateList()
149 return setEnabled(cn, null, enable); in updateList()
169 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
170 if (!enable) { in setEnabled()
186 protected void enable(ComponentName service) { in enable() method in ManagedServiceSettings
225 (dialog, id) -> parent.enable(cn)) in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/utils/
DManagedServiceSettings.java145 final boolean enable = (boolean) newValue; in updateList()
147 return setEnabled(cn, finalTitle.toString(), enable); in updateList()
149 return setEnabled(cn, null, enable); in updateList()
169 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument
170 if (!enable) { in setEnabled()
186 protected void enable(ComponentName service) { in enable() method in ManagedServiceSettings
225 (dialog, id) -> parent.enable(cn)) in onCreateDialog()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java387 public void tryCdmaSetCategory(Context context, int category, boolean enable) { in tryCdmaSetCategory() argument
393 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable) in tryCdmaSetCategory()
399 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable) in tryCdmaSetCategory()
405 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable).apply(); in tryCdmaSetCategory()
410 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable).apply(); in tryCdmaSetCategory()
414 Log.w(TAG, "Ignoring SCPD command to " + (enable ? "enable" : "disable") in tryCdmaSetCategory()
466 boolean enable = getResourcesMethod().getBoolean(R.bool.show_message_history_in_launcher); in enableLauncher()
493 if (enable) { in enableLauncher()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java178 public boolean setEnable(boolean enable, String callingPackage) {
181 log("setEnable: " + enable);
185 enableOpportunisticNetwork(enable);
587 private void updateEnableState(boolean enable) { in updateEnableState() argument
588 mIsEnabled = enable; in updateEnableState()
597 private void enableOpportunisticNetwork(boolean enable) { in enableOpportunisticNetwork() argument
599 if (mIsEnabled != enable) { in enableOpportunisticNetwork()
600 updateEnableState(enable); in enableOpportunisticNetwork()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java347 boolean enable = true; in testTryCdmaSetCatergory()
353 CdmaSmsCbProgramData.CATEGORY_CMAS_EXTREME_THREAT, enable); in testTryCdmaSetCatergory()
355 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable); in testTryCdmaSetCatergory()
358 CdmaSmsCbProgramData.CATEGORY_CMAS_SEVERE_THREAT, enable); in testTryCdmaSetCatergory()
360 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable); in testTryCdmaSetCatergory()
363 CdmaSmsCbProgramData.CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY, enable); in testTryCdmaSetCatergory()
365 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable); in testTryCdmaSetCatergory()
368 CdmaSmsCbProgramData.CATEGORY_CMAS_TEST_MESSAGE, enable); in testTryCdmaSetCatergory()
370 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable); in testTryCdmaSetCatergory()
/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.java135 public void enable(boolean notifyDeviceOrientationChange) { in enable() method in InCallOrientationEventListener
141 super.enable(); in enable()
150 public void enable() { in enable() method in InCallOrientationEventListener
151 enable(false /* notifyDeviceOrientationChange */); in enable()
DAccelerometerListener.java100 public void enable(boolean enable) { in enable() method in AccelerometerListener
102 LogUtil.d(TAG, "enable(" + enable + ")"); in enable()
105 if (enable) { in enable()
/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.java478 boolean enable = in handleInputCountChanged()
481 if (!enable) { in handleInputCountChanged()
528 enable = true; in handleInputCountChanged()
533 if (DEBUG) Log.d(TAG, "Enable MainActivity: " + enable); in handleInputCountChanged()
538 enable in handleInputCountChanged()
544 Log.i(TAG, (enable ? "Un-hide" : "Hide") + " TV app."); in handleInputCountChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DDisplayWhiteBalancePreferenceControllerTest.java196 private void toggleAccessibilityInversion(boolean enable) { in toggleAccessibilityInversion() argument
198 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, enable ? 1 : 0); in toggleAccessibilityInversion()
201 private void toggleAccessibilityDaltonizer(boolean enable) { in toggleAccessibilityDaltonizer() argument
203 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, enable ? 1 : 0); in toggleAccessibilityDaltonizer()
/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/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackWrapper.java158 public void setStatus(boolean enable) { in setStatus() argument
159 if (enable == mIsEnabled) { in setStatus()
163 mIsEnabled = enable; in setStatus()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java834 private void setDefaultNonAdminRestrictions(UserInfo userInfo, boolean enable) { in setDefaultNonAdminRestrictions() argument
836 setUserRestriction(userInfo, restriction, enable); in setDefaultNonAdminRestrictions()
846 private void setOptionalNonAdminRestrictions(UserInfo userInfo, boolean enable) { in setOptionalNonAdminRestrictions() argument
848 setUserRestriction(userInfo, restriction, enable); in setOptionalNonAdminRestrictions()
860 public void setUserRestriction(UserInfo userInfo, String restriction, boolean enable) { in setUserRestriction() argument
862 mUserManager.setUserRestriction(restriction, enable, userHandle); in setUserRestriction()
/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/Settings/tests/unit/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java75 Button enable = (Button) findViewById(R.id.enable); in onCreate() local
76 enable.setOnClickListener(new BtOnClickListener(true /* enable */)); in onCreate()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp1143 jboolean enable) { in gattClientRegisterForNotificationsNative() argument
1147 if (enable) in gattClientRegisterForNotificationsNative()
1389 jint client_if, jboolean enable) { in gattClientScanFilterEnableNative() argument
1391 sGattIf->scanner->ScanFilterEnable(enable, in gattClientScanFilterEnableNative()
1759 p.enable = false; in parsePeriodicParams()
1771 p.enable = true; in parsePeriodicParams()
1866 static void enableSetCb(uint8_t advertiser_id, bool enable, uint8_t status) { in enableSetCb() argument
1871 enable, status); in enableSetCb()
1875 jint advertiser_id, jboolean enable, in enableAdvertisingSetNative() argument
1879 sGattIf->advertiser->Enable(advertiser_id, enable, in enableAdvertisingSetNative()
[all …]

12345678910