Home
last modified time | relevance | path

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

12345678

/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp75 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(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
80 DominatorTree tree(configs); in TEST()
95 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST() local
96 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
97 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
99 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/base/services/companion/java/com/android/server/companion/virtual/audio/
DVirtualAudioController.java148 List<AudioPlaybackConfiguration> configs = in onRunningAppsChanged() local
150 mPlayingAppUids = findPlayingAppUids(configs, mRunningAppUids); in onRunningAppsChanged()
179 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged() argument
180 updatePlayingApplications(configs); in onPlaybackConfigChanged()
185 audioPlaybackConfigurations = findPlaybackConfigurations(configs, mRunningAppUids); in onPlaybackConfigChanged()
200 public void onRecordingConfigChanged(List<AudioRecordingConfiguration> configs) { in onRecordingConfigChanged() argument
204 audioRecordingConfigurations = findRecordingConfigurations(configs, mRunningAppUids); in onRecordingConfigChanged()
217 private void updatePlayingApplications(List<AudioPlaybackConfiguration> configs) { in updatePlayingApplications() argument
219 ArraySet<Integer> playingAppUids = findPlayingAppUids(configs, mRunningAppUids); in updatePlayingApplications()
261 private static ArraySet<Integer> findPlayingAppUids(List<AudioPlaybackConfiguration> configs, in findPlayingAppUids() argument
[all …]
DAudioRecordingDetector.java38 void onRecordingConfigChanged(List<AudioRecordingConfiguration> configs); in onRecordingConfigChanged() argument
61 public void onRecordingConfigChanged(List<AudioRecordingConfiguration> configs) { in onRecordingConfigChanged() argument
62 super.onRecordingConfigChanged(configs); in onRecordingConfigChanged()
64 mAudioRecordingCallback.onRecordingConfigChanged(configs); in onRecordingConfigChanged()
DAudioPlaybackDetector.java38 void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs); in onPlaybackConfigChanged() argument
61 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged() argument
62 super.onPlaybackConfigChanged(configs); in onPlaybackConfigChanged()
64 mAudioPlaybackCallback.onPlaybackConfigChanged(configs); in onPlaybackConfigChanged()
/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensorDirectChannelWriter.java161 SparseArray<DirectChannelConfiguration> configs = mConfiguredChannels.get( in configureChannel() local
164 if (configs == null || configs.removeReturnOld(channelHandle) == null) { in configureChannel()
172 if (configs == null) { in configureChannel()
173 configs = new SparseArray<>(); in configureChannel()
174 mConfiguredChannels.put(sensor.getHandle(), configs); in configureChannel() local
183 configs.put(channelHandle, new DirectChannelConfiguration( in configureChannel()
200 SparseArray<DirectChannelConfiguration> configs = mConfiguredChannels.get( in writeSensorEvent() local
202 if (configs == null || configs.size() == 0) { in writeSensorEvent()
208 for (int i = 0; i < configs.size(); ++i) { in writeSensorEvent()
209 configs.valueAt(i).write(Objects.requireNonNull(event)); in writeSensorEvent()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/viewmodel/
DFakeQSTileConfigProvider.kt23 private val configs: MutableMap<String, QSTileConfig> = mutableMapOf() constant in com.android.systemui.qs.tiles.viewmodel.FakeQSTileConfigProvider
25 override fun getConfig(tileSpec: String): QSTileConfig = configs.getValue(tileSpec) in getConfig()
27 override fun hasConfig(tileSpec: String): Boolean = configs.containsKey(tileSpec) in getConfig()
30 configs[tileSpec.spec] = config in getConfig()
33 fun removeConfig(tileSpec: TileSpec): QSTileConfig? = configs.remove(tileSpec.spec)
/frameworks/base/cmds/idmap2/libidmap2/
DBinaryStreamVisitor.cpp83 std::vector<ConfigDescription> configs; in visit() local
84 configs.reserve(data.GetHeader()->GetConfigCount()); in visit()
86 auto config_it = find(configs.begin(), configs.end(), target_entry_value.first); in visit()
87 if (config_it != configs.end()) { in visit()
88 Write32(config_it - configs.begin()); in visit()
90 Write32(configs.size()); in visit()
91 configs.push_back(target_entry_value.first); in visit()
99 for( auto& cd : configs) { in visit()
/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()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/audio/
DVirtualAudioControllerTest.java177 List<AudioPlaybackConfiguration> configs = createPlaybackConfigurations(runningUids); in onPlaybackConfigChanged_sendsCallback() local
179 mVirtualAudioController.onPlaybackConfigChanged(configs); in onPlaybackConfigChanged_sendsCallback()
181 verify(mConfigChangedCallback).onPlaybackConfigChanged(configs); in onPlaybackConfigChanged_sendsCallback()
191 List<AudioRecordingConfiguration> configs = createRecordingConfigurations(runningUids); in onRecordingConfigChanged_sendsCallback() local
193 mVirtualAudioController.onRecordingConfigChanged(configs); in onRecordingConfigChanged_sendsCallback()
195 verify(mConfigChangedCallback).onRecordingConfigChanged(configs); in onRecordingConfigChanged_sendsCallback()
200 List<AudioPlaybackConfiguration> configs = new ArrayList<>(); in createPlaybackConfigurations() local
208 configs.add(audioPlaybackConfiguration); in createPlaybackConfigurations()
210 return configs; in createPlaybackConfigurations()
215 List<AudioRecordingConfiguration> configs = new ArrayList<>(); in createRecordingConfigurations() local
[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/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/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/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCustomConfigLoader.java77 String[] configs = null; in loadCarrierActionList() local
83 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
87 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
93 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
97 configs = b.getStringArray(CarrierConfigManager in loadCarrierActionList()
107 if (!ArrayUtils.isEmpty(configs)) { in loadCarrierActionList()
108 for (String config : configs) { in loadCarrierActionList()
/frameworks/base/services/core/java/com/android/server/audio/
DRecordingActivityMonitor.java239 private void dispatchCallbacks(List<AudioRecordingConfiguration> configs) { in dispatchCallbacks() argument
240 if (configs == null) { // null means "no changes" in dispatchCallbacks()
247 ? anonymizeForPublicConsumption(configs) : in dispatchCallbacks()
252 rmc.mDispatcherCb.dispatchRecordingConfigChange(configs); in dispatchCallbacks()
296 List<AudioRecordingConfiguration> configs = null; in onAudioServerDied() local
312 configs = getActiveRecordingConfigurations(true /*isPrivileged*/); in onAudioServerDied()
315 dispatchCallbacks(configs); in onAudioServerDied()
356 List<AudioRecordingConfiguration> configs = new ArrayList<AudioRecordingConfiguration>(); in getActiveRecordingConfigurations() local
360 configs.add(state.getConfig()); in getActiveRecordingConfigurations()
367 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
188 TvStreamConfig[] configs; in handleMessage() local
195 configs = mStreamConfigs.get(info.getDeviceId()); in handleMessage()
197 mCallback.onDeviceAvailable(info, configs); in handleMessage()
211 TvStreamConfig[] configs; in handleMessage() local
219 configs = mStreamConfigs.get(deviceId); in handleMessage()
221 mCallback.onStreamConfigurationChanged(deviceId, configs, cableConnectionStatus); in handleMessage()
/frameworks/native/libs/nativedisplay/
DADisplay.cpp105 DisplayConfigImpl* configs; member
197 const std::vector<DisplayConfigImpl>& configs = modesPerDisplay[i]; in ADisplay_acquirePhysicalDisplays() local
198 memcpy(configData, configs.data(), sizeof(DisplayConfigImpl) * configs.size()); in ADisplay_acquirePhysicalDisplays()
204 configs.size(), in ADisplay_acquirePhysicalDisplays()
209 configData += configs.size(); in ADisplay_acquirePhysicalDisplays()
228 maxFps = std::max(maxFps, impl->configs[i].fps); in ADisplay_getMaxSupportedFps()
263 auto* config = impl->configs + i; in ADisplay_getCurrentConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileConfigProvider.kt43 private val configs: Map<String, QSTileConfig>, in getConfig() constant in com.android.systemui.qs.tiles.viewmodel.QSTileConfigProviderImpl
48 for (entry in configs.entries) { in getConfig()
60 is TileSpec.PlatformTileSpec -> configs.containsKey(tileSpec) in getConfig()
68 configs[tileSpec] in getConfig()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMessagingResponse.java103 android.hardware.radio.messaging.CdmaBroadcastSmsConfigInfo[] configs) { in getCdmaBroadcastConfigResponse() argument
108 int numServiceCategories = configs.length; in getCdmaBroadcastConfigResponse()
133 for (int i = 1, j = 0; j < configs.length; in getCdmaBroadcastConfigResponse()
135 ret[i] = configs[i].serviceCategory; in getCdmaBroadcastConfigResponse()
136 ret[i + 1] = configs[i].language; in getCdmaBroadcastConfigResponse()
137 ret[i + 2] = configs[i].selected ? 1 : 0; in getCdmaBroadcastConfigResponse()
152 android.hardware.radio.messaging.GsmBroadcastSmsConfigInfo[] configs) { in getGsmBroadcastConfigResponse() argument
157 for (android.hardware.radio.messaging.GsmBroadcastSmsConfigInfo info : configs) { in getGsmBroadcastConfigResponse()
/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/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/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/base/core/tests/coretests/src/android/companion/virtual/audio/
DVirtualAudioSessionTest.java168 List<AudioPlaybackConfiguration> configs = new ArrayList<>(); in onPlaybackConfigChanged_sendsCallback() local
170 mVirtualAudioSession.getAudioConfigChangedListener().onPlaybackConfigChanged(configs); in onPlaybackConfigChanged_sendsCallback()
172 verify(mCallback, timeout(2000)).onPlaybackConfigChanged(configs); in onPlaybackConfigChanged_sendsCallback()
177 List<AudioRecordingConfiguration> configs = new ArrayList<>(); in onRecordingConfigChanged_sendCallback() local
179 mVirtualAudioSession.getAudioConfigChangedListener().onRecordingConfigChanged(configs); in onRecordingConfigChanged_sendCallback()
181 verify(mCallback, timeout(2000)).onRecordingConfigChanged(configs); in onRecordingConfigChanged_sendCallback()
/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()

12345678