Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DScanScheduleUtilFilterTest.java57 ScanSettings settings = createRequest( in reportFullResultTrueForBandsWithNoBucketInfo() local
63 createScanResult(2400), 0, settings, -1)); in reportFullResultTrueForBandsWithNoBucketInfo()
68 ScanSettings settings = createRequest( in reportFullResultFalseForBandsWithNoBucketInfo() local
74 createScanResult(5150), 0, settings, 0)); in reportFullResultFalseForBandsWithNoBucketInfo()
79 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithNoBucketInfo() local
85 createScanResult(2400), 0, settings, 0)); in reportFullResultTrueForChannelsWithNoBucketInfo()
90 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithNoBucketInfo() local
96 createScanResult(5175), 0, settings, 0)); in reportFullResultFalseForChannelsWithNoBucketInfo()
101 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithBucketDefinitlyScanned() local
107 createScanResult(2400), 5, settings, 2)); in reportFullResultTrueForChannelsWithBucketDefinitlyScanned()
[all …]
DBaseWifiScannerImplTest.java109 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() local
116 doSuccessfulSingleScanTest(settings, expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), in singleScanSuccess()
123 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() local
129 doSuccessfulSingleScanTest(settings, createFreqSet(5650), in singleScanSuccessWithChannels()
136 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() local
145 doSuccessfulSingleScanTest(settings, expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), in singleScanSuccessWithFullResults()
157 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() local
168 doSuccessfulSingleScanTest(settings, createFreqSet(5650), in singleScanSuccessWithHiddenNetworkIds()
180 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds() local
191 doSuccessfulSingleScanTest(settings, createFreqSet(5650), in singleScanSuccessWithTruncatedHiddenNetworkIds()
[all …]
DSupplicantWifiScannerTest.java58 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessSingleBucket() local
74 doSuccessfulTest(settings, expectedPeriods); in backgroundScanSuccessSingleBucket()
79 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanMaxApExceeded() local
102 doSuccessfulTest(settings, expectedPeriods); in backgroundScanMaxApExceeded()
107 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithFullScanResults() local
125 doSuccessfulTest(settings, expectedPeriods); in backgroundScanSuccessWithFullScanResults()
130 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMixedFullResultsAndNot() local
154 doSuccessfulTest(settings, expectedPeriods); in backgroundScanSuccessWithMixedFullResultsAndNot()
159 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanNoBatch() local
179 doSuccessfulTest(settings, expectedPeriods); in backgroundScanNoBatch()
[all …]
DBackgroundScanSchedulerTest.java766 protected Set<Integer> getAllChannels(WifiScanner.ScanSettings settings) { in getAllChannels() argument
768 collection.addChannels(settings); in getAllChannels()
772 public void scheduleAndTestExactRequest(ScanSettings settings) { in scheduleAndTestExactRequest() argument
774 requests.add(settings); in scheduleAndTestExactRequest()
779 int expectedPeriod = computeExpectedPeriod(settings.periodInMs); in scheduleAndTestExactRequest()
782 .withMaxApPerScan(settings.numBssidsPerScan == 0 in scheduleAndTestExactRequest()
784 : settings.numBssidsPerScan) in scheduleAndTestExactRequest()
785 .withMaxScansToCache(settings.maxScansToCache == 0 in scheduleAndTestExactRequest()
787 : settings.maxScansToCache); in scheduleAndTestExactRequest()
789 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in scheduleAndTestExactRequest()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java243 ScanSettings settings = new ScanSettings();
244 settings.band = in.readInt();
245 settings.periodInMs = in.readInt();
246 settings.reportEvents = in.readInt();
247 settings.numBssidsPerScan = in.readInt();
248 settings.maxScansToCache = in.readInt();
249 settings.maxPeriodInMs = in.readInt();
250 settings.stepCount = in.readInt();
251 settings.isPnoScan = in.readInt() == 1;
253 settings.channels = new ChannelSpec[num_channels];
[all …]
DScanSettings.java72 ScanSettings settings = new ScanSettings();
75 settings.channelSet = new ArrayList<WifiChannel>(size);
77 settings.channelSet.add(WifiChannel.CREATOR.createFromParcel(in));
79 return settings;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java196 private void verifyKeySetMetaData(Settings settings) in verifyKeySetMetaData() argument
198 ArrayMap<String, PackageSetting> packages = settings.mPackages; in verifyKeySetMetaData()
199 KeySetManagerService ksms = settings.mKeySetManagerService; in verifyKeySetMetaData()
258 Settings settings = new Settings(getContext().getFilesDir(), new Object()); in testReadKeySetSettings() local
259 assertEquals(true, settings.readLPw(createFakeUsers())); in testReadKeySetSettings()
260 verifyKeySetMetaData(settings); in testReadKeySetSettings()
270 Settings settings = new Settings(getContext().getFilesDir(), new Object()); in testWriteKeySetSettings() local
271 assertEquals(true, settings.readLPw(createFakeUsers())); in testWriteKeySetSettings()
274 settings.writeLPr(); in testWriteKeySetSettings()
275 assertEquals(true, settings.readLPw(createFakeUsers())); in testWriteKeySetSettings()
[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 …]
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()
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()
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/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 …]
DAndroidCameraAgentImpl.java565 CameraSettings settings = (CameraSettings) msg.obj; in handleMessage() local
566 applySettingsToParameters(settings, parameters); in handleMessage()
654 private void applySettingsToParameters(final CameraSettings settings, in applySettingsToParameters() argument
657 Size photoSize = settings.getCurrentPhotoSize(); in applySettingsToParameters()
659 Size previewSize = settings.getCurrentPreviewSize(); in applySettingsToParameters()
661 if (settings.getPreviewFrameRate() == -1) { in applySettingsToParameters()
662 parameters.setPreviewFpsRange(settings.getPreviewFpsRangeMin(), in applySettingsToParameters()
663 settings.getPreviewFpsRangeMax()); in applySettingsToParameters()
665 parameters.setPreviewFrameRate(settings.getPreviewFrameRate()); in applySettingsToParameters()
667 parameters.setPreviewFormat(settings.getCurrentPreviewFormat()); in applySettingsToParameters()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DHalWifiScannerImpl.java74 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() argument
76 return mSupplicantScannerDelegate.startSingleScan(settings, eventHandler); in startSingleScan()
85 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() argument
87 if (settings == null || eventHandler == null) { in startBatchedScan()
88 Log.w(TAG, "Invalid arguments for startBatched: settings=" + settings in startBatchedScan()
92 return mWifiNative.startScan(settings, eventHandler); in startBatchedScan()
116 public boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() argument
119 return mWifiNative.setPnoList(settings, eventHandler); in setHwPnoList()
121 return mSupplicantScannerDelegate.setHwPnoList(settings, eventHandler); in setHwPnoList()
153 public boolean setHotlist(WifiScanner.HotlistSettings settings, in setHotlist() argument
[all …]
DBackgroundScanScheduler.java149 for (ScanSettings settings : originalBucket.getSettingsList()) { in Bucket()
150 mScanSettingsList.add(settings); in Bucket()
185 for (ScanSettings settings : mScanSettingsList) { in updateChannelCollection()
186 mChannelCollection.addChannels(settings); in updateChannelCollection()
406 int bucketsScanned, @NonNull ScanSettings settings) { in shouldReportFullScanResultForSettings() argument
408 result, bucketsScanned, settings, getScheduledBucket(settings)); in shouldReportFullScanResultForSettings()
416 @NonNull ScanSettings settings) { in filterResultsForSettings() argument
417 return ScanScheduleUtil.filterResultsForSettings(mChannelHelper, scanDatas, settings, in filterResultsForSettings()
418 getScheduledBucket(settings)); in filterResultsForSettings()
424 public int getScheduledBucket(ScanSettings settings) { in getScheduledBucket() argument
[all …]
DWifiScanningServiceImpl.java336 final T settings; field in WifiScanningServiceImpl.RequestInfo
339 T settings) { in RequestInfo() argument
342 this.settings = settings; in RequestInfo()
352 void addRequest(ClientInfo ci, int handler, WorkSource reqworkSource, T settings) { in addRequest() argument
353 add(new RequestInfo<T>(ci, handler, reqworkSource, settings)); in addRequest()
362 removed = entry.settings; in removeRequest()
374 settingsList.add(entry.settings); in getAllSettings()
385 settingsList.add(entry.settings); in getAllSettingsForClient()
642 boolean validateAndAddToScanQueue(ClientInfo ci, int handler, ScanSettings settings, in validateAndAddToScanQueue() argument
648 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in validateAndAddToScanQueue()
[all …]
DSupplicantWifiScannerImpl.java191 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() argument
193 if (eventHandler == null || settings == null) { in startSingleScan()
194 Log.w(TAG, "Invalid arguments for startSingleScan: settings=" + settings in startSingleScan()
204 mPendingSingleScanSettings = settings; in startSingleScan()
217 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() argument
219 if (settings == null || eventHandler == null) { in startBatchedScan()
220 Log.w(TAG, "Invalid arguments for startBatched: settings=" + settings in startBatchedScan()
225 if (settings.max_ap_per_scan < 0 || settings.max_ap_per_scan > MAX_APS_PER_SCAN) { in startBatchedScan()
228 if (settings.num_buckets < 0 || settings.num_buckets > MAX_SCAN_BUCKETS) { in startBatchedScan()
231 if (settings.report_threshold_num_scans < 0 in startBatchedScan()
[all …]
DNoBandChannelHelper.java40 public boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel) { in settingsContainChannel() argument
41 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in settingsContainChannel()
42 for (int i = 0; i < settings.channels.length; ++i) { in settingsContainChannel()
43 if (settings.channels[i].frequency == channel) { in settingsContainChannel()
59 public int estimateScanDuration(WifiScanner.ScanSettings settings) { in estimateScanDuration() argument
60 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in estimateScanDuration()
61 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration()
DWifiScannerImpl.java92 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() argument
107 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan() argument
136 public abstract boolean setHwPnoList(WifiNative.PnoSettings settings, in setHwPnoList() argument
161 public abstract boolean setHotlist(WifiScanner.HotlistSettings settings, in setHotlist() argument
172 public abstract boolean trackSignificantWifiChange(WifiScanner.WifiChangeSettings settings, in trackSignificantWifiChange() argument
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java111 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() argument
113 startScan(filters, settings, null, callback, null); in startScan()
146 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource() argument
148 startScan(filters, settings, workSource, callback, null); in startScanFromSource()
151 private void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() argument
158 if (settings == null) { in startScan()
176 if (!isSettingsConfigAllowedForScan(settings)) { in startScan()
181 if (!isHardwareResourcesAvailableForScan(settings)) { in startScan()
186 if (!isSettingsAndFilterComboAllowed(settings, filters)) { in startScan()
192 settings, workSource, callback, resultStorages); in startScan()
[all …]
DBluetoothLeAdvertiser.java88 public void startAdvertising(AdvertiseSettings settings, in startAdvertising() argument
90 startAdvertising(settings, advertiseData, null, callback); in startAdvertising()
106 public void startAdvertising(AdvertiseSettings settings, in startAdvertising() argument
120 boolean isConnectable = settings.isConnectable(); in startAdvertising()
140 scanResponse, settings, gatt); in startAdvertising()
247 AdvertiseSettings settings, in AdvertiseCallbackWrapper() argument
252 mSettings = settings; in AdvertiseCallbackWrapper()
337 AdvertiseSettings settings) { in onMultiAdvertiseCallback() argument
343 postStartSuccess(mAdvertiseCallback, settings); in onMultiAdvertiseCallback()
375 final AdvertiseSettings settings) { in postStartSuccess() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java298 return context.settings.settingsSecureGetIntForUser(name, def, userHandle); in settingsSecureGetIntForUser()
303 context.settings.settingsSecurePutIntForUser(name, value, userHandle); in settingsSecurePutIntForUser()
308 context.settings.settingsSecurePutStringForUser(name, value, userHandle); in settingsSecurePutStringForUser()
313 context.settings.settingsGlobalPutStringForUser(name, value, userHandle); in settingsGlobalPutStringForUser()
318 context.settings.settingsSecurePutInt(name, value); in settingsSecurePutInt()
323 context.settings.settingsGlobalPutInt(name, value); in settingsGlobalPutInt()
328 context.settings.settingsSecurePutString(name, value); in settingsSecurePutString()
333 context.settings.settingsGlobalPutString(name, value); in settingsGlobalPutString()
338 return context.settings.settingsGlobalGetInt(name, def); in settingsGlobalGetInt()
343 context.settings.securityLogSetLoggingEnabledProperty(enabled); in securityLogSetLoggingEnabledProperty()
[all …]
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp69 CodecSettings settings; in addMaxInstancesSetting() local
70 settings.add("max-supported-instances", value); in addMaxInstancesSetting()
71 results->add(key, settings); in addMaxInstancesSetting()
78 CodecSettings settings = results.valueAt(i); in verifyProfileResults() local
79 EXPECT_EQ(1u, settings.size()); in verifyProfileResults()
80 EXPECT_TRUE(settings.keyAt(0) == "max-supported-instances"); in verifyProfileResults()
81 AString valueS = settings.valueAt(0); in verifyProfileResults()
/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()

12345678910>>...14