Searched refs:config (Results 76 - 100 of 591) sorted by relevance

1234567891011>>

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerBaseConfigSetTest.java61 public LinearLayoutManagerBaseConfigSetTest(Config config) { argument
62 mConfig = config;
69 for (Config config : createBaseVariations()) {
70 result.add(config);
77 Config config = ((Config) mConfig.clone()).itemCount(300);
78 setupByConfig(config, true);
80 .createOrientationHelper(mLayoutManager, config.mOrientation);
84 if (config.mStackFromEnd) {
90 assertRectSetsEqual(config + " trying to over scroll with offset should be no-op",
98 final int startOffset = config
303 findInvisibleTarget(Config config) argument
[all...]
H A DLinearLayoutManagerPrepareForDropTest.java42 Config config, SelectTargetChildren selectTargetChildren) {
43 mConfig = config;
90 for (BaseLinearLayoutManagerTest.Config config : createBaseVariations()) {
91 variations.add(new Object[]{config, selector});
101 final Config config = (Config) mConfig.clone();
102 config.mTestAdapter = new BaseRecyclerViewInstrumentationTest.TestAdapter(100) {
107 if (config.mOrientation == HORIZONTAL) {
118 setupByConfig(config, true);
131 if (config.mReverseLayout == towardsHead) {
142 if (config
41 LinearLayoutManagerPrepareForDropTest( Config config, SelectTargetChildren selectTargetChildren) argument
[all...]
H A DStaggeredGridLayoutManagerGapTest.java40 public StaggeredGridLayoutManagerGapTest(Config config, int deletePosition, int deleteCount) { argument
41 mConfig = config;
46 @Parameterized.Parameters(name = "config={0} deletePos={1} deleteCount={2}")
50 for (Config config : variations) {
51 for (int deleteCount = 1; deleteCount < config.mSpanCount * 2; deleteCount++) {
52 for (int deletePosition = config.mSpanCount - 1;
53 deletePosition < config.mSpanCount + 2; deletePosition++) {
54 params.add(new Object[]{config.clone(), deletePosition, deleteCount});
H A DGridLayoutManagerCachedBordersTest.java44 public GridLayoutManagerCachedBordersTest(Config config) { argument
45 mConfig = config;
75 Config config = new Config(spanCounts[i], orientation, reverseLayout);
76 config.mSpanPerItem = spanPerItem[i];
77 configs.add(config);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConfigManagerTest.java209 private void switchUserToCreatorOrParentOf(WifiConfiguration config) { argument
210 final int creatorUserId = UserHandle.getUserId(config.creatorUid);
225 private void addNetwork(WifiConfiguration config) throws Exception { argument
232 switchUserToCreatorOrParentOf(config);
233 final WifiConfiguration configCopy = new WifiConfiguration(config);
234 int networkId = config.networkId;
235 config.networkId = -1;
238 .thenReturn(encodeConfigSSID(config));
239 mWifiConfigManager.saveNetwork(config, configCopy.creatorUid);
244 private String encodeConfigSSID(WifiConfiguration config) throw argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealth.java177 BluetoothHealthAppConfiguration config =
182 result = mService.registerAppConfiguration(config, wrapper);
199 * @param config The health app configuration
202 public boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config) { argument
204 if (mService != null && isEnabled() && config != null) {
206 result = mService.unregisterAppConfiguration(config);
226 * @param config The application configuration which has been registered using
228 * @return If true, the callback associated with the application config will be called.
231 BluetoothHealthAppConfiguration config) {
233 config !
230 connectChannelToSource(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument
259 connectChannelToSink(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelType) argument
288 disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId) argument
317 getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config) argument
430 onHealthAppConfigurationStatusChange(BluetoothHealthAppConfiguration config, int status) argument
436 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
[all...]
H A DBluetoothHealthAppConfiguration.java70 BluetoothHealthAppConfiguration config = (BluetoothHealthAppConfiguration) o;
71 // config.getName() can never be NULL
72 return mName.equals(config.getName()) &&
73 mDataType == config.getDataType() &&
74 mRole == config.getRole() &&
75 mChannelType == config.getChannelType();
/frameworks/base/core/java/android/security/net/config/
H A DCertificateSource.java17 package android.security.net.config;
H A DTrustAnchor.java17 package android.security.net.config;
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiSoftAPTest.java63 WifiConfiguration config = new WifiConfiguration();
64 config.SSID = "abcdefghijklmnopqrstuvwxyz";
65 config.allowedKeyManagement.set(KeyMgmt.NONE);
66 mWifiConfig = config;
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenModeConditions.java62 public void evaluateConfig(ZenModeConfig config, boolean processSubscriptions) { argument
63 if (config == null) return;
64 if (config.manualRule != null && config.manualRule.condition != null
65 && !config.manualRule.isTrueOrUnknown()) {
67 config.manualRule = null;
70 evaluateRule(config.manualRule, current, processSubscriptions);
71 for (ZenRule automaticRule : config.automaticRules.values()) {
108 ZenModeConfig config = mHelper.getConfig();
109 if (config
[all...]
H A DZenModeHelper.java213 ZenModeConfig config = mConfigs.get(user);
214 if (config == null) {
215 if (DEBUG) Log.d(TAG, reason + " generating default config for user " + user);
216 config = mDefaultConfig.copy();
217 config.user = user;
220 setConfigLocked(config, reason);
505 private static void dump(PrintWriter pw, String prefix, String var, ZenModeConfig config) { argument
507 if (config == null) {
508 pw.println(config);
513 config
569 getNotificationPolicy(ZenModeConfig config) argument
615 setConfigLocked(ZenModeConfig config, String reason) argument
619 setConfigAsync(ZenModeConfig config, String reason) argument
623 setConfigLocked(ZenModeConfig config, String reason, boolean setRingerMode) argument
656 applyConfig(ZenModeConfig config, String reason, boolean setRingerMode) argument
817 appendDefaultScheduleRules(ZenModeConfig config) argument
852 appendDefaultEventRules(ZenModeConfig config) argument
1084 public final ZenModeConfig config; field in class:ZenModeHelper.H.ConfigMessageData
1088 ConfigMessageData(ZenModeConfig config, String reason) argument
1094 ConfigMessageData(ZenModeConfig config, String reason, boolean setRingerMode) argument
1117 postSetConfig(ZenModeConfig config, String reason) argument
1121 postApplyConfig(ZenModeConfig config, String reason, boolean setRingerMode) argument
[all...]
/frameworks/base/tools/aapt2/
H A DResourceTable.h58 const ConfigDescription config; member in class:aapt::ResourceConfigValue
70 ResourceConfigValue(const ConfigDescription& config, const StringPiece& product) : argument
71 config(config), product(product.toString()) { }
107 ResourceConfigValue* findValue(const ConfigDescription& config);
108 ResourceConfigValue* findValue(const ConfigDescription& config, const StringPiece& product);
109 ResourceConfigValue* findOrCreateValue(const ConfigDescription& config,
111 std::vector<ResourceConfigValue*> findAllValues(const ConfigDescription& config);
193 const ConfigDescription& config,
200 const ConfigDescription& config,
[all...]
H A DConfigDescription.cpp34 static ConfigDescription config = {}; local
35 return config;
583 ConfigDescription config; local
594 if (parseMcc(partIter->c_str(), &config)) {
601 if (parseMnc(partIter->c_str(), &config)) {
614 locale.writeTo(&config);
621 if (parseLayoutDirection(partIter->c_str(), &config)) {
628 if (parseSmallestScreenWidthDp(partIter->c_str(), &config)) {
635 if (parseScreenWidthDp(partIter->c_str(), &config)) {
642 if (parseScreenHeightDp(partIter->c_str(), &config)) {
758 applyVersionForCompatibility(ConfigDescription* config) argument
[all...]
H A DResourceTable.cpp125 ResourceConfigValue* ResourceEntry::findValue(const ConfigDescription& config) { argument
126 return findValue(config, StringPiece());
130 const ConfigDescription* config; member in struct:aapt::ConfigKey
135 int cmp = lhs->config.compare(*rhs.config);
142 ResourceConfigValue* ResourceEntry::findValue(const ConfigDescription& config, argument
145 ConfigKey{ &config, product }, ltConfigKeyRef);
148 if (value->config == config && StringPiece(value->product) == product) {
155 ResourceConfigValue* ResourceEntry::findOrCreateValue(const ConfigDescription& config, argument
170 findAllValues(const ConfigDescription& config) argument
256 addResource(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
265 addResource(const ResourceNameRef& name, const ResourceId resId, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
275 addFileReference(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece16& path, IDiagnostics* diag) argument
283 addFileReferenceAllowMangled(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece16& path, io::IFile* file, IDiagnostics* diag) argument
292 addFileReferenceImpl(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece16& path, io::IFile* file, const char16_t* validChars, IDiagnostics* diag) argument
307 addResourceAllowMangled(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
316 addResourceAllowMangled(const ResourceNameRef& name, const ResourceId id, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
326 addResourceImpl(const ResourceNameRef& name, const ResourceId resId, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, const char16_t* validChars, std::function<int(Value*,Value*)> conflictResolver, IDiagnostics* diag) argument
403 << "with config '" << config << "'"); local
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityManagerTest.java97 ConfigurationInfo config = mActivityManager.getDeviceConfigurationInfo();
98 assertNotNull(config);
102 assertEquals(config.reqKeyboardType, vconfig.keyboard);
103 assertEquals(config.reqTouchScreen, vconfig.touchscreen);
104 assertEquals(config.reqNavigation, vconfig.navigation);
106 assertNotNull(config.reqInputFeatures & ConfigurationInfo.INPUT_FEATURE_FIVE_WAY_NAV);
109 assertNotNull(config.reqInputFeatures & ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD);
/frameworks/base/tools/aapt2/test/
H A DCommon.h73 ConfigDescription config; local
74 bool result = ConfigDescription::parse(str, &config);
76 return config;
81 const ConfigDescription& config,
85 ResourceConfigValue* configValue = result.value().entry->findValue(config, product);
94 const ConfigDescription& config) {
95 return getValueForConfigAndProduct<T>(table, resName, config, {});
79 getValueForConfigAndProduct(ResourceTable* table, const StringPiece16& resName, const ConfigDescription& config, const StringPiece& product) argument
93 getValueForConfig(ResourceTable* table, const StringPiece16& resName, const ConfigDescription& config) argument
/frameworks/av/radio/
H A DIRadioService.cpp82 const struct radio_band_config *config,
90 ALOGV("attach() config %p withAudio %d region %d type %d",
91 config == NULL ? 0 : config, withAudio, config->region, config->band.type);
92 if (config == NULL) {
96 data.write(config, sizeof(struct radio_band_config));
156 struct radio_band_config config; local
159 data.read(&config, sizeo
80 attach(radio_handle_t handle, const sp<IRadioClient>& client, const struct radio_band_config *config, bool withAudio, sp<IRadio>& radio) argument
[all...]
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLImpl.java37 public native boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, int[] value); argument
53 public EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list) { argument
54 long eglContextId = _eglCreateContext(display, config, share_context, attrib_list);
61 public EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list) { argument
62 long eglSurfaceId = _eglCreatePbufferSurface(display, config, attrib_list);
69 public EGLSurface eglCreatePixmapSurface(EGLDisplay display, EGLConfig config, Object native_pixmap, int[] attrib_list) { argument
71 _eglCreatePixmapSurface(sur, display, config, native_pixmap, attrib_list);
78 public EGLSurface eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list) { argument
92 eglSurfaceId = _eglCreateWindowSurface(display, config, sur, attrib_list);
94 eglSurfaceId = _eglCreateWindowSurfaceTexture(display, config,
148 _eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list) argument
149 _eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list) argument
150 _eglCreatePixmapSurface(EGLSurface sur, EGLDisplay display, EGLConfig config, Object native_pixmap, int[] attrib_list) argument
151 _eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list) argument
152 _eglCreateWindowSurfaceTexture(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DMffContext.java150 * @param config The configuration to use.
154 public MffContext(Context context, Config config) { argument
155 init(context, config);
262 * Set the default EGL config chooser.
339 private void init(Context context, Config config) { argument
340 determineGLSupport(context, config);
341 determineCameraSupport(config);
344 fetchDummySurfaceView(context, config);
347 private void fetchDummySurfaceView(Context context, Config config) { argument
348 if (config
355 determineGLSupport(Context context, Config config) argument
367 determineCameraSupport(Config config) argument
[all...]
/frameworks/av/services/audioflinger/
H A DAudioStreamOut.cpp115 struct audio_config *config,
120 audio_output_flags_t customFlags = (config->format == AUDIO_FORMAT_IEC61937)
129 config,
136 config->sample_rate,
137 config->format,
138 config->channel_mask,
143 if (status != NO_ERROR && config->format == AUDIO_FORMAT_IEC61937) {
144 struct audio_config customConfig = *config;
160 mHalFormatHasProportionalFrames = audio_has_proportional_frames(config->format);
112 open( audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, const char *address) argument
/frameworks/base/tools/split-select/
H A DSplitDescription.cpp37 return config.compareLogical(rhs.config);
52 return config.isBetterThan(o.config, &target.config);
67 return config.match(o.config);
80 String8 str(config.toString());
144 if (!AaptConfig::parse(configStr, &split.config)) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
H A DConfigBuilder.java41 public static final String WifiConfigType = "application/x-wifi-config";
178 WifiConfiguration config;
186 config = buildTTLSConfig(homeSP);
189 config = buildTLSConfig(homeSP, clientChain, key);
198 config = buildSIMConfig(homeSP);
204 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig;
209 return config;
252 WifiConfiguration config = buildBaseConfiguration(homeSP);
254 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig;
259 return config;
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DUploadedTexture.java87 public Config config; field in class:UploadedTexture.BorderKey
92 int x = config.hashCode() ^ length;
101 && config == o.config && length == o.length;
119 boolean vertical, Config config, int length) {
122 key.config = config;
127 ? Bitmap.createBitmap(1, length, config)
128 : Bitmap.createBitmap(length, 1, config);
233 Config config
118 getBorderLine( boolean vertical, Config config, int length) argument
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyClientImplLegacy.cpp84 audio_config_t config = AUDIO_CONFIG_INITIALIZER; local
85 config.sample_rate = *pSamplingRate;
86 config.format = *pFormat;
87 config.channel_mask = *pChannelMask;
89 config.offload_info = *offloadInfo;
92 status_t status = af->openOutput(module, &output, &config, pDevices,
95 *pSamplingRate = config.sample_rate;
96 *pFormat = config.format;
97 *pChannelMask = config.channel_mask;
99 *((audio_offload_info_t *)offloadInfo) = config
199 audio_config_t config = AUDIO_CONFIG_INITIALIZER;; local
[all...]

Completed in 617 milliseconds

1234567891011>>