/frameworks/base/libs/androidfw/tests/ |
D | Config_test.cpp | 28 const Vector<ResTable_config>& configs) { in selectBest() argument 31 const size_t configCount = configs.size(); in selectBest() 33 const ResTable_config& thisConfig = configs[i]; in selectBest() 59 Vector<ResTable_config> configs; in TEST() local 62 configs.add(expectedBest); in TEST() 63 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST() 66 configs.add(expectedBest); in TEST() 67 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST() 70 configs.add(expectedBest); in TEST() 71 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 108 public void verifyGetters(List<WifiConfiguration> configs) { in verifyGetters() argument 116 for (WifiConfiguration config : configs) { in verifyGetters() 166 assertEquals(configs.size(), mConfigs.sizeForAllUsers()); in verifyGetters() 170 assertEquals(new HashSet<>(configs), in verifyGetters() 199 final List<WifiConfiguration> configs = new ArrayList<>(); in testPutRemoveClear() local 204 verifyGetters(configs); in testPutRemoveClear() 209 configs.add(config1); in testPutRemoveClear() 210 verifyGetters(configs); in testPutRemoveClear() 217 configs.clear(); in testPutRemoveClear() 218 configs.add(config2); 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 | 88 if (configs.size() > 0) { in makeConfigsString() 89 for (size_t j=0; j<configs.size(); j++) { in makeConfigsString() 91 configStr.append(configs[j].toString()); in makeConfigsString() 114 const size_t LHN = configs.size(); in compare() 115 const size_t RHN = o.configs.size(); in compare() 118 comp = configs[i].compareLogical(o.configs[i]); in compare() 175 for (addPos=0; addPos<ent.configs.size(); addPos++) { in add() 176 int cmp = ent.configs.itemAt(addPos).compareLogical(*config); in add() 182 ent.configs.insertAt(*config, addPos); in add() 187 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 | 50 void onDeviceAvailable(TvInputHardwareInfo info, TvStreamConfig[] configs); in onDeviceAvailable() argument 52 void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs); in onStreamConfigurationChanged() argument 160 TvStreamConfig[] configs; in handleMessage() local 167 configs = mStreamConfigs.get(info.getDeviceId()); in handleMessage() 169 mCallback.onDeviceAvailable(info, configs); in handleMessage() 183 TvStreamConfig[] configs; in handleMessage() local 190 configs = mStreamConfigs.get(deviceId); in handleMessage() 192 mCallback.onStreamConfigurationChanged(deviceId, configs); in handleMessage()
|
/frameworks/native/opengl/tests/configdump/ |
D | configdump.cpp | 68 EGLConfig* configs; in main() local 74 configs = new EGLConfig[n]; in main() 75 eglGetConfigs(dpy, configs, n, &n); in main() 81 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); in main() 86 delete [] configs; in main()
|
/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/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/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/cmds/screencap/ |
D | screencap.cpp | 154 Vector<DisplayInfo> configs; in main() local 155 SurfaceComposerClient::getDisplayConfigs(display, &configs); in main() 157 if (static_cast<size_t>(activeConfig) >= configs.size()) { in main() 159 activeConfig, configs.size()); in main() 162 uint8_t displayOrientation = configs[activeConfig].orientation; in main()
|
/frameworks/base/core/jni/ |
D | com_google_android_gles_jni_EGLImpl.cpp | 192 jintArray attrib_list, jobjectArray configs, jint config_size, jintArray num_config) { in jni_eglChooseConfig() argument 195 || (configs != NULL && _env->GetArrayLength(configs) < config_size) in jni_eglChooseConfig() 203 if (configs == NULL) { in jni_eglChooseConfig() 210 success = eglChooseConfig(dpy, attrib_base, configs ? nativeConfigs : 0, config_size, &num); in jni_eglChooseConfig() 217 if (success && configs!=NULL) { in jni_eglChooseConfig() 220 _env->SetObjectArrayElement(configs, i, obj); in jni_eglChooseConfig() 386 jobjectArray configs, jint config_size, jintArray num_config) { in jni_eglGetConfigs() argument 387 if (display == NULL || (configs != NULL && _env->GetArrayLength(configs) < config_size) in jni_eglGetConfigs() 394 if (configs == NULL) { in jni_eglGetConfigs() 399 success = eglGetConfigs(dpy, configs ? nativeConfigs : 0, config_size, &num); in jni_eglGetConfigs() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 357 const tv_stream_config_t* configs = NULL; in addOrUpdateStream() local 359 mDevice, deviceId, &numConfigs, &configs) != 0) { in addOrUpdateStream() 365 if (configs[i].stream_id == streamId) { in addOrUpdateStream() 374 connection.mStreamType = configs[configIndex].type; in addOrUpdateStream() 377 stream.stream_id = configs[configIndex].stream_id; in addOrUpdateStream() 379 stream.buffer_producer.width = configs[configIndex].max_video_width; in addOrUpdateStream() 380 stream.buffer_producer.height = configs[configIndex].max_video_height; in addOrUpdateStream() 435 const tv_stream_config_t* configs = NULL; in getStreamConfigs() local 437 mDevice, deviceId, numConfigs, &configs) != 0) { in getStreamConfigs() 441 return configs; in getStreamConfigs() [all …]
|
D | com_android_server_AssetAtlasService.cpp | 98 EGLConfig configs[1]; in com_android_server_AssetAtlasService_upload() local 100 if (!eglChooseConfig(display, configAttrs, configs, 1, &configCount)) { in com_android_server_AssetAtlasService_upload() 122 EGLContext context = eglCreateContext(display, configs[0], EGL_NO_CONTEXT, attrs); in com_android_server_AssetAtlasService_upload() 130 surface = eglCreatePbufferSurface(display, configs[0], surfaceAttrs); in com_android_server_AssetAtlasService_upload()
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
D | RenderEngine.cpp | 288 EGLConfig* const configs = new EGLConfig[numConfigs]; in selectConfigForAttribute() local 289 eglChooseConfig(dpy, attrs, configs, numConfigs, &n); in selectConfigForAttribute() 295 eglGetConfigAttrib(dpy, configs[i], attribute, &value); in selectConfigForAttribute() 297 *outConfig = configs[i]; in selectConfigForAttribute() 298 delete [] configs; in selectConfigForAttribute() 304 *outConfig = configs[0]; in selectConfigForAttribute() 305 delete [] configs; in selectConfigForAttribute() 309 delete [] configs; in selectConfigForAttribute()
|
/frameworks/native/opengl/tests/gl2_basic/ |
D | gl2_basic.cpp | 239 EGLConfig* configs = (EGLConfig*) malloc(sizeof(EGLConfig) * numConfig); in printEGLConfigurations() local 240 if (! configs) { in printEGLConfigurations() 245 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations() 248 free(configs); in printEGLConfigurations() 254 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations() 257 free(configs); in printEGLConfigurations()
|
/frameworks/base/core/java/android/animation/ |
D | Animator.java | 363 public void setChangingConfigurations(@Config int configs) { in setChangingConfigurations() argument 364 mChangingConfigurations = configs; in setChangingConfigurations() 373 public void appendChangingConfigurations(@Config int configs) { in appendChangingConfigurations() argument 374 mChangingConfigurations |= configs; in appendChangingConfigurations()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LinearLayoutManagerResizeTest.java | 46 List<Config> configs = new ArrayList<>(); in testResize() local 49 configs.add(config); in testResize() 51 return configs; in testResize()
|
D | GridLayoutManagerCachedBordersTest.java | 69 ArrayList<Config> configs = new ArrayList<Config>(); in cachedBordersTestConfigs() local 77 configs.add(config); in cachedBordersTestConfigs() 81 return configs; in cachedBordersTestConfigs()
|
/frameworks/native/opengl/tests/gl_basic/ |
D | gl_basic.cpp | 170 EGLConfig* configs = (EGLConfig*) malloc(sizeof(EGLConfig) * numConfig); in printEGLConfigurations() local 171 if (! configs) { in printEGLConfigurations() 176 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations() 179 free(configs); in printEGLConfigurations() 185 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations() 188 free(configs); in printEGLConfigurations()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 364 public int loadNetworks(Map<String, WifiConfiguration> configs, in loadNetworks() argument 438 final WifiConfiguration duplicateConfig = configs.put(configKey, config); in loadNetworks() 861 public boolean selectNetwork(WifiConfiguration config, Collection<WifiConfiguration> configs) { in selectNetwork() argument 871 markAllNetworksDisabledExcept(config.networkId, configs); in selectNetwork() 973 public boolean disableAllNetworks(Collection<WifiConfiguration> configs) { in disableAllNetworks() argument 976 for (WifiConfiguration enabled : configs) { in disableAllNetworks() 1107 public void resetSimNetworks(Collection<WifiConfiguration> configs) { in resetSimNetworks() argument 1109 for (WifiConfiguration config : configs) { in resetSimNetworks() 1157 private void markAllNetworksDisabledExcept(int netId, Collection<WifiConfiguration> configs) { in markAllNetworksDisabledExcept() argument 1158 for (WifiConfiguration config : configs) { in markAllNetworksDisabledExcept() [all …]
|