Searched refs:std (Results 1 - 25 of 188) sorted by relevance

12345678

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state_utils.h32 typedef std::unordered_map<int, float> NearKeysDistanceMap;
33 typedef std::bitset<MAX_KEY_COUNT_IN_A_KEYBOARD> NearKeycodesSet;
35 static int trimLastTwoTouchPoints(std::vector<int> *sampledInputXs,
36 std::vector<int> *sampledInputYs, std::vector<int> *sampledInputTimes,
37 std::vector<int> *sampledLengthCache, std::vector<int> *sampledInputIndice);
43 std::vector<int> *sampledInputXs, std::vector<int> *sampledInputYs,
44 std
[all...]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
H A Darguments_and_options.h33 ArgumentsAndOptions(std::unordered_map<std::string, std::string> &&options,
34 std::unordered_map<std::string, std::vector<std::string>> &&arguments)
35 : mIsValid(true), mOptions(std::move(options)), mArguments(std::move(arguments)) {}
41 bool hasOption(const std
[all...]
H A Darguments_parser.h32 // Default constructor and assignment operator is enabled to be used with std::unordered_map.
36 static OptionSpec keyValueOption(const std::string &valueName, const std::string &defaultValue,
37 const std::string &description) {
41 static OptionSpec switchOption(const std::string &description) {
47 const std::string &getValueName() const { return mValueName; }
48 const std::string &getDefaultValue() const { return mDefaultValue; }
49 const std::string &getDescription() const { return mDescription; }
52 OptionSpec(const bool needsValue, const std::string &valueName, const std
100 ArgumentsParser(const std::unordered_map<std::string, OptionSpec> &&optionSpecs, const std::vector<ArgumentSpec> &&argumentSpecs) argument
[all...]
H A Dcommand_utils.h40 static CommandType getCommandType(const std::string &commandName);
41 static void printCommandUnknownMessage(const std::string &programName,
42 const std::string &commandName);
43 static std::function<int(int, char **)> getCommandExecutor(const CommandType commandType);
H A Darguments_parser.cpp27 std::unordered_set<std::string> argumentNameSet;
49 void ArgumentsParser::printUsage(const std::string &commandName,
50 const std::string &description) const {
53 const std::string &optionName = option.first;
74 const std::string &optionName = option.first;
99 std::unordered_map<std::string, std::string> options;
101 const std
[all...]
H A Dutf8_utils.h32 static std::vector<int> getCodePoints(const std::string &utf8Str);
33 static std::string getUtf8String(const CodePointArrayView codePoints);
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
H A Doffdevice_intermediate_dict_pt_node_array.h32 const std::list<std::shared_ptr<OffdeviceIntermediateDictPtNode>> &getPtNodeList() const {
36 std::list<std::shared_ptr<OffdeviceIntermediateDictPtNode>> *getMutablePtNodeList() {
43 std::list<std::shared_ptr<OffdeviceIntermediateDictPtNode>> mPtNodes;
H A Doffdevice_intermediate_dict_header.h30 using AttributeMap = std::map<std::vector<int>, std::vector<int>>;
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/
H A Dbluetooth_binder_facade.h40 std::tuple<bool, int> BluetoothBinderEnable();
41 std::tuple<std::string, int> BluetoothBinderGetAddress();
42 std::tuple<std::string, int> BluetoothBinderGetName();
43 std::tuple<bool, int> BluetoothBinderInitInterface();
44 std::tuple<bool, int> BluetoothBinderRegisterBLE();
45 std::tuple<int, int> BluetoothBinderSetAdvSettings(
47 std::tuple<bool, int> BluetoothBinderSetName(std
[all...]
H A Dbluetooth_binder_facade.cpp38 std::atomic_bool ble_registering(false);
39 std::atomic_int ble_client_id(0);
53 std::tuple<bool, int> BluetoothBinderFacade::BluetoothBinderEnable() {
56 return std::make_tuple(false, sl4n_error_codes::kFailInt);
61 return std::make_tuple(false, sl4n_error_codes::kPassInt);
63 return std::make_tuple(true, sl4n_error_codes::kPassInt);
67 std::tuple<std::string, int> BluetoothBinderFacade::BluetoothBinderGetAddress() {
69 return std::make_tuple(sl4n::kFailStr, sl4n_error_codes::kFailInt);
71 return std
[all...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
H A Dword_property.h36 WordProperty(const std::vector<int> &&codePoints, const UnigramProperty &unigramProperty,
37 const std::vector<NgramProperty> &ngrams)
38 : mCodePoints(std::move(codePoints)), mUnigramProperty(unigramProperty),
49 const std::vector<NgramProperty> &getNgramProperties() const {
57 const std::vector<int> mCodePoints;
59 const std::vector<NgramProperty> mNgrams;
H A Dngram_property.h30 NgramProperty(const NgramContext &ngramContext, const std::vector<int> &&targetCodePoints,
32 : mNgramContext(ngramContext), mTargetCodePoints(std::move(targetCodePoints)),
39 const std::vector<int> *getTargetCodePoints() const {
52 // Default copy constructor is used for using in std::vector.
57 const std::vector<int> mTargetCodePoints;
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
H A DPgmImage.h30 friend std::ostream& operator<< (std::ostream& o, const PgmImage& im);
36 PgmImage(std::string filename);
48 PgmImage(std::vector<unsigned char> &data, int w, int h);
66 bool ReadPGM(const std::string filename);
68 bool WritePGM(const std::string filename, const std::string comment="");
89 std::vector<unsigned char> m_data;
90 std::string m_comment;
92 std
[all...]
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/
H A Darguments_parser_test.cpp27 std::unordered_map<std::string, OptionSpec> optionSpecs;
28 std::vector<ArgumentSpec> argumentSpecs;
30 ArgumentsParser(std::move(optionSpecs), std::move(argumentSpecs)).validateSpecs());
33 std::unordered_map<std::string, OptionSpec> optionSpecs;
35 const std::vector<ArgumentSpec> argumentSpecs = {
41 ArgumentsParser(std::move(optionSpecs), std
[all...]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/command_executors/
H A Ddiff_executor.cpp37 std::unordered_map<std::string, OptionSpec> optionSpecs;
40 const std::vector<ArgumentSpec> argumentSpecs = {
45 return ArgumentsParser(std::move(optionSpecs), std::move(argumentSpecs));
H A Dheader_executor.cpp38 std::unordered_map<std::string, OptionSpec> optionSpecs;
41 const std::vector<ArgumentSpec> argumentSpecs = {
45 return ArgumentsParser(std::move(optionSpecs), std::move(argumentSpecs));
H A Dinfo_executor.cpp41 std::unordered_map<std::string, OptionSpec> optionSpecs;
44 const std::vector<ArgumentSpec> argumentSpecs = {
50 return ArgumentsParser(std::move(optionSpecs), std::move(argumentSpecs));
H A Dmakedict_executor.cpp46 std::unordered_map<std::string, OptionSpec> optionSpecs;
52 const std::vector<ArgumentSpec> argumentSpecs = {
57 return ArgumentsParser(std::move(optionSpecs), std::move(argumentSpecs));
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
H A Ddictionary_header_structure_policy.h33 typedef std::map<std::vector<int>, std::vector<int>> AttributeMap;
52 virtual const std::vector<int> *getLocale() const = 0;
/packages/apps/Test/connectivity/sl4n/facades/wifi/
H A Dwifi_facade.h36 std::tuple<bool, int> WifiInit();
37 std::tuple<int, int> WifiGetSupportedFeatureSet();
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simpledom/
H A Dsimpledom.cpp27 std::cout << buffer.GetString() << std::endl;
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
H A Dunittest.cpp21 std::cout << "RapidJSON v" << RAPIDJSON_VERSION_STRING << std::endl;
H A Dstringbuffertest.cpp75 static_assert( std::is_constructible<StringBuffer>::value, "");
76 static_assert( std::is_default_constructible<StringBuffer>::value, "");
78 static_assert(!std::is_copy_constructible<StringBuffer>::value, "");
80 static_assert( std::is_move_constructible<StringBuffer>::value, "");
82 static_assert(!std::is_nothrow_constructible<StringBuffer>::value, "");
83 static_assert(!std::is_nothrow_default_constructible<StringBuffer>::value, "");
86 static_assert(!std::is_nothrow_copy_constructible<StringBuffer>::value, "");
87 static_assert(!std::is_nothrow_move_constructible<StringBuffer>::value, "");
90 static_assert( std::is_assignable<StringBuffer,StringBuffer>::value, "");
92 static_assert(!std
[all...]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
H A Dbloom_filter_test.cpp34 std::vector<int> elements;
39 std::uniform_int_distribution<int> distribution(0, TEST_RANDOM_DATA_MAX);
40 auto randomNumberGenerator = std::bind(distribution, std::mt19937());
53 std::unordered_set<int> elementsThatHaveBeenSetInFilter;
56 std::uniform_int_distribution<int> distribution(0, 1);
57 auto randomBitGenerator = std::bind(distribution, std::mt19937());
/packages/inputmethods/LatinIME/native/jni/tests/utils/
H A Dautocorrection_threshold_utils_test.cpp26 int CalcEditDistance(const std::vector<int> &before,
27 const std::vector<int> &after) {

Completed in 289 milliseconds

12345678