/frameworks/base/tools/aapt2/ |
D | DominatorTree_test.cpp | 76 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/ |
D | ResourceTable_test.cpp | 27 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() local 38 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 39 configs->addEntry(landConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 40 configs->addEntry(sw600dpLandConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 42 EXPECT_TRUE(ResourceTable::shouldGenerateVersionedResource(configs, defaultConfig, 17)); in TEST() 43 EXPECT_TRUE(ResourceTable::shouldGenerateVersionedResource(configs, landConfig, 17)); in TEST() 47 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() local 58 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 59 configs->addEntry(v21Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 60 configs->addEntry(sw600dpV13Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Config_test.cpp | 29 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/ |
D | WifiNetworkSelectorTestUtil.java | 56 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 …]
|
D | ConfigurationMapTest.java | 121 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareNativeApiTest.java | 151 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/ |
D | ApkBuilder.cpp | 30 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()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.h | 77 void populate(const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs) { in populate() argument 86 if (configs.size() < 1) { in populate() 94 for (int i = 0; i < configs.size(); ++i) { in populate() 95 configIdToVsyncPeriod.emplace_back(i, configs.at(i)->getVsyncPeriod()); in populate() 112 configs.at(configId)->getId()})); in populate() 115 if (configs.size() < 2) { in populate() 129 configs.at(configId)->getId()})); in populate()
|
/frameworks/base/media/java/android/media/ |
D | AudioRecordingMonitorImpl.java | 119 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/ |
D | RecordingActivityMonitor.java | 186 private void dispatchCallbacks(List<AudioRecordingConfiguration> configs) { in dispatchCallbacks() argument 187 if (configs == null) { // null means "no changes" in dispatchCallbacks() 194 ? anonymizeForPublicConsumption(configs) : in dispatchCallbacks() 199 rmc.mDispatcherCb.dispatchRecordingConfigChange(configs); in dispatchCallbacks() 243 List<AudioRecordingConfiguration> configs = null; in onAudioServerDied() local 259 configs = getActiveRecordingConfigurations(true /*isPrivileged*/); in onAudioServerDied() 262 dispatchCallbacks(configs); in onAudioServerDied() 303 List<AudioRecordingConfiguration> configs = new ArrayList<AudioRecordingConfiguration>(); in getActiveRecordingConfigurations() local 307 configs.add(state.getConfig()); in getActiveRecordingConfigurations() 314 configs = anonymizeForPublicConsumption(configs); in getActiveRecordingConfigurations() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHal.java | 52 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/ |
D | configdump.cpp | 70 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/ |
D | CustomConfigLoader.java | 78 String[] configs = null; in loadCarrierActionList() local 84 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 88 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 94 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 98 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 108 if (!ArrayUtils.isEmpty(configs)) { in loadCarrierActionList() 109 for (String config : configs) { in loadCarrierActionList()
|
/frameworks/native/opengl/tools/glgen/specs/egl/ |
D | checks.spec | 2 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/ |
D | Util_test.cpp | 38 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/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetConfigStore.java | 45 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/base/libs/hwui/ |
D | DeviceInfo.cpp | 77 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/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateStatsTest.cpp | 67 std::vector<std::shared_ptr<const HWC2::Display::Config>> configs; in TEST_F() local 68 mRefreshRateConfigs.populate(configs); in TEST_F() 79 std::vector<std::shared_ptr<const HWC2::Display::Config>> configs; in TEST_F() local 80 configs.push_back(config.build()); in TEST_F() 82 mRefreshRateConfigs.populate(configs); in TEST_F() 134 std::vector<std::shared_ptr<const HWC2::Display::Config>> configs; in TEST_F() local 135 configs.push_back(config90.build()); in TEST_F() 139 configs.push_back(config60.build()); in TEST_F() 141 mRefreshRateConfigs.populate(configs); in TEST_F()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneStateListenerExecutorTest.java | 71 List<PhysicalChannelConfig> configs) { in setUp() 73 mPhysicalChannelConfigs = configs; in setUp() 122 List<PhysicalChannelConfig> configs = Collections.singletonList(config); in testTriggerPhysicalChannelConfigurationChanged() local 125 .onPhysicalChannelConfigurationChanged(configs); in testTriggerPhysicalChannelConfigurationChanged() 127 assertTrue(mPhysicalChannelConfigs.equals(configs)); in testTriggerPhysicalChannelConfigurationChanged()
|
D | PhoneStateListenerTest.java | 69 List<PhysicalChannelConfig> configs) { in onLooperPrepared() 71 mPhysicalChannelConfigs = configs; in onLooperPrepared() 136 List<PhysicalChannelConfig> configs = Collections.singletonList(config); in testTriggerPhysicalChannelConfigurationChanged() local 140 .onPhysicalChannelConfigurationChanged(configs); in testTriggerPhysicalChannelConfigurationChanged() 143 assertTrue(mPhysicalChannelConfigs.equals(configs)); in testTriggerPhysicalChannelConfigurationChanged()
|
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
D | GL2JNIView.java | 131 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/ |
D | GLDualGL2View.java | 134 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/gl_perfapp/src/com/android/glperf/ |
D | GLPerfView.java | 131 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/ |
D | gl2_copyTexImage.cpp | 343 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/base/core/jni/ |
D | com_google_android_gles_jni_EGLImpl.cpp | 189 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 …]
|