/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
H A D | BatterySaverController.java | 83 * Previously enabled or not; only for the event logging. Only use it from 126 return; // No need to send it if not enabled. 201 return; // No need to send it if not enabled. 259 /** @return whether battery saver is enabled or not. */ 299 final boolean enabled; 314 enabled = mEnabled; 317 if (enabled) { 326 pmi.powerHint(PowerHint.LOW_POWER, enabled ? 1 : 0); 344 Slog.i(TAG, "Sending broadcasts for mode: " + enabled); 350 .putExtra(PowerManager.EXTRA_POWER_SAVE_MODE, enabled) [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestSendToPresetReverb.cpp | 289 SLboolean enabled; local 290 enabled = alwaysOn || !previousEnabled; 291 if (enabled != previousEnabled) { 292 result = (*reverbItf)->SetPreset(reverbItf, enabled ? preset : SL_REVERBPRESET_NONE); 293 fprintf(stdout, "SetPreset(%d)=%d\n", enabled ? preset : SL_REVERBPRESET_NONE, result); 295 previousEnabled = enabled; 296 if (enabled) {
|
H A D | slesTestRecBuffQueue.cpp | 395 SLboolean enabled; local 396 result = (*aecItf)->IsEnabled(aecItf, &enabled); 398 printf("AEC is %s\n", enabled ? "enabled" : "not enabled"); 411 SLboolean enabled; local 412 result = (*agcItf)->IsEnabled(agcItf, &enabled); 414 printf("AGC is %s\n", enabled ? "enabled" : "not enabled"); 427 SLboolean enabled; local [all...] |
/frameworks/native/opengl/libagl/ |
H A D | state.cpp | 95 // in OpenGL, writing to the depth buffer is enabled by default. 136 static void enable_disable(ogles_context_t* c, GLenum cap, int enabled) argument 139 c->lighting.lights[cap-GL_LIGHT0].enable = enabled; 141 c->lighting.enabledLights |= (enabled<<(cap-GL_LIGHT0)); 147 c->point.smooth = enabled; 150 c->line.smooth = enabled; 153 c->polygonOffset.enable = enabled; 156 c->cull.enable = enabled; 159 c->lighting.enable = enabled; 162 c->lighting.colorMaterial.enable = enabled; [all...] |
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
H A D | KeyguardServiceDelegate.java | 74 public boolean enabled; field in class:KeyguardServiceDelegate.KeyguardState 89 enabled = true; 201 if (!mKeyguardState.enabled) { 202 mKeyguardService.setKeyguardEnabled(mKeyguardState.enabled); 367 public void setKeyguardEnabled(boolean enabled) { argument 369 mKeyguardService.setKeyguardEnabled(enabled); 371 mKeyguardState.enabled = enabled; 441 pw.println(prefix + "enabled=" + mKeyguardState.enabled); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | TextInputTimePickerView.java | 161 private void setError(boolean enabled) { argument 162 mErrorShowing = enabled; 164 mErrorLabel.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); 165 mHourLabel.setVisibility(enabled ? View.INVISIBLE : View.VISIBLE); 166 mMinuteLabel.setVisibility(enabled ? View.INVISIBLE : View.VISIBLE);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaFormat.java | 397 * verify that this feature was enabled. 713 * format to verify that this feature was enabled and the actual value used by the encoder. 1025 * Returns whether a feature is to be enabled ({@code true}) or disabled 1030 * @throws IllegalArgumentException if the feature was neither set to be enabled 1034 Integer enabled = (Integer)mMap.get(KEY_FEATURE_ + feature); 1035 if (enabled == null) { 1038 return enabled != 0; 1077 * Sets whether a feature is to be enabled ({@code true}) or disabled 1080 * If {@code enabled} is {@code true}, the feature is requested to be present. 1089 public void setFeatureEnabled(String feature, boolean enabled) { argument [all...] |
/frameworks/base/cmds/telecom/src/com/android/commands/telecom/ |
H A D | Telecom.java | 45 private static final String COMMAND_SET_PHONE_ACCOUNT_ENABLED = "set-phone-account-enabled"; 64 "usage: telecom set-phone-account-enabled <COMPONENT> <ID> <USER_SN>\n" + 74 "telecom set-phone-account-enabled: Enables the given phone account, if it has \n" + 139 private void runSetPhoneAccountEnabled(boolean enabled) throws RemoteException { argument 141 final boolean success = mTelecomService.enablePhoneAccount(handle, enabled); 143 System.out.println("Success - " + handle + (enabled ? " enabled." : " disabled."));
|
/frameworks/base/core/java/android/app/ |
H A D | INotificationManager.aidl | 56 void setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled); 58 * Updates the notification's enabled state. Additionally locks importance for all of the 62 void setNotificationsEnabledWithImportanceLockForPackage(String pkg, int uid, boolean enabled); 139 void setNotificationListenerAccessGranted(in ComponentName listener, boolean enabled); 140 void setNotificationAssistantAccessGranted(in ComponentName assistant, boolean enabled); 141 void setNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId, boolean enabled); 142 void setNotificationAssistantAccessGrantedForUser(in ComponentName assistant, int userId, boolean enabled);
|
H A D | RemoteAction.java | 66 * Sets whether this action is enabled. 68 public void setEnabled(boolean enabled) { argument 69 mEnabled = enabled; 73 * Return whether this action is enabled. 147 pw.print(" enabled=" + mEnabled);
|
/frameworks/base/core/jni/ |
H A D | android_os_Trace.cpp | 101 jclass clazz, jboolean enabled) { 102 ALOGV("%s: %d", __FUNCTION__, enabled); 104 atrace_set_tracing_enabled(enabled); 100 android_os_Trace_nativeSetTracingEnabled(JNIEnv* env, jclass clazz, jboolean enabled) argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedSwitchPreference.java | 161 public void setEnabled(boolean enabled) { argument 162 if (enabled && isDisabledByAdmin()) { 166 super.setEnabled(enabled);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeScreenBrightness.java | 157 private void setLightSensorEnabled(boolean enabled) { argument 158 if (enabled && !mRegistered && mLightSensor != null) { 163 } else if (!enabled && mRegistered) { 167 // Sensor is not enabled, hence we use the default brightness and are always ready.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PanelBar.java | 107 boolean enabled = panel.isEnabled(); 109 (enabled ? "" : " (disabled)")); 110 if (!enabled) {
|
/frameworks/base/services/core/java/com/android/server/lights/ |
H A D | LightsService.java | 100 public void setVrMode(boolean enabled) { argument 102 if (mVrModeEnabled != enabled) { 103 mVrModeEnabled = enabled;
|
/frameworks/native/include/binder/ |
H A D | TextOutput.h | 103 inline HexDump& setCArrayStyle(bool enabled); 190 inline HexDump& HexDump::setCArrayStyle(bool enabled) { argument 191 mCArrayStyle = enabled; return *this;
|
/frameworks/native/libs/binder/include/binder/ |
H A D | TextOutput.h | 103 inline HexDump& setCArrayStyle(bool enabled); 190 inline HexDump& HexDump::setCArrayStyle(bool enabled) { argument 191 mCArrayStyle = enabled; return *this;
|
/frameworks/opt/setupwizard/navigationbar/src/com/android/setupwizard/navigationbar/ |
H A D | SetupWizardNavBar.java | 183 public void setEnabled(boolean enabled) { argument 184 super.setEnabled(enabled); 185 // The color of the button is #de000000 / #deffffff when enabled. When disabled, apply 187 setAlpha(enabled ? 1.0f : 0.23f);
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
H A D | AppCompatDelegate.java | 146 * <p>This is enabled by default for some devices. The Action Bar replaces the title bar and 172 * If overlay is enabled, the action mode UI will be allowed to cover existing window content. 331 * enabled. 341 * @return true if the feature is enabled, false otherwise. 391 * @param enabled whether AppCompat should handle native action modes. 393 public abstract void setHandleNativeActionModesEnabled(boolean enabled); argument 482 * <p>When enabled, AppCompat can intercept some drawable inflation from the framework, which 511 public static void setCompatVectorFromResourcesEnabled(boolean enabled) { argument 512 VectorEnabledTintResources.setCompatVectorFromResourcesEnabled(enabled);
|
/frameworks/base/location/java/android/location/ |
H A D | ILocationManager.aidl | 93 boolean setProviderEnabledForUser(String provider, boolean enabled, int userId); 95 void setLocationEnabledForUser(boolean enabled, int userId); 100 void setTestProviderEnabled(String provider, boolean enabled, String opPackageName);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | A2dpProfile.java | 216 int enabled = mServiceWrapper.getOptionalCodecsEnabled(device); 217 if (enabled != BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN) { 218 return enabled == BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED; 223 // to have optional codecs enabled. 237 public void setHighQualityAudioEnabled(BluetoothDevice device, boolean enabled) { argument 238 int prefValue = enabled 245 if (enabled) {
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | ViewGroupImpl.java | 64 public void setEnabled_impl(boolean enabled) { argument 65 mSuperProvider.setEnabled_impl(enabled);
|
/frameworks/base/core/java/android/net/ |
H A D | INetworkPolicyManager.aidl | 60 3 - enabled 64 void setDeviceIdleMode(boolean enabled);
|
/frameworks/base/core/java/android/os/ |
H A D | Trace.java | 141 * Caches a copy of the enabled-tag bits. The "master" copy is held by the native code, 161 * Returns true if a trace tag is enabled. 206 * Set whether tracing is enabled in this process. Tracing is disabled shortly after Zygote 207 * initializes and re-enabled after processes fork from Zygote. This is done because Zygote 213 public static void setTracingEnabled(boolean enabled, int debugFlags) { argument 214 nativeSetTracingEnabled(enabled); 217 // Setting whether tracing is enabled may change the tags, so we update the cached tags
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | IInputMethod.aidl | 46 void setSessionEnabled(IInputMethodSession session, boolean enabled);
|