Home
last modified time | relevance | path

Searched refs:option (Results 1 – 25 of 154) sorted by relevance

1234567

/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java94 public void setSelectedOption(CustomizationOption option) { in setSelectedOption() argument
95 if (!mOptions.contains(option)) { in setSelectedOption()
99 updateActivatedStatus(option, true); in setSelectedOption()
100 mSelectedOption = option; in setSelectedOption()
109 public void setAppliedOption(CustomizationOption option) { in setAppliedOption() argument
110 if (!mOptions.contains(option)) { in setAppliedOption()
114 mAppliedOption = option; in setAppliedOption()
115 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in setAppliedOption()
121 private void updateActivatedStatus(CustomizationOption option, boolean isActivated) { in updateActivatedStatus() argument
122 int index = mOptions.indexOf(option); in updateActivatedStatus()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DIconOptionsProvider.java76 IconOption option = addOrUpdateOption(optionsByPrefix, overlayPackage, in loadOptions() local
80 option.addIcon(loadIconPreviewDrawable(iconName, overlayPackage)); in loadOptions()
104 for (IconOption option : optionsByPrefix.values()) { in loadOptions()
105 if (option.isValid(mContext)) { in loadOptions()
106 mOptions.add(option); in loadOptions()
107 option.setLabel(mContext.getString(R.string.icon_component_label, mOptions.size())); in loadOptions()
115 IconOption option; in addOrUpdateOption() local
117 option = new IconOption(); in addOrUpdateOption()
118 optionsByPrefix.put(prefix, option); in addOrUpdateOption()
120 option = optionsByPrefix.get(prefix); in addOrUpdateOption()
[all …]
DColorOptionsProvider.java105 ColorOption option = new ColorOption(overlayPackage, label, lightColor, darkColor); in loadOptions() local
106 option.setPreviewIcons(previewIcons); in loadOptions()
107 option.setShapeDrawable(shape); in loadOptions()
108 mOptions.add(option); in loadOptions()
136 ColorOption option = new ColorOption(null, in addDefault() local
138 option.setPreviewIcons(previewIcons); in addDefault()
139 option.setShapeDrawable(shape); in addDefault()
140 mOptions.add(option); in addDefault()
/packages/modules/ArtPrebuilt/iorap/test/src/IorapTestApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/Car/tests/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/inputmethods/LatinIME/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/modules/NetworkStack/tests/lib/multivariant/com/android/testutils/
DPacketFilter.kt64 class DhcpOptionFilter(val option: Byte, vararg val bytes: Byte) : Predicate<ByteArray> { constant in com.android.testutils.DhcpOptionFilter
66 val option = findDhcpOption(packet, option) ?: return false in test() constant
67 return option.contentEquals(bytes) in test()
74 fun findDhcpOption(packet: ByteArray, option: Byte): ByteArray? = in findDhcpOption()
75 findOptionOffset(packet, option, DHCP_OPTIONS_OFFSET)?.let { in findDhcpOption()
80 private tailrec fun findOptionOffset(packet: ByteArray, option: Byte, searchOffset: Int): Int? { in findOptionOffset()
83 return if (packet[searchOffset] == option) searchOffset else { in findOptionOffset()
85 findOptionOffset(packet, option, searchOffset + 2 + optionLen) in findOptionOffset()
/packages/services/Car/surround_view/service-impl/
DObjReader.cpp76 bool ReadObjFromFile(const std::string& objFilename, const ReadObjOptions& option, in ReadObjFromFile() argument
85 if (option.coordinateMapping[i] >= kNumberOfAxes || option.coordinateMapping[i] < 0) { in ReadObjFromFile()
178 if (option.mtlFilename.empty()) { in ReadObjFromFile()
183 mtlFilename = option.mtlFilename; in ReadObjFromFile()
194 fscanf(file, "%f %f %f\n", &pos[option.coordinateMapping[0]], in ReadObjFromFile()
195 &pos[option.coordinateMapping[1]], &pos[option.coordinateMapping[2]]); in ReadObjFromFile()
197 pos[i] *= option.scales[i]; in ReadObjFromFile()
198 pos[i] += option.offsets[i]; in ReadObjFromFile()
207 fscanf(file, "%f %f %f\n", &normal[option.coordinateMapping[0]], in ReadObjFromFile()
208 &normal[option.coordinateMapping[1]], &normal[option.coordinateMapping[2]]); in ReadObjFromFile()
/packages/apps/TV/src/com/android/tv/
DTvOptionsManager.java69 public String getOptionString(@OptionType int option) { in getOptionString() argument
70 switch (option) { in getOptionString()
112 private void notifyOptionChanged(@OptionType int option) { in notifyOptionChanged() argument
113 OptionChangedListener listener = mOptionChangedListeners.get(option); in notifyOptionChanged()
115 listener.onOptionChanged(option, getOptionString(option)); in notifyOptionChanged()
120 public void setOptionChangedListener(int option, OptionChangedListener listener) { in setOptionChangedListener() argument
121 mOptionChangedListeners.put(option, listener); in setOptionChangedListener()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java75 assertNull(msg.option); in testParsing()
79 assertPref64Option("2001:db8:3:4:5:6::/96", msg.option); in testParsing()
104 assertPref64Option("64:ff9b::/96", msg.option); in testParseWithinNetlinkMessage()
111 assertPref64Option("64:ff9b::/96", msg.option); in testParseWithinNetlinkMessage()
133 assertEquals(NdOption.UNKNOWN, msg.option); in testParseUnknownOptionWithinNetlinkMessage()
146 assertEquals(NdOption.UNKNOWN, msg.option); in testUnknownOption()
154 assertPref64Option("2001:db8:3:4:5:6::/96", msg.option); in testUnknownOption()
166 assertNull(msg.option); in testZeroLengthOption()
178 assertNull(msg.option); in testTooLongOption()
206 assertPref64Option("2001:db8:3:4:5:6::/96", msg.option); in testTruncation()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragment.java101 for (final long option : UsbDetailsFunctionsController.FUNCTIONS_MAP.keySet()) { in getCandidates()
103 UsbDetailsFunctionsController.FUNCTIONS_MAP.get(option)); in getCandidates()
104 final String key = UsbBackend.usbFunctionsToString(option); in getCandidates()
107 if (mUsbBackend.areFunctionsSupported(option)) { in getCandidates()
183 for (long option : UsbDetailsFunctionsController.FUNCTIONS_MAP.keySet()) { in refresh()
185 screen.findPreference(UsbBackend.usbFunctionsToString(option)); in refresh()
187 final boolean isSupported = mUsbBackend.areFunctionsSupported(option); in refresh()
190 pref.setChecked(functions == option); in refresh()
DUsbDetailsFunctionsController.java98 for (long option : FUNCTIONS_MAP.keySet()) { in refresh()
99 int title = FUNCTIONS_MAP.get(option); in refresh()
100 pref = getProfilePreference(UsbBackend.usbFunctionsToString(option), title); in refresh()
102 if (mUsbBackend.areFunctionsSupported(option)) { in refresh()
103 pref.setChecked(functions == option); in refresh()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipPreferences.java42 public void setSipCallOption(String option) { in setSipCallOption() argument
44 Settings.System.SIP_CALL_OPTIONS, option); in setSipCallOption() local
54 String option = Settings.System.getString(mContext.getContentResolver(), in getSipCallOption() local
56 return (option != null) ? option in getSipCallOption()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_parser.cpp52 for (const auto &option : mOptionSpecs) { in printUsage() local
53 const std::string &optionName = option.first; in printUsage()
54 const OptionSpec &spec = option.second; in printUsage()
73 for (const auto &option : mOptionSpecs) { in printUsage() local
74 const std::string &optionName = option.first; in printUsage()
75 const OptionSpec &spec = option.second; in printUsage()
/packages/services/Car/evs/manager/1.1/
DEnumerator.cpp584 const std::string option = options[0]; in checkPermission() local
585 if (EqualsIgnoreCase(option, "--help")) { in checkPermission()
587 } else if (EqualsIgnoreCase(option, "--list")) { in checkPermission()
589 } else if (EqualsIgnoreCase(option, "--dump")) { in checkPermission()
592 WriteStringToFd(StringPrintf("Invalid option: %s\n", option.c_str()), in checkPermission()
619 const std::string option = options[1]; in checkPermission() local
620 const bool listAll = EqualsIgnoreCase(option, kDumpOptionAll); in checkPermission()
621 listCameras = listAll || EqualsIgnoreCase(option, kDumpDeviceCamera); in checkPermission()
622 listDisplays = listAll || EqualsIgnoreCase(option, kDumpDeviceDisplay); in checkPermission()
625 option.c_str()), in checkPermission()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/
DUsbDetailsFunctionsController.java98 for (long option : FUNCTIONS_MAP.keySet()) { in refresh()
99 int title = FUNCTIONS_MAP.get(option); in refresh()
100 pref = getProfilePreference(UsbBackend.usbFunctionsToString(option), title); in refresh()
102 if (mUsbBackend.areFunctionsSupported(option)) { in refresh()
103 pref.setChecked(functions == option); in refresh()
DUsbDefaultFragment.java80 for (final long option : UsbDetailsFunctionsController.FUNCTIONS_MAP.keySet()) { in getCandidates()
82 UsbDetailsFunctionsController.FUNCTIONS_MAP.get(option)); in getCandidates()
83 final String key = UsbBackend.usbFunctionsToString(option); in getCandidates()
86 if (mUsbBackend.areFunctionsSupported(option)) { in getCandidates()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java1276 ByteBuffer option = ByteBuffer.allocate(optLen * ICMPV6_ND_OPTION_LENGTH_SCALING_FACTOR);
1277 option.put((byte) ICMPV6_ND_OPTION_PIO); // Type
1278 option.put((byte) optLen); // Length in 8-byte units
1279 option.put((byte) prefix.getPrefixLength()); // Prefix length
1280 option.put((byte) 0b11000000); // L = 1, A = 1
1281 option.putInt(valid);
1282 option.putInt(preferred);
1283 option.putInt(0); // Reserved
1284 option.put(prefix.getRawAddress());
1285 option.flip();
[all …]
/packages/apps/Dialer/java/com/android/dialer/logging/
Dvideo_tech.proto4 option java_package = "com.android.dialer.logging";
5 option java_multiple_files = true;
6 option optimize_for = LITE_RUNTIME;
Dpeople_api_lookup_error.proto4 option java_package = "com.android.dialer.logging";
5 option java_multiple_files = true;
6 option optimize_for = LITE_RUNTIME;
Dreporting_location.proto4 option java_package = "com.android.dialer.logging";
5 option java_multiple_files = true;
6 option optimize_for = LITE_RUNTIME;
/packages/apps/Dialer/java/com/android/dialer/callintent/
Dspeed_dial_contact_type.proto3 option java_package = "com.android.dialer.callintent";
4 option java_multiple_files = true;
5 option optimize_for = LITE_RUNTIME;
/packages/apps/ThemePicker/src/com/android/customization/model/clock/
DBaseClockManager.java37 public void apply(Clockface option, Callback callback) { in apply() argument
38 handleApply(option, callback); in apply()
57 protected abstract void handleApply(Clockface option, Callback callback); in handleApply() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DEnergySaverFragment.java170 for (String option : optionsString) { in getValidatedTimeout()
171 if (Integer.parseInt(option) != -1) { in getValidatedTimeout()
172 int currentDiff = Math.abs(purposedTimeout - Integer.parseInt(option)); in getValidatedTimeout()
175 validatedTimeout = Integer.parseInt(option); in getValidatedTimeout()
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/historyquery/proto/
Dhistory_result.proto3 option java_package = "com.android.dialer.enrichedcall.historyquery.proto";
4 option java_multiple_files = true;
5 option optimize_for = LITE_RUNTIME;

1234567