Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 147) sorted by relevance

123456

/frameworks/base/media/java/android/media/audiofx/
DEnvironmentalReverb.java529 public Settings(String settings) { in Settings() argument
530 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
533 throw new IllegalArgumentException("settings: " + settings); in Settings()
631 Settings settings = new Settings(); in getProperties() local
632 settings.roomLevel = byteArrayToShort(param, 0); in getProperties()
633 settings.roomHFLevel = byteArrayToShort(param, 2); in getProperties()
634 settings.decayTime = byteArrayToInt(param, 4); in getProperties()
635 settings.decayHFRatio = byteArrayToShort(param, 8); in getProperties()
636 settings.reflectionsLevel = byteArrayToShort(param, 10); in getProperties()
637 settings.reflectionsDelay = byteArrayToInt(param, 12); in getProperties()
[all …]
DEqualizer.java467 public Settings(String settings) { in Settings() argument
468 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
471 throw new IllegalArgumentException("settings: " + settings); in Settings()
490 throw new IllegalArgumentException("settings: " + settings); in Settings()
533 Settings settings = new Settings(); in getProperties() local
534 settings.curPreset = byteArrayToShort(param, 0); in getProperties()
535 settings.numBands = byteArrayToShort(param, 2); in getProperties()
536 settings.bandLevels = new short[mNumBands]; in getProperties()
538 settings.bandLevels[i] = byteArrayToShort(param, 4 + 2*i); in getProperties()
540 return settings; in getProperties()
[all …]
DPresetReverb.java249 public Settings(String settings) { in Settings() argument
250 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
253 throw new IllegalArgumentException("settings: " + settings); in Settings()
292 Settings settings = new Settings(); in getProperties() local
295 settings.preset = value[0]; in getProperties()
296 return settings; in getProperties()
307 public void setProperties(PresetReverb.Settings settings) in setProperties() argument
309 checkStatus(setParameter(PARAM_PRESET, settings.preset)); in setProperties()
DVirtualizer.java234 public Settings(String settings) { in Settings() argument
235 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
238 throw new IllegalArgumentException("settings: " + settings); in Settings()
277 Settings settings = new Settings(); in getProperties() local
280 settings.strength = value[0]; in getProperties()
281 return settings; in getProperties()
292 public void setProperties(Virtualizer.Settings settings) in setProperties() argument
294 checkStatus(setParameter(PARAM_STRENGTH, settings.strength)); in setProperties()
DBassBoost.java232 public Settings(String settings) { in Settings() argument
233 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
236 throw new IllegalArgumentException("settings: " + settings); in Settings()
275 Settings settings = new Settings(); in getProperties() local
278 settings.strength = value[0]; in getProperties()
279 return settings; in getProperties()
290 public void setProperties(BassBoost.Settings settings) in setProperties() argument
292 checkStatus(setParameter(PARAM_STRENGTH, settings.strength)); in setProperties()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java141 Settings settings = new Settings(getContext().getFilesDir()); in testSettingsReadOld() local
142 assertEquals(true, settings.readLPw(null)); in testSettingsReadOld()
143 assertNotNull(settings.peekPackageLPr(PACKAGE_NAME_3)); in testSettingsReadOld()
144 assertNotNull(settings.peekPackageLPr(PACKAGE_NAME_1)); in testSettingsReadOld()
146 PackageSetting ps = settings.peekPackageLPr(PACKAGE_NAME_1); in testSettingsReadOld()
150 ps = settings.peekPackageLPr(PACKAGE_NAME_2); in testSettingsReadOld()
159 Settings settings = new Settings(getContext().getFilesDir()); in testNewPackageRestrictionsFile() local
160 assertEquals(true, settings.readLPw(null)); in testNewPackageRestrictionsFile()
163 settings = new Settings(getContext().getFilesDir()); in testNewPackageRestrictionsFile()
164 assertEquals(true, settings.readLPw(null)); in testNewPackageRestrictionsFile()
[all …]
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DProfiledWebView.java80 WebSettingsClassic settings = getWebViewClassic().getSettings(); in init() local
81 settings.setJavaScriptEnabled(true); in init()
82 settings.setSupportZoom(true); in init()
83 settings.setEnableSmoothTransition(true); in init()
84 settings.setBuiltInZoomControls(true); in init()
85 settings.setLoadWithOverviewMode(true); in init()
86 settings.setProperty("use_minimal_memory", "false"); // prefetch tiles, as browser does in init()
93 WebSettingsClassic settings = getWebViewClassic().getSettings(); in setUseMinimalMemory() local
94 settings.setProperty("use_minimal_memory", minimal ? "true" : "false"); in setUseMinimalMemory()
123 WebSettingsClassic settings = getWebViewClassic().getSettings(); in startScrollTest() local
[all …]
/frameworks/base/core/java/android/webkit/
DZoomManager.java611 WebSettings settings = mWebView.getSettings();
612 return settings != null && settings.getUseWideViewPort();
634 WebSettingsClassic settings = mWebView.getSettings();
642 settings.setDoubleTapToastCount(0);
648 if (settings.getUseFixedViewport()) {
659 if (settings.isNarrowColumnLayout()
730 final WebSettings settings = mWebView.getSettings();
735 && settings.supportZoom() && settings.getBuiltInZoomControls();
1019 WebSettingsClassic settings = mWebView.getSettings();
1020 if (zoomOverviewWidthChanged && settings.isNarrowColumnLayout() &&
[all …]
DZoomControlEmbedded.java44 WebSettingsClassic settings = mWebView.getSettings(); in show() local
45 int count = settings.getDoubleTapToastCount(); in show()
47 settings.setDoubleTapToastCount(--count); in show()
/frameworks/wilhelm/src/itf/
DIAudioEncoder.c31 SLAudioEncoderSettings settings = *pSettings; in IAudioEncoder_SetEncoderSettings() local
33 thiz->mSettings = settings; in IAudioEncoder_SetEncoderSettings()
52 SLAudioEncoderSettings settings = thiz->mSettings; in IAudioEncoder_GetEncoderSettings() local
54 *pSettings = settings; in IAudioEncoder_GetEncoderSettings()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DTestShellActivity.java879 WebSettingsClassic settings = WebViewClassic.fromWebView(webview).getSettings(); in setDefaultWebSettings() local
880 settings.setAppCacheEnabled(true); in setDefaultWebSettings()
881 settings.setAppCachePath(getApplicationContext().getCacheDir().getPath()); in setDefaultWebSettings()
882 settings.setAppCacheMaxSize(Long.MAX_VALUE); in setDefaultWebSettings()
883 settings.setJavaScriptEnabled(true); in setDefaultWebSettings()
884 settings.setJavaScriptCanOpenWindowsAutomatically(true); in setDefaultWebSettings()
885 settings.setSupportMultipleWindows(true); in setDefaultWebSettings()
886 settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL); in setDefaultWebSettings()
887 settings.setDatabaseEnabled(true); in setDefaultWebSettings()
888 settings.setDatabasePath(getDir("databases",0).getAbsolutePath()); in setDefaultWebSettings()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaPresetReverbTest.java161 PresetReverb.Settings settings = mReverb.getProperties(); in test1_1Properties() local
163 if (settings.preset == (short)PresetReverb.PRESET_LARGEROOM) { in test1_1Properties()
166 String str = settings.toString(); in test1_1Properties()
167 settings = new PresetReverb.Settings(str); in test1_1Properties()
168 settings.preset = newPreset; in test1_1Properties()
169 mReverb.setProperties(settings); in test1_1Properties()
170 settings = mReverb.getProperties(); in test1_1Properties()
171 assertEquals(msg +": setProperties failed", newPreset, settings.preset); in test1_1Properties()
DMediaEnvReverbTest.java314 EnvironmentalReverb.Settings settings = mReverb.getProperties(); in test1_5Properties() local
316 if (settings.roomLevel == 0) { in test1_5Properties()
319 String str = settings.toString(); in test1_5Properties()
320 settings = new EnvironmentalReverb.Settings(str); in test1_5Properties()
321 settings.roomLevel = newRoomLevel; in test1_5Properties()
322 mReverb.setProperties(settings); in test1_5Properties()
323 settings = mReverb.getProperties(); in test1_5Properties()
325 (settings.roomLevel > (newRoomLevel - MILLIBEL_TOLERANCE)) && in test1_5Properties()
326 (settings.roomLevel < (newRoomLevel + MILLIBEL_TOLERANCE))); in test1_5Properties()
DMediaBassBoostTest.java160 BassBoost.Settings settings = mBassBoost.getProperties(); in test1_1Properties() local
161 String str = settings.toString(); in test1_1Properties()
162 settings = new BassBoost.Settings(str); in test1_1Properties()
163 mBassBoost.setProperties(settings); in test1_1Properties()
DMediaVirtualizerTest.java161 Virtualizer.Settings settings = mVirtualizer.getProperties(); in test1_1Properties() local
162 String str = settings.toString(); in test1_1Properties()
163 settings = new Virtualizer.Settings(str); in test1_1Properties()
164 mVirtualizer.setProperties(settings); in test1_1Properties()
DMediaEqualizerTest.java229 Equalizer.Settings settings = mEqualizer.getProperties(); in test1_3Properties() local
230 String str = settings.toString(); in test1_3Properties()
231 settings = new Equalizer.Settings(str); in test1_3Properties()
232 mEqualizer.setProperties(settings); in test1_3Properties()
/frameworks/base/docs/html/design/patterns/
Dsettings.jd9 arise. The settings predetermine what will always happen in those situations (see design
18 <h4 id="settings-access">Provide access to Settings in the action overflow</h4>
39 they do everywhere else in your app. More settings means more choices to make, and too many are
53 <h4 id="group-settings">If you still have lots of settings, group related settings together</h4>
56 present a list of 10 or more settings (even after applying the criteria above), users will have
59 <p>You can remedy this by dividing some or all of the settings into groups, effectively turning
60 one long list into multiple shorter lists. A group of related settings can be presented in one of
68 <p>You can use one or both these grouping techniques to organize your app's settings.</p>
71 to a subscreen of related settings. In addition, the items themselves are grouped under section
82 <p>Grouping settings is not an exact science, but here's some advice for how to approach it, based
[all …]
/frameworks/wilhelm/tests/sandbox/
Dreverb.c113 void slesutPrintEnvironmentalReverbSettings(const SLEnvironmentalReverbSettings *settings) in slesutPrintEnvironmentalReverbSettings() argument
115 printf("roomLevel: %d\n", settings->roomLevel); in slesutPrintEnvironmentalReverbSettings()
116 printf("roomHFLevel: %d\n", settings->roomHFLevel); in slesutPrintEnvironmentalReverbSettings()
117 printf("decayTime: %d\n", settings->decayTime); in slesutPrintEnvironmentalReverbSettings()
118 printf("decayHFRatio: %d\n", settings->decayHFRatio); in slesutPrintEnvironmentalReverbSettings()
119 printf("reflectionsLevel: %d\n", settings->reflectionsLevel); in slesutPrintEnvironmentalReverbSettings()
120 printf("reflectionsDelay: %d\n", settings->reflectionsDelay); in slesutPrintEnvironmentalReverbSettings()
121 printf("reverbLevel: %d\n", settings->reverbLevel); in slesutPrintEnvironmentalReverbSettings()
122 printf("reverbDelay: %d\n", settings->reverbDelay); in slesutPrintEnvironmentalReverbSettings()
123 printf("diffusion: %d\n", settings->diffusion); in slesutPrintEnvironmentalReverbSettings()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java17 package com.android.providers.settings;
500 byte[] settings = new byte[data.getDataSize()]; in restoreSettings()
502 data.readEntityData(settings, 0, settings.length); in restoreSettings()
507 restoreSettings(settings, settings.length, contentUri); in restoreSettings()
510 private void restoreSettings(byte[] settings, int bytes, Uri contentUri) { in restoreSettings() argument
539 int length = readInt(settings, pos); in restoreSettings()
541 String dataKey = length > 0 ? new String(settings, pos, length) : null; in restoreSettings()
543 length = readInt(settings, pos); in restoreSettings()
545 String dataValue = length > 0 ? new String(settings, pos, length) : null; in restoreSettings()
580 private byte[] extractRelevantValues(Cursor cursor, String[] settings) { in extractRelevantValues() argument
[all …]
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java170 final String settings = settingsActivityFromServiceInfo(service, pm); in getSettingsIntent() local
171 if (settings != null) { in getSettingsIntent()
173 i.setClassName(engine, settings); in getSettingsIntent()
213 final String settings = array.getString( in settingsActivityFromServiceInfo() local
217 return settings; in settingsActivityFromServiceInfo()
/frameworks/testing/
D.gitignore8 *.settings
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DSettingsView.java83 findViewById(R.id.settings).setOnClickListener(this); in onFinishInflate()
99 case R.id.settings: in onClick()
/frameworks/base/tools/layoutlib/create/.settings/
DREADME.txt1 Copy this in eclipse project as a .settings folder at the root.
/frameworks/base/tools/layoutlib/bridge/.settings/
DREADME.txt1 Copy this in eclipse project as a .settings folder at the root.
/frameworks/base/telephony/java/com/android/internal/telephony/cat/
DCommandParams.java85 ToneSettings settings; field in PlayToneParams
91 this.settings = new ToneSettings(duration, tone, vibrate); in PlayToneParams()

123456