Home
last modified time | relevance | path

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

1234567891011

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DScanScheduleUtilFilterTest.java58 ScanSettings settings = createRequest( in reportFullResultTrueForBandsWithNoBucketInfo() local
64 createScanResult(2400), 0, settings, -1)); in reportFullResultTrueForBandsWithNoBucketInfo()
69 ScanSettings settings = createRequest( in reportFullResultFalseForBandsWithNoBucketInfo() local
75 createScanResult(5150), 0, settings, 0)); in reportFullResultFalseForBandsWithNoBucketInfo()
80 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithNoBucketInfo() local
86 createScanResult(2400), 0, settings, 0)); in reportFullResultTrueForChannelsWithNoBucketInfo()
91 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithNoBucketInfo() local
97 createScanResult(5175), 0, settings, 0)); in reportFullResultFalseForChannelsWithNoBucketInfo()
102 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithBucketDefinitlyScanned() local
108 createScanResult(2400), 5, settings, 2)); in reportFullResultTrueForChannelsWithBucketDefinitlyScanned()
[all …]
DBaseWifiScannerImplTest.java113 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() local
120 doSuccessfulSingleScanTest(settings, in singleScanSuccess()
129 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() local
135 doSuccessfulSingleScanTest(settings, createFreqSet(5650), in singleScanSuccessWithChannels()
143 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType() local
150 doSuccessfulSingleScanTest(settings, createFreqSet(5650), in singleScanSuccessWithChannelsAndHighAccuracyType()
158 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() local
167 doSuccessfulSingleScanTest(settings, expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), in singleScanSuccessWithFullResults()
180 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() local
191 doSuccessfulSingleScanTest(settings, createFreqSet(5650), in singleScanSuccessWithHiddenNetworkIds()
[all …]
DBackgroundScanSchedulerTest.java660 protected Set<Integer> getAllChannels(WifiScanner.ScanSettings settings) { in getAllChannels() argument
662 collection.addChannels(settings); in getAllChannels()
666 public void scheduleAndTestExactRequest(ScanSettings settings) { in scheduleAndTestExactRequest() argument
668 requests.add(settings); in scheduleAndTestExactRequest()
673 int expectedPeriod = computeExpectedPeriod(settings.periodInMs); in scheduleAndTestExactRequest()
676 .withMaxApPerScan(settings.numBssidsPerScan == 0 in scheduleAndTestExactRequest()
678 : settings.numBssidsPerScan) in scheduleAndTestExactRequest()
679 .withMaxScansToCache(settings.maxScansToCache == 0 in scheduleAndTestExactRequest()
681 : settings.maxScansToCache); in scheduleAndTestExactRequest()
683 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in scheduleAndTestExactRequest()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DEnvironmentalReverb.java521 public Settings(String settings) { in Settings() argument
522 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
525 throw new IllegalArgumentException("settings: " + settings); in Settings()
623 Settings settings = new Settings(); in getProperties() local
624 settings.roomLevel = byteArrayToShort(param, 0); in getProperties()
625 settings.roomHFLevel = byteArrayToShort(param, 2); in getProperties()
626 settings.decayTime = byteArrayToInt(param, 4); in getProperties()
627 settings.decayHFRatio = byteArrayToShort(param, 8); in getProperties()
628 settings.reflectionsLevel = byteArrayToShort(param, 10); in getProperties()
629 settings.reflectionsDelay = byteArrayToInt(param, 12); in getProperties()
[all …]
DEqualizer.java460 public Settings(String settings) { in Settings() argument
461 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
464 throw new IllegalArgumentException("settings: " + settings); in Settings()
483 throw new IllegalArgumentException("settings: " + settings); in Settings()
526 Settings settings = new Settings(); in getProperties() local
527 settings.curPreset = byteArrayToShort(param, 0); in getProperties()
528 settings.numBands = byteArrayToShort(param, 2); in getProperties()
529 settings.bandLevels = new short[mNumBands]; in getProperties()
531 settings.bandLevels[i] = byteArrayToShort(param, 4 + 2*i); in getProperties()
533 return settings; in getProperties()
[all …]
DPresetReverb.java241 public Settings(String settings) { in Settings() argument
242 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
245 throw new IllegalArgumentException("settings: " + settings); in Settings()
284 Settings settings = new Settings(); in getProperties() local
287 settings.preset = value[0]; in getProperties()
288 return settings; in getProperties()
299 public void setProperties(PresetReverb.Settings settings) in setProperties() argument
301 checkStatus(setParameter(PARAM_PRESET, settings.preset)); in setProperties()
DBassBoost.java225 public Settings(String settings) { in Settings() argument
226 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
229 throw new IllegalArgumentException("settings: " + settings); in Settings()
268 Settings settings = new Settings(); in getProperties() local
271 settings.strength = value[0]; in getProperties()
272 return settings; in getProperties()
283 public void setProperties(BassBoost.Settings settings) in setProperties() argument
285 checkStatus(setParameter(PARAM_STRENGTH, settings.strength)); in setProperties()
DLoudnessEnhancer.java226 public Settings(String settings) { in Settings() argument
227 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
230 throw new IllegalArgumentException("settings: " + settings); in Settings()
270 Settings settings = new Settings(); in getProperties() local
273 settings.targetGainmB = value[0]; in getProperties()
274 return settings; in getProperties()
286 public void setProperties(LoudnessEnhancer.Settings settings) in setProperties() argument
288 checkStatus(setParameter(PARAM_TARGET_GAIN_MB, settings.targetGainmB)); in setProperties()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistSettingsTests.java71 WatchlistSettings settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_parsing() local
72 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
74 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
80 WatchlistSettings settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_parsingWithoutKey() local
81 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_parsingWithoutKey()
85 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
87 settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_parsingWithoutKey()
88 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
93 WatchlistSettings settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_noExistingXml() local
94 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_noExistingXml()
[all …]
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp120 void invokeDraw(renderengine::DisplaySettings settings, in invokeDraw()
123 status_t status = sRE->drawLayers(settings, layers, buffer->getNativeBuffer(), true, in invokeDraw()
140 renderengine::DisplaySettings settings; in drawEmptyLayers() local
144 invokeDraw(settings, layers, buffer); in drawEmptyLayers()
300 renderengine::DisplaySettings settings; in fillBuffer() local
301 settings.physicalDisplay = fullscreenRect(); in fillBuffer()
302 settings.clip = fullscreenRect(); in fillBuffer()
313 invokeDraw(settings, layers, mBuffer); in fillBuffer()
342 renderengine::DisplaySettings settings; in fillRedOffsetBuffer() local
343 settings.physicalDisplay = offsetRect(); in fillRedOffsetBuffer()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraCapabilities.java572 public boolean supports(final CameraSettings settings) { in supports() argument
573 if (zoomCheck(settings) && exposureCheck(settings) && focusCheck(settings) && in supports()
574 flashCheck(settings) && photoSizeCheck(settings) && previewSizeCheck(settings) && in supports()
575 videoStabilizationCheck(settings)) { in supports()
679 private boolean zoomCheck(final CameraSettings settings) { in zoomCheck() argument
680 final float ratio = settings.getCurrentZoomRatio(); in zoomCheck()
687 if (settings.getCurrentZoomRatio() > getMaxZoomRatio()) { in zoomCheck()
689 settings.getCurrentZoomRatio()); in zoomCheck()
696 private boolean exposureCheck(final CameraSettings settings) { in exposureCheck() argument
697 final int index = settings.getExposureCompensationIndex(); in exposureCheck()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java145 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() argument
147 startScan(filters, settings, null, callback, /*callbackIntent=*/ null, null); in startScan()
174 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings, in startScan() argument
177 settings != null ? settings : new ScanSettings.Builder().build(), in startScan()
211 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource() argument
213 startScan(filters, settings, workSource, callback, null, null); in startScanFromSource()
216 private int startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() argument
224 if (settings == null) { in startScan()
241 if (!isSettingsConfigAllowedForScan(settings)) { in startScan()
245 if (!isHardwareResourcesAvailableForScan(settings)) { in startScan()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java148 for (ScanSettings settings : originalBucket.getSettingsList()) { in Bucket()
149 mScanSettingsList.add(settings); in Bucket()
184 for (ScanSettings settings : mScanSettingsList) { in updateChannelCollection()
185 mChannelCollection.addChannels(settings); in updateChannelCollection()
405 int bucketsScanned, @NonNull ScanSettings settings) { in shouldReportFullScanResultForSettings() argument
407 result, bucketsScanned, settings, getScheduledBucket(settings)); in shouldReportFullScanResultForSettings()
415 @NonNull ScanSettings settings) { in filterResultsForSettings() argument
416 return ScanScheduleUtil.filterResultsForSettings(mChannelHelper, scanDatas, settings, in filterResultsForSettings()
417 getScheduledBucket(settings)); in filterResultsForSettings()
423 public int getScheduledBucket(ScanSettings settings) { in getScheduledBucket() argument
[all …]
DWifiScanningServiceImpl.java414 final T settings; field in WifiScanningServiceImpl.RequestInfo
417 T settings) { in RequestInfo() argument
420 this.settings = settings; in RequestInfo()
430 void addRequest(ClientInfo ci, int handler, WorkSource reqworkSource, T settings) { in addRequest() argument
431 add(new RequestInfo<T>(ci, handler, reqworkSource, settings)); in addRequest()
440 removed = entry.settings; in removeRequest()
452 settingsList.add(entry.settings); in getAllSettings()
463 settingsList.add(entry.settings); in getAllSettingsForClient()
792 boolean validateScanRequest(ClientInfo ci, int handler, ScanSettings settings) { in validateScanRequest() argument
797 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in validateScanRequest()
[all …]
DHalWifiScannerImpl.java79 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() argument
81 return mWificondScannerDelegate.startSingleScan(settings, eventHandler); in startSingleScan()
90 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() argument
92 if (settings == null || eventHandler == null) { in startBatchedScan()
93 Log.w(TAG, "Invalid arguments for startBatched: settings=" + settings in startBatchedScan()
98 mIfaceName, settings, eventHandler); in startBatchedScan()
122 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() argument
124 return mWificondScannerDelegate.setHwPnoList(settings, eventHandler); in setHwPnoList()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DMockTracker.java23 import org.mockito.internal.creation.settings.CreationSettings;
63 public void onMockCreated(Object mock, MockCreationSettings settings) { in onMockCreated() argument
65 clearSpiedInstanceIfNeeded(mock, settings); in onMockCreated()
70 private void clearSpiedInstanceIfNeeded(Object mock, MockCreationSettings settings) { in clearSpiedInstanceIfNeeded() argument
71 if (mock != settings.getSpiedInstance()) { in clearSpiedInstanceIfNeeded()
75 if (!(settings instanceof CreationSettings)) { in clearSpiedInstanceIfNeeded()
76 throw new IllegalStateException("Unexpected type of settings: " + settings.getClass()); in clearSpiedInstanceIfNeeded()
79 SPIED_INSTANCE_FIELD.set(settings, null); in clearSpiedInstanceIfNeeded()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontVariationAxis.java140 @Nullable String settings) { in fromFontVariationSettings()
141 if (settings == null || settings.isEmpty()) { in fromFontVariationSettings()
145 final int length = settings.length(); in fromFontVariationSettings()
147 final char c = settings.charAt(i); in fromFontVariationSettings()
151 if (!(c == '\'' || c == '"') || length < i + 6 || settings.charAt(i + 5) != c) { in fromFontVariationSettings()
153 "Tag should be wrapped with double or single quote: " + settings); in fromFontVariationSettings()
155 final String tagString = settings.substring(i + 1, i + 5); in fromFontVariationSettings()
158 int endOfValueString = settings.indexOf(',', i); in fromFontVariationSettings()
165 value = Float.parseFloat(settings.substring(i, endOfValueString)); in fromFontVariationSettings()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java316 ScanSettings settings = new ScanSettings();
317 settings.band = in.readInt();
318 settings.periodInMs = in.readInt();
319 settings.reportEvents = in.readInt();
320 settings.numBssidsPerScan = in.readInt();
321 settings.maxScansToCache = in.readInt();
322 settings.maxPeriodInMs = in.readInt();
323 settings.stepCount = in.readInt();
324 settings.isPnoScan = in.readInt() == 1;
325 settings.type = in.readInt();
[all …]
/frameworks/base/core/proto/android/providers/
Dsettings.proto18 package android.providers.settings;
23 import "frameworks/base/core/proto/android/providers/settings/global.proto";
24 import "frameworks/base/core/proto/android/providers/settings/secure.proto";
25 import "frameworks/base/core/proto/android/providers/settings/system.proto";
31 // Per user settings
34 // Global settings
44 // The secure settings for this user
47 // The system settings for this user
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSettingsManager.java77 UsbUserSettingsManager settings = mSettingsByUser.get(userId); in getSettingsForUser() local
78 if (settings == null) { in getSettingsForUser()
79 settings = new UsbUserSettingsManager(mContext, UserHandle.of(userId), in getSettingsForUser()
81 mSettingsByUser.put(userId, settings); in getSettingsForUser()
83 return settings; in getSettingsForUser()
105 UsbProfileGroupSettingsManager settings = mSettingsByProfileGroup.get( in getSettingsForProfileGroup() local
107 if (settings == null) { in getSettingsForProfileGroup()
108 settings = new UsbProfileGroupSettingsManager(mContext, parentUser, this, in getSettingsForProfileGroup()
110 mSettingsByProfileGroup.put(parentUser.getIdentifier(), settings); in getSettingsForProfileGroup() local
112 return settings; in getSettingsForProfileGroup()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/
DPnoSettings.java46 PnoSettings settings = (PnoSettings) rhs; in equals() local
47 if (settings == null) { in equals()
50 return intervalMs == settings.intervalMs in equals()
51 && min2gRssi == settings.min2gRssi in equals()
52 && min5gRssi == settings.min5gRssi in equals()
53 && pnoNetworks.equals(settings.pnoNetworks); in equals()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DVisualVoicemailSmsFilter.java123 VisualVoicemailSmsFilterSettings settings; in filter() local
124 settings = telephonyManager.getActiveVisualVoicemailSmsFilterSettings(subId); in filter()
126 if (settings == null) { in filter()
146 String clientPrefix = settings.clientPrefix; in filter()
161 sendVvmSmsBroadcast(context, settings, phoneAccountHandle, messageData, null); in filter()
172 if (settings.destinationPort in filter()
179 } else if (settings.destinationPort in filter()
181 if (settings.destinationPort != destPort) { in filter()
183 + settings.destinationPort); in filter()
188 if (!settings.originatingNumbers.isEmpty() in filter()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java349 return services.settings.settingsSecureGetIntForUser(name, def, userHandle); in settingsSecureGetIntForUser()
354 return services.settings.settingsSecureGetStringForUser(name, userHandle); in settingsSecureGetStringForUser()
359 services.settings.settingsSecurePutIntForUser(name, value, userHandle); in settingsSecurePutIntForUser()
364 services.settings.settingsSecurePutStringForUser(name, value, userHandle); in settingsSecurePutStringForUser()
369 services.settings.settingsGlobalPutStringForUser(name, value, userHandle); in settingsGlobalPutStringForUser()
374 services.settings.settingsSecurePutInt(name, value); in settingsSecurePutInt()
379 services.settings.settingsGlobalPutInt(name, value); in settingsGlobalPutInt()
384 services.settings.settingsSecurePutString(name, value); in settingsSecurePutString()
389 services.settings.settingsGlobalPutString(name, value); in settingsGlobalPutString()
394 services.settings.settingsSystemPutStringForUser(name, value, userId); in settingsSystemPutStringForUser()
[all …]
/frameworks/base/media/jni/
Dandroid_media_BufferingParams.h26 BufferingSettings settings; member
61 settings.mInitialMarkMs = in fillFromJobject()
63 settings.mResumePlaybackMarkMs = in fillFromJobject()
72 env->SetIntField(params, fields.initial_mark_ms, (jint)settings.mInitialMarkMs); in asJobject()
73 … env->SetIntField(params, fields.resume_playback_mark_ms, (jint)settings.mResumePlaybackMarkMs); in asJobject()
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp71 CodecSettings settings; in addMaxInstancesSetting() local
72 settings.add("max-supported-instances", value); in addMaxInstancesSetting()
73 results->add(key, settings); in addMaxInstancesSetting()
80 const CodecSettings &settings = results.valueAt(i); in verifyProfileResults() local
81 EXPECT_EQ(1u, settings.size()); in verifyProfileResults()
82 EXPECT_TRUE(settings.keyAt(0) == "max-supported-instances"); in verifyProfileResults()
83 const AString &valueS = settings.valueAt(0); in verifyProfileResults()

1234567891011