Home
last modified time | relevance | path

Searched refs:configs (Results 1 – 25 of 158) sorted by relevance

1234567

/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp76 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST() local
77 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
78 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
79 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
81 DominatorTree tree(configs); in TEST()
96 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST() local
97 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
99 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
100 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "phablet")); in TEST()
[all …]
/frameworks/base/tools/aapt/tests/
DResourceTable_test.cpp26 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() local
37 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
38 configs->addEntry(landConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
39 configs->addEntry(sw600dpLandConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
41 EXPECT_TRUE(ResourceTable::shouldGenerateVersionedResource(configs, defaultConfig, 17)); in TEST()
42 EXPECT_TRUE(ResourceTable::shouldGenerateVersionedResource(configs, landConfig, 17)); in TEST()
46 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() local
57 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
58 configs->addEntry(v21Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
59 configs->addEntry(sw600dpV13Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
[all …]
/frameworks/base/libs/androidfw/tests/
DConfig_test.cpp29 const Vector<ResTable_config>& configs) { in selectBest() argument
32 const size_t configCount = configs.size(); in selectBest()
34 const ResTable_config& thisConfig = configs[i]; in selectBest()
60 Vector<ResTable_config> configs; in TEST() local
64 configs.add(expectedBest); in TEST()
65 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
68 configs.add(expectedBest); in TEST()
69 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
72 configs.add(expectedBest); in TEST()
73 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java56 ScanDetailsAndWifiConfigs(List<ScanDetail> scanDetails, WifiConfiguration[] configs) { in ScanDetailsAndWifiConfigs() argument
58 mWifiConfigs = configs; in ScanDetailsAndWifiConfigs()
166 WifiConfiguration[] configs = new WifiConfiguration[ssids.length]; in generateWifiConfigurations() local
178 configs[index] = generateWifiConfig(id.intValue(), 0, ssids[index], false, true, null, in generateWifiConfigurations()
180 configs[index].preSharedKey = "\"PA55W0RD\""; // needed to validate with PSK in generateWifiConfigurations()
181 if (!WifiConfigurationUtil.validate(configs[index], true)) { in generateWifiConfigurations()
182 throw new IllegalArgumentException("Invalid generated config: " + configs[index]); in generateWifiConfigurations()
186 return configs; in generateWifiConfigurations()
198 final WifiConfiguration[] configs) { in prepareConfigStore() argument
202 for (WifiConfiguration config : configs) { in prepareConfigStore()
[all …]
DConfigurationMapTest.java121 private void addNetworks(List<WifiConfiguration> configs) { in addNetworks() argument
122 for (WifiConfiguration config : configs) { in addNetworks()
127 private void verifyGetters(List<WifiConfiguration> configs) { in verifyGetters() argument
135 for (WifiConfiguration config : configs) { in verifyGetters()
177 assertEquals(configs.size(), mConfigs.sizeForAllUsers()); in verifyGetters()
181 assertEquals(new HashSet<>(configs), in verifyGetters()
227 final List<WifiConfiguration> configs = new ArrayList<>(); in testPutRemoveClear() local
232 verifyGetters(configs); in testPutRemoveClear()
237 configs.add(config1); in testPutRemoveClear()
238 verifyGetters(configs); in testPutRemoveClear()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.h117 RefreshRateConfigs(bool refreshRateSwitching, const std::vector<InputConfig>& configs, in RefreshRateConfigs() argument
119 init(refreshRateSwitching, configs, currentConfig); in RefreshRateConfigs()
123 const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs, in RefreshRateConfigs() argument
126 for (const auto& config : configs) { in RefreshRateConfigs()
133 void init(bool refreshRateSwitching, const std::vector<InputConfig>& configs, in init() argument
136 LOG_ALWAYS_FATAL_IF(configs.empty()); in init()
137 LOG_ALWAYS_FATAL_IF(currentConfig >= configs.size()); in init()
141 const nsecs_t vsyncPeriod = configs[configId].vsyncPeriod; in init()
144 vsyncPeriod, configs[configId].hwcId}; in init()
147 for (int i = 0; i < configs.size(); ++i) { in init()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareNativeApiTest.java151 Pair<NanConfigRequest, NanConfigRequestSupplemental> configs = in testEnableAndConfigPowerSettingsDefaults() local
156 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] in testEnableAndConfigPowerSettingsDefaults()
159 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] in testEnableAndConfigPowerSettingsDefaults()
162 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] in testEnableAndConfigPowerSettingsDefaults()
165 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] in testEnableAndConfigPowerSettingsDefaults()
179 Pair<NanConfigRequest, NanConfigRequestSupplemental> configs = in testEnableAndConfigPowerSettingsNoneInteractive() local
184 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] in testEnableAndConfigPowerSettingsNoneInteractive()
187 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_5GHZ] in testEnableAndConfigPowerSettingsNoneInteractive()
190 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] in testEnableAndConfigPowerSettingsNoneInteractive()
193 equalTo(configs.first.bandSpecificConfig[NanBandIndex.NAN_BAND_24GHZ] in testEnableAndConfigPowerSettingsNoneInteractive()
[all …]
/frameworks/base/tools/aapt/
DApkBuilder.cpp30 status_t ApkBuilder::createSplitForConfigs(const std::set<ConfigDescription>& configs) { in createSplitForConfigs() argument
34 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in createSplitForConfigs()
35 for (; iter != configs.end(); iter++) { in createSplitForConfigs()
45 sp<StrongResourceFilter> splitFilter = new StrongResourceFilter(configs); in createSplitForConfigs()
55 mSplits.add(new ApkSplit(configs, filter)); in createSplitForConfigs()
81 ApkSplit::ApkSplit(const std::set<ConfigDescription>& configs, const sp<ResourceFilter>& filter, bo… in ApkSplit() argument
82 : mConfigs(configs), mFilter(filter), mIsBase(isBase) { in ApkSplit()
83 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in ApkSplit()
84 for (; iter != configs.end(); iter++) { in ApkSplit()
DStringPool.cpp77 if (configs.size() > 0) { in makeConfigsString()
78 for (size_t j=0; j<configs.size(); j++) { in makeConfigsString()
80 configStr.append(configs[j].toString()); in makeConfigsString()
103 const size_t LHN = configs.size(); in compare()
104 const size_t RHN = o.configs.size(); in compare()
107 comp = configs[i].compareLogical(o.configs[i]); in compare()
164 for (addPos=0; addPos<ent.configs.size(); addPos++) { in add()
165 int cmp = ent.configs.itemAt(addPos).compareLogical(*config); in add()
171 ent.configs.insertAt(*config, addPos); in add()
176 if (addPos >= ent.configs.size()) { in add()
[all …]
/frameworks/base/media/java/android/media/
DAudioRecordingMonitorImpl.java119 List<AudioRecordingConfiguration> configs = service.getActiveRecordingConfigurations(); in getActiveRecordingConfiguration() local
120 return getMyConfig(configs); in getActiveRecordingConfiguration()
150 public void dispatchRecordingConfigChange(List<AudioRecordingConfiguration> configs) {
151 AudioRecordingConfiguration config = getMyConfig(configs);
179 ArrayList<AudioRecordingConfiguration> configs = in beginRecordingCallbackHandling()
181 configs.add((AudioRecordingConfiguration) msg.obj); in beginRecordingCallbackHandling()
196 cbi.mCb.onRecordingConfigChanged(configs)); in beginRecordingCallbackHandling()
232 AudioRecordingConfiguration getMyConfig(List<AudioRecordingConfiguration> configs) { in getMyConfig() argument
234 for (AudioRecordingConfiguration config : configs) { in getMyConfig()
/frameworks/base/services/core/java/com/android/server/audio/
DRecordingActivityMonitor.java192 private void dispatchCallbacks(List<AudioRecordingConfiguration> configs) { in dispatchCallbacks() argument
193 if (configs == null) { // null means "no changes" in dispatchCallbacks()
200 ? anonymizeForPublicConsumption(configs) : in dispatchCallbacks()
205 rmc.mDispatcherCb.dispatchRecordingConfigChange(configs); in dispatchCallbacks()
249 List<AudioRecordingConfiguration> configs = null; in onAudioServerDied() local
265 configs = getActiveRecordingConfigurations(true /*isPrivileged*/); in onAudioServerDied()
268 dispatchCallbacks(configs); in onAudioServerDied()
309 List<AudioRecordingConfiguration> configs = new ArrayList<AudioRecordingConfiguration>(); in getActiveRecordingConfigurations() local
313 configs.add(state.getConfig()); in getActiveRecordingConfigurations()
320 configs = anonymizeForPublicConsumption(configs); in getActiveRecordingConfigurations()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java52 void onDeviceAvailable(TvInputHardwareInfo info, TvStreamConfig[] configs); in onDeviceAvailable() argument
54 void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs); in onStreamConfigurationChanged() argument
162 TvStreamConfig[] configs; in handleMessage() local
169 configs = mStreamConfigs.get(info.getDeviceId()); in handleMessage()
171 mCallback.onDeviceAvailable(info, configs); in handleMessage()
185 TvStreamConfig[] configs; in handleMessage() local
192 configs = mStreamConfigs.get(deviceId); in handleMessage()
194 mCallback.onStreamConfigurationChanged(deviceId, configs); in handleMessage()
/frameworks/native/opengl/tests/configdump/
Dconfigdump.cpp70 EGLConfig* configs; in main() local
76 configs = new EGLConfig[n]; in main()
77 eglGetConfigs(dpy, configs, n, &n); in main()
83 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); in main()
88 delete [] configs; in main()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCustomConfigLoader.java76 String[] configs = null; in loadCarrierActionList() local
82 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
86 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
92 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
96 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
106 if (!ArrayUtils.isEmpty(configs)) { in loadCarrierActionList()
107 for (String config : configs) { in loadCarrierActionList()
/frameworks/native/opengl/tools/glgen/specs/egl/
Dchecks.spec2 eglGetConfigs nullAllowed configs check configs config_size
3 eglChooseConfig nullAllowed configs check configs config_size check num_config 1 sentinel attrib_li…
/frameworks/base/tools/aapt2/cmd/
DUtil_test.cpp38 EXPECT_EQ(constraints.configs.size(), 1); \
39 EXPECT_EQ(*constraints.configs.begin(), config); \
40 constraints.configs.clear();
371 EXPECT_EQ(test_constraints[0].configs.size(), 1); in TEST()
372 EXPECT_NE(*test_constraints[0].configs.begin(), ConfigDescription::DefaultConfig()); in TEST()
374 EXPECT_EQ(test_constraints[1].configs.size(), 1); in TEST()
375 EXPECT_NE(*test_constraints[0].configs.begin(), ConfigDescription::DefaultConfig()); in TEST()
380 EXPECT_EQ(adjusted_contraints[0].configs.size(), 0); in TEST()
382 EXPECT_EQ(adjusted_contraints[1].configs.size(), 1); in TEST()
383 EXPECT_NE(*adjusted_contraints[1].configs.begin(), ConfigDescription::DefaultConfig()); in TEST()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp77 Vector<DisplayInfo> configs; in QueryMaxRefreshRate() local
78 configs.reserve(10); in QueryMaxRefreshRate()
79 status_t status = SurfaceComposerClient::getDisplayConfigs(token, &configs); in QueryMaxRefreshRate()
81 LOG_ALWAYS_FATAL_IF(configs.size() == 0, "getDisplayConfigs returned 0 configs?"); in QueryMaxRefreshRate()
83 for (auto& info : configs) { in QueryMaxRefreshRate()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetConfigStore.java45 ArrayMap<String, IpConfiguration> configs = in read() local
50 if (configs.containsKey("0")) { in read()
51 mIpConfigurationForDefaultInterface = configs.remove("0"); in read()
54 mIpConfigurations = configs; in read()
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/
DGLPerfView.java131 EGLConfig[] configs = new EGLConfig[numConfigs]; in chooseConfig() local
132 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
134 return chooseConfig(egl, display, configs); in chooseConfig()
138 EGLConfig[] configs) { in chooseConfig() argument
141 for(EGLConfig config : configs) { in chooseConfig()
178 EGLConfig[] configs) { in printConfigs() argument
179 int numConfigs = configs.length; in printConfigs()
183 printConfig(egl, display, configs[i]); in printConfigs()
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DGLDualGL2View.java134 EGLConfig[] configs = new EGLConfig[numConfigs]; in chooseConfig() local
135 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
137 return chooseConfig(egl, display, configs); in chooseConfig()
141 EGLConfig[] configs) { in chooseConfig() argument
144 for(EGLConfig config : configs) { in chooseConfig()
181 EGLConfig[] configs) { in printConfigs() argument
182 int numConfigs = configs.length; in printConfigs()
186 printConfig(egl, display, configs[i]); in printConfigs()
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
DGL2JNIView.java131 EGLConfig[] configs = new EGLConfig[numConfigs]; in chooseConfig() local
132 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
134 return chooseConfig(egl, display, configs); in chooseConfig()
138 EGLConfig[] configs) { in chooseConfig() argument
141 for(EGLConfig config : configs) { in chooseConfig()
178 EGLConfig[] configs) { in printConfigs() argument
179 int numConfigs = configs.length; in printConfigs()
183 printConfig(egl, display, configs[i]); in printConfigs()
/frameworks/native/opengl/tests/gl2_copyTexImage/
Dgl2_copyTexImage.cpp343 EGLConfig* configs = (EGLConfig*) malloc(sizeof(EGLConfig) * numConfig); in printEGLConfigurations() local
344 if (! configs) { in printEGLConfigurations()
349 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations()
352 free(configs); in printEGLConfigurations()
358 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations()
361 free(configs); in printEGLConfigurations()
414 EGLConfig* const configs = new EGLConfig[numConfigs]; in main() local
415 eglChooseConfig(dpy, s_configAttribs, configs, numConfigs, &n); in main()
416 myConfig = configs[0]; in main()
417 delete[] configs; in main()
/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateConfigsTest.cpp73 std::vector<RefreshRateConfigs::InputConfig> configs{{HWC2_CONFIG_ID_60, VSYNC_60}}; in TEST_F() local
75 std::make_unique<RefreshRateConfigs>(/*refreshRateSwitching=*/true, configs, in TEST_F()
81 std::vector<RefreshRateConfigs::InputConfig> configs{{HWC2_CONFIG_ID_60, VSYNC_60}, in TEST_F() local
84 std::make_unique<RefreshRateConfigs>(/*refreshRateSwitching=*/true, configs, in TEST_F()
/frameworks/base/core/jni/
Dcom_google_android_gles_jni_EGLImpl.cpp189 jintArray attrib_list, jobjectArray configs, jint config_size, jintArray num_config) { in jni_eglChooseConfig() argument
192 || (configs != NULL && _env->GetArrayLength(configs) < config_size) in jni_eglChooseConfig()
200 if (configs == NULL) { in jni_eglChooseConfig()
207 success = eglChooseConfig(dpy, attrib_base, configs ? nativeConfigs : 0, config_size, &num); in jni_eglChooseConfig()
214 if (success && configs!=NULL) { in jni_eglChooseConfig()
217 _env->SetObjectArrayElement(configs, i, obj); in jni_eglChooseConfig()
335 jobjectArray configs, jint config_size, jintArray num_config) { in jni_eglGetConfigs() argument
336 if (display == NULL || (configs != NULL && _env->GetArrayLength(configs) < config_size) in jni_eglGetConfigs()
343 if (configs == NULL) { in jni_eglGetConfigs()
348 success = eglGetConfigs(dpy, configs ? nativeConfigs : 0, config_size, &num); in jni_eglGetConfigs()
[all …]
/frameworks/native/opengl/tests/lib/include/
DEGLUtils.h110 std::vector<EGLConfig> configs(numConfigs); in selectConfigForPixelFormat()
111 if (eglChooseConfig(dpy, attrs, configs.data(), numConfigs, &n) == EGL_FALSE) { in selectConfigForPixelFormat()
119 eglGetConfigAttrib(dpy, configs[i], EGL_NATIVE_VISUAL_ID, &nativeVisualId); in selectConfigForPixelFormat()
121 config = configs[i]; in selectConfigForPixelFormat()
254 std::vector<EGLConfig> configs(numConfig); in printEGLConfigurations()
256 returnVal = eglGetConfigs(dpy, configs.data(), numConfig, &numConfig); in printEGLConfigurations()
264 msg.append(printEGLConfiguration(dpy, configs[i])); in printEGLConfigurations()

1234567