/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDiscoveryParameters.java | 40 public NfcDiscoveryParameters.Builder setEnableLowPowerDiscovery(boolean enable) { in setEnableLowPowerDiscovery() argument 41 mParameters.mEnableLowPowerDiscovery = enable; in setEnableLowPowerDiscovery() 45 public NfcDiscoveryParameters.Builder setEnableReaderMode(boolean enable) { in setEnableReaderMode() argument 46 mParameters.mEnableReaderMode = enable; in setEnableReaderMode() 48 if (enable) { in setEnableReaderMode() 55 public NfcDiscoveryParameters.Builder setEnableHostRouting(boolean enable) { in setEnableHostRouting() argument 56 mParameters.mEnableHostRouting = enable; in setEnableHostRouting() 60 public NfcDiscoveryParameters.Builder setEnableP2p(boolean enable) { in setEnableP2p() argument 61 mParameters.mEnableP2p = enable; in setEnableP2p()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/rotary/ |
D | DirectManipulationStateTest.java | 67 mDirectManipulationState.enable(mTimePicker); in enable_timePicker_storesDescendantFocusability() 75 mDirectManipulationState.enable(mTimePicker); in enable_timePicker_storesViewInDirectManipulation() 83 mDirectManipulationState.enable(mTimePicker); in enable_timePickerChild_descendantFocusabilityUpdates() 84 mDirectManipulationState.enable(mNumberPicker); in enable_timePickerChild_descendantFocusabilityUpdates() 92 mDirectManipulationState.enable(mTimePicker); in enable_timePickerChild_viewInDirectManipulationUpdates() 93 mDirectManipulationState.enable(mNumberPicker); in enable_timePickerChild_viewInDirectManipulationUpdates() 101 mDirectManipulationState.enable(mTimePicker); in disable_viewInDirectManipulationReset() 109 mDirectManipulationState.enable(mTimePicker); in disable_descendantFocusabilityReset()
|
/packages/apps/TV/common/src/com/android/tv/common/feature/ |
D | SharedPreferencesFeature.java | 68 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/ |
D | EnableDisablePreference.java | 137 private static void prepareArgs(@NonNull Bundle args, String packageName, boolean enable) { in prepareArgs() argument 139 args.putBoolean(ARG_ENABLE, enable); in prepareArgs() 148 final Boolean enable = getArguments().getBoolean(ARG_ENABLE); in onCreateGuidance() local 150 getString(enable ? R.string.device_apps_app_management_enable : in onCreateGuidance() 152 getString(enable ? R.string.device_apps_app_management_enable_desc : in onCreateGuidance() 160 boolean enable = getArguments().getBoolean(ARG_ENABLE); in onOk() 161 mMetricsFeatureProvider.action(getContext(), enable in onOk() 165 getArguments().getString(ARG_PACKAGE_NAME), enable in onOk()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/ |
D | DirectManipulationHelper.java | 58 public static boolean enableDirectManipulationMode(@NonNull View view, boolean enable) { in enableDirectManipulationMode() argument 67 event.setEventType(enable in enableDirectManipulationMode() 102 public static void setSupportsRotateDirectly(@NonNull View view, boolean enable) { in setSupportsRotateDirectly() argument 103 view.setContentDescription(enable ? DIRECT_MANIPULATION : null); in setSupportsRotateDirectly() 122 public static void setSupportsDirectManipulation(@NonNull View view, boolean enable) { in setSupportsDirectManipulation() argument 123 setSupportsRotateDirectly(view, enable); in setSupportsDirectManipulation()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AdvertiseManager.java | 168 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() 267 void enableAdvertisingSet(int advertiserId, boolean enable, int duration, int maxExtAdvEvents) { in enableAdvertisingSet() argument 273 enableAdvertisingSetNative(advertiserId, enable, duration, maxExtAdvEvents); in enableAdvertisingSet() 328 void setPeriodicAdvertisingEnable(int advertiserId, boolean enable) { in setPeriodicAdvertisingEnable() argument 334 setPeriodicAdvertisingEnableNative(advertiserId, enable); in setPeriodicAdvertisingEnable() 420 void onPeriodicAdvertisingEnabled(int advertiserId, boolean enable, int status) in onPeriodicAdvertisingEnabled() argument 434 callback.onPeriodicAdvertisingEnabled(advertiserId, enable, status); in onPeriodicAdvertisingEnabled() 456 private native void enableAdvertisingSetNative(int advertiserId, boolean enable, int duration, in enableAdvertisingSetNative() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/vrlistener/ |
D | VrListenerSettings.java | 57 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument 58 logSpecialPermissionChange(enable, service.getPackageName()); in setEnabled() 59 return super.setEnabled(service, title, enable); in setEnabled() 68 void logSpecialPermissionChange(boolean enable, String packageName) { in logSpecialPermissionChange() argument 69 int logCategory = enable ? SettingsEnums.APP_SPECIAL_PERMISSION_VRHELPER_ALLOW in logSpecialPermissionChange()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/vrlistener/ |
D | VrListenerSettings.java | 63 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/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/rotary/ |
D | RotaryFragment.java | 214 private static void enableApplication(Context context, String packageName, boolean enable) { in enableApplication() argument 224 int desiredState = enable ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED in enableApplication() 228 if (isEnabled != enable in enableApplication() 230 Log.d(TAG, "Application state updated for " + packageName + ": " + enable); in enableApplication() 256 private static void enableRotaryService(Context context, boolean enable) { in enableRotaryService() argument 282 if (enable) { in enableRotaryService() 302 int desiredState = enable ? ON : OFF; in enableRotaryService()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | NotificationAccessSettings.java | 95 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/apps/Settings/src/com/android/settings/utils/ |
D | ManagedServiceSettings.java | 140 final boolean enable = (boolean) newValue; in updateList() 142 return setEnabled(cn, finalTitle.toString(), enable); in updateList() 144 return setEnabled(cn, null, enable); in updateList() 164 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument 165 if (!enable) { in setEnabled() 181 protected void enable(ComponentName service) { in enable() method in ManagedServiceSettings 220 (dialog, id) -> parent.enable(cn)) in onCreateDialog()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/ |
D | ManagedServiceSettings.java | 140 final boolean enable = (boolean) newValue; in updateList() 142 return setEnabled(cn, finalTitle.toString(), enable); in updateList() 144 return setEnabled(cn, null, enable); in updateList() 164 protected boolean setEnabled(ComponentName service, String title, boolean enable) { in setEnabled() argument 165 if (!enable) { in setEnabled() 181 protected void enable(ComponentName service) { in enable() method in ManagedServiceSettings 220 (dialog, id) -> parent.enable(cn)) in onCreateDialog()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | OpportunisticNetworkService.java | 189 public boolean setEnable(boolean enable, String callingPackage) { 192 log("setEnable: " + enable); 196 enableOpportunisticNetwork(enable); 601 private void updateEnableState(boolean enable) { in updateEnableState() argument 602 mIsEnabled = enable; in updateEnableState() 611 private void enableOpportunisticNetwork(boolean enable) { in enableOpportunisticNetwork() argument 613 if (mIsEnabled != enable) { in enableOpportunisticNetwork() 614 updateEnableState(enable); in enableOpportunisticNetwork()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 397 public void tryCdmaSetCategory(Context context, int category, boolean enable) { in tryCdmaSetCategory() argument 403 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable) in tryCdmaSetCategory() 409 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable) in tryCdmaSetCategory() 415 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable).apply(); in tryCdmaSetCategory() 420 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable).apply(); in tryCdmaSetCategory() 424 Log.w(TAG, "Ignoring SCPD command to " + (enable ? "enable" : "disable") in tryCdmaSetCategory() 476 boolean enable = getResourcesMethod().getBoolean(R.bool.show_message_history_in_launcher); in enableLauncher() 503 if (enable) { in enableLauncher()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverTest.java | 338 boolean enable = true; in testTryCdmaSetCatergory() 344 CdmaSmsCbProgramData.CATEGORY_CMAS_EXTREME_THREAT, enable); in testTryCdmaSetCatergory() 346 CellBroadcastSettings.KEY_ENABLE_CMAS_EXTREME_THREAT_ALERTS, enable); in testTryCdmaSetCatergory() 349 CdmaSmsCbProgramData.CATEGORY_CMAS_SEVERE_THREAT, enable); in testTryCdmaSetCatergory() 351 CellBroadcastSettings.KEY_ENABLE_CMAS_SEVERE_THREAT_ALERTS, enable); in testTryCdmaSetCatergory() 354 CdmaSmsCbProgramData.CATEGORY_CMAS_CHILD_ABDUCTION_EMERGENCY, enable); in testTryCdmaSetCatergory() 356 CellBroadcastSettings.KEY_ENABLE_CMAS_AMBER_ALERTS, enable); in testTryCdmaSetCatergory() 359 CdmaSmsCbProgramData.CATEGORY_CMAS_TEST_MESSAGE, enable); in testTryCdmaSetCatergory() 361 CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, enable); in testTryCdmaSetCatergory()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | AccessibleDragListenerAdapter.java | 78 protected void enableAccessibleDrag(boolean enable) { in enableAccessibleDrag() argument 80 setEnableForLayout((CellLayout) mViewGroup.getChildAt(i), enable); in enableAccessibleDrag() local 84 protected final void setEnableForLayout(CellLayout layout, boolean enable) { in setEnableForLayout() argument 85 layout.setDragAndDropAccessibilityDelegate(enable ? mDelegateFactory.apply(layout) : null); in setEnableForLayout()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallOrientationEventListener.java | 135 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()
|
D | AccelerometerListener.java | 100 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/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowNfcAdapter.java | 58 public void setEnabled(boolean enable) { in setEnabled() argument 59 mIsNfcEnabled = enable; in setEnabled() 81 protected boolean enable() { in enable() method in ShadowNfcAdapter
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | OverviewActionsView.java | 164 public void updateHiddenFlags(@ActionsHiddenFlags int visibilityFlags, boolean enable) { in updateHiddenFlags() argument 165 if (enable) { in updateHiddenFlags() 182 public void updateDisabledFlags(@ActionsDisabledFlags int disabledFlags, boolean enable) { in updateDisabledFlags() argument 183 if (enable) { in updateDisabledFlags()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | PeopleAndOptionsData.java | 173 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/Car/Settings/src/com/android/car/settings/common/ |
D | SeekBarPreference.java | 372 private void setInDirectManipulationMode(View view, boolean enable) { in setInDirectManipulationMode() argument 373 mInDirectManipulationMode = enable; in setInDirectManipulationMode() 374 DirectManipulationHelper.enableDirectManipulationMode(mSeekBar, enable); in setInDirectManipulationMode() 380 view.setSelected(enable); in setInDirectManipulationMode() 381 mSeekBar.setSelected(enable); in setInDirectManipulationMode()
|
/packages/apps/TV/src/com/android/tv/ |
D | TvApplication.java | 478 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/ |
D | DisplayWhiteBalancePreferenceControllerTest.java | 196 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/ |
D | CdmaVoicePrivacySwitchPreference.java | 86 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
|