/frameworks/base/tools/aapt2/ |
D | DominatorTree_test.cpp | 75 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST() local 76 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST() 77 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST() 78 configs.push_back( in TEST() 81 DominatorTree tree(configs); in TEST() 97 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST() local 98 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST() 99 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST() 100 configs.push_back( in TEST() 102 configs.push_back( 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 | 57 ScanDetailsAndWifiConfigs(List<ScanDetail> scanDetails, WifiConfiguration[] configs) { in ScanDetailsAndWifiConfigs() argument 59 mWifiConfigs = configs; in ScanDetailsAndWifiConfigs() 153 WifiConfiguration[] configs = new WifiConfiguration[ssids.length]; in generateWifiConfigurations() local 165 configs[index] = generateWifiConfig(id.intValue(), 0, ssids[index], false, true, null, in generateWifiConfigurations() 169 return configs; in generateWifiConfigurations() 181 final WifiConfiguration[] configs) { in prepareConfigStore() argument 185 for (WifiConfiguration config : configs) { in prepareConfigStore() 196 for (WifiConfiguration config : configs) { in prepareConfigStore() 208 for (int netId = 0; netId < configs.length; netId++) { in prepareConfigStore() 209 savedNetworks.add(new WifiConfiguration(configs[netId])); in prepareConfigStore() [all …]
|
D | ConfigurationMapTest.java | 98 public void addNetworks(List<WifiConfiguration> configs) { in addNetworks() argument 99 for (WifiConfiguration config : configs) { in addNetworks() 104 public void verifyGetters(List<WifiConfiguration> configs) { in verifyGetters() argument 112 for (WifiConfiguration config : configs) { in verifyGetters() 160 assertEquals(configs.size(), mConfigs.sizeForAllUsers()); in verifyGetters() 164 assertEquals(new HashSet<>(configs), in verifyGetters() 192 final List<WifiConfiguration> configs = new ArrayList<>(); in testPutRemoveClear() local 197 verifyGetters(configs); in testPutRemoveClear() 202 configs.add(config1); in testPutRemoveClear() 203 verifyGetters(configs); in testPutRemoveClear() [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()
|
D | StringPool.cpp | 84 if (configs.size() > 0) { in makeConfigsString() 85 for (size_t j=0; j<configs.size(); j++) { in makeConfigsString() 87 configStr.append(configs[j].toString()); in makeConfigsString() 110 const size_t LHN = configs.size(); in compare() 111 const size_t RHN = o.configs.size(); in compare() 114 comp = configs[i].compareLogical(o.configs[i]); in compare() 171 for (addPos=0; addPos<ent.configs.size(); addPos++) { in add() 172 int cmp = ent.configs.itemAt(addPos).compareLogical(*config); in add() 178 ent.configs.insertAt(*config, addPos); in add() 183 if (addPos >= ent.configs.size()) { in add() [all …]
|
/frameworks/native/opengl/tests/include/ |
D | EGLUtils.h | 94 EGLConfig* const configs = (EGLConfig*)malloc(sizeof(EGLConfig)*numConfigs); in selectConfigForPixelFormat() local 95 if (eglChooseConfig(dpy, attrs, configs, numConfigs, &n) == EGL_FALSE) { in selectConfigForPixelFormat() 96 free(configs); in selectConfigForPixelFormat() 104 eglGetConfigAttrib(dpy, configs[i], EGL_NATIVE_VISUAL_ID, &nativeVisualId); in selectConfigForPixelFormat() 106 config = configs[i]; in selectConfigForPixelFormat() 111 free(configs); in selectConfigForPixelFormat()
|
/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 | 71 EGLConfig* configs; in main() local 77 configs = new EGLConfig[n]; in main() 78 eglGetConfigs(dpy, configs, n, &n); in main() 84 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); in main() 89 delete [] configs; in main()
|
/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/services/core/java/com/android/server/audio/ |
D | RecordingActivityMonitor.java | 58 final List<AudioRecordingConfiguration> configs = in onRecordingConfigurationChanged() local 60 if (configs != null){ in onRecordingConfigurationChanged() 66 configs); in onRecordingConfigurationChanged() 128 final ArrayList<AudioRecordingConfiguration> configs; in updateSnapshot() local 175 configs = new ArrayList<AudioRecordingConfiguration>(mRecordConfigs.values()); in updateSnapshot() 177 configs = null; in updateSnapshot() 180 return configs; in updateSnapshot()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CustomConfigLoader.java | 79 String[] configs = null; in loadCarrierActionList() local 85 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 89 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 95 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList() 103 if (!ArrayUtils.isEmpty(configs)) { in loadCarrierActionList() 104 for (String config : configs) { in loadCarrierActionList()
|
/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/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/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | LegacyPasspointConfigParserTest.java | 84 Map<String, LegacyPasspointConfig> configs = new HashMap<>(); in generateTestConfig() local 91 configs.put("test1.net", config1); in generateTestConfig() 98 configs.put("test2.net", config2); in generateTestConfig() 100 return configs; in generateTestConfig()
|
/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/cmds/screencap/ |
D | screencap.cpp | 159 Vector<DisplayInfo> configs; in main() local 160 SurfaceComposerClient::getDisplayConfigs(display, &configs); in main() 162 if (static_cast<size_t>(activeConfig) >= configs.size()) { in main() 164 activeConfig, configs.size()); in main() 167 uint8_t displayOrientation = configs[activeConfig].orientation; in main()
|
/frameworks/base/core/jni/ |
D | com_google_android_gles_jni_EGLImpl.cpp | 191 jintArray attrib_list, jobjectArray configs, jint config_size, jintArray num_config) { in jni_eglChooseConfig() argument 194 || (configs != NULL && _env->GetArrayLength(configs) < config_size) in jni_eglChooseConfig() 202 if (configs == NULL) { in jni_eglChooseConfig() 209 success = eglChooseConfig(dpy, attrib_base, configs ? nativeConfigs : 0, config_size, &num); in jni_eglChooseConfig() 216 if (success && configs!=NULL) { in jni_eglChooseConfig() 219 _env->SetObjectArrayElement(configs, i, obj); in jni_eglChooseConfig() 337 jobjectArray configs, jint config_size, jintArray num_config) { in jni_eglGetConfigs() argument 338 if (display == NULL || (configs != NULL && _env->GetArrayLength(configs) < config_size) in jni_eglGetConfigs() 345 if (configs == NULL) { in jni_eglGetConfigs() 350 success = eglGetConfigs(dpy, configs ? nativeConfigs : 0, config_size, &num); in jni_eglGetConfigs() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LinearLayoutManagerResizeTest.java | 44 List<Config> configs = new ArrayList<>(); in testResize() local 47 configs.add(config); in testResize() 49 return configs; in testResize()
|
D | GridLayoutManagerCachedBordersTest.java | 74 ArrayList<Config> configs = new ArrayList<>(); in cachedBordersTestConfigs() local 82 configs.add(config); in cachedBordersTestConfigs() 86 return configs; in cachedBordersTestConfigs()
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestConfigSource.java | 26 public TestConfigSource(Set<Pair<Domain, NetworkSecurityConfig>> configs, in TestConfigSource() argument 28 mConfigs = configs; in TestConfigSource()
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2Test.cpp | 1161 std::vector<hwc2_config_t> configs; in getInvalidConfig() local 1163 ASSERT_NO_FATAL_FAILURE(getDisplayConfigs(display, &configs)); in getInvalidConfig() 1167 ASSERT_LE(configs.size() - 1, CONFIG_MAX) << "every config value" in getInvalidConfig() 1172 if (std::count(configs.begin(), configs.end(), config) == 0) in getInvalidConfig() 1243 std::vector<hwc2_config_t> configs; in setLayerProperty() local 1245 ASSERT_NO_FATAL_FAILURE(getDisplayConfigs(display, &configs)); in setLayerProperty() 1247 for (auto config : configs) { in setLayerProperty() 1275 std::vector<hwc2_config_t> configs; in setLayerPropertyUpdate() local 1277 ASSERT_NO_FATAL_FAILURE(getDisplayConfigs(display, &configs)); in setLayerPropertyUpdate() 1279 for (auto config : configs) { in setLayerPropertyUpdate() [all …]
|
/frameworks/native/opengl/tests/gl2_basic/ |
D | gl2_basic.cpp | 244 EGLConfig* configs = (EGLConfig*) malloc(sizeof(EGLConfig) * numConfig); in printEGLConfigurations() local 245 if (! configs) { in printEGLConfigurations() 250 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations() 253 free(configs); in printEGLConfigurations() 259 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations() 262 free(configs); in printEGLConfigurations()
|