Lines Matching refs:g_resourceMap
39 static std::map<std::string, std::string> g_resourceMap; variable
93 g_resourceMap.clear(); in UpdateResourceMap()
110 … g_resourceMap.insert(std::pair<std::string, std::string>(key->valuestring, value->valuestring)); in UpdateResourceMap()
138 int ret = sprintf_s(buf, MAX_BUFF_LEN, g_resourceMap[KEY_TRANSPORT_CARD_NTF_TEXT].c_str(), in GetTrafficCardNotificationText()
139 g_resourceMap[cardName].c_str(), static_cast<float>(balance) / NFC_UNIT_CHANGE_CONSTANT); in GetTrafficCardNotificationText()
152 …int ret = sprintf_s(buf, MAX_BUFF_LEN, g_resourceMap[KEY_NFC_WIFI_NTF_TEXT].c_str(), ssid.c_str()); in GetWifiNotificationText()
166 … int ret = sprintf_s(buf, MAX_BUFF_LEN, g_resourceMap[KEY_NFC_BT_NTF_TEXT].c_str(), name.c_str()); in GetBtNotificationText()
181 if (g_resourceMap.find(KEY_TAG_DEFAULT_NTF_TITLE) != g_resourceMap.end() && in SetTitleAndTextForOtherNotificationId()
182 g_resourceMap.find(KEY_TAG_DEFAULT_NTF_TEXT) != g_resourceMap.end()) { in SetTitleAndTextForOtherNotificationId()
183 nfcContent->SetTitle(g_resourceMap[KEY_TAG_DEFAULT_NTF_TITLE]); in SetTitleAndTextForOtherNotificationId()
184 nfcContent->SetText(g_resourceMap[KEY_TAG_DEFAULT_NTF_TEXT]); in SetTitleAndTextForOtherNotificationId()
188 if (g_resourceMap.find(KEY_TAG_DEFAULT_NTF_TITLE) != g_resourceMap.end() && in SetTitleAndTextForOtherNotificationId()
189 g_resourceMap.find(NFC_OPEN_LINK_TEXT_HEAD) != g_resourceMap.end()) { in SetTitleAndTextForOtherNotificationId()
190 nfcContent->SetTitle(g_resourceMap[KEY_TAG_DEFAULT_NTF_TITLE]); in SetTitleAndTextForOtherNotificationId()
191 nfcContent->SetText(g_resourceMap[NFC_OPEN_LINK_TEXT_HEAD] + name); in SetTitleAndTextForOtherNotificationId()
195 if (g_resourceMap.find(KEY_HCE_AID_CONFLICTED_TITLE) != g_resourceMap.end() && in SetTitleAndTextForOtherNotificationId()
196 g_resourceMap.find(KEY_HCE_AID_CONFLICTED_TEXT) != g_resourceMap.end()) { in SetTitleAndTextForOtherNotificationId()
197 nfcContent->SetTitle(g_resourceMap[KEY_HCE_AID_CONFLICTED_TITLE]); in SetTitleAndTextForOtherNotificationId()
198 nfcContent->SetText(g_resourceMap[KEY_HCE_AID_CONFLICTED_TEXT]); in SetTitleAndTextForOtherNotificationId()
202 if (g_resourceMap.find(KEY_NO_HAP_TITLE) != g_resourceMap.end() && in SetTitleAndTextForOtherNotificationId()
203 g_resourceMap.find(KEY_NO_HAP_TEXT) != g_resourceMap.end()) { in SetTitleAndTextForOtherNotificationId()
204 nfcContent->SetTitle(g_resourceMap[KEY_NO_HAP_TITLE]); in SetTitleAndTextForOtherNotificationId()
205 nfcContent->SetText(g_resourceMap[KEY_NO_HAP_TEXT]); in SetTitleAndTextForOtherNotificationId()
226 if (g_resourceMap.find(KEY_TRANSPORT_CARD_NTF_TITLE) != g_resourceMap.end() && in SetTitleAndText()
227 g_resourceMap.find(KEY_TRANSPORT_CARD_NTF_TEXT) != g_resourceMap.end() && in SetTitleAndText()
228 g_resourceMap.find(name) != g_resourceMap.end()) { in SetTitleAndText()
229 nfcContent->SetTitle(g_resourceMap[KEY_TRANSPORT_CARD_NTF_TITLE]); in SetTitleAndText()
235 if (g_resourceMap.find(KEY_NFC_WIFI_NTF_TITLE) != g_resourceMap.end() && in SetTitleAndText()
236 g_resourceMap.find(KEY_NFC_WIFI_NTF_TEXT) != g_resourceMap.end()) { in SetTitleAndText()
237 nfcContent->SetTitle(g_resourceMap[KEY_NFC_WIFI_NTF_TITLE]); in SetTitleAndText()
247 if (g_resourceMap.find(KEY_NFC_BT_NTF_TITLE) != g_resourceMap.end() && in SetTitleAndText()
248 g_resourceMap.find(KEY_NFC_BT_NTF_TEXT) != g_resourceMap.end()) { in SetTitleAndText()
249 nfcContent->SetTitle(g_resourceMap[KEY_NFC_BT_NTF_TITLE]); in SetTitleAndText()
267 if (g_resourceMap.find(KEY_NFC_BT_BUTTON_NAME) != g_resourceMap.end()) { in GetButtonName()
268 return g_resourceMap[KEY_NFC_BT_BUTTON_NAME]; in GetButtonName()
272 if (g_resourceMap.find(KEY_NFC_WIFI_BUTTON_NAME) != g_resourceMap.end()) { in GetButtonName()
273 return g_resourceMap[KEY_NFC_WIFI_BUTTON_NAME]; in GetButtonName()
277 if (g_resourceMap.find(NFC_OPEN_LINK_BUTTON_NAME) != g_resourceMap.end()) { in GetButtonName()
278 return g_resourceMap[NFC_OPEN_LINK_BUTTON_NAME]; in GetButtonName()
282 if (g_resourceMap.find(KEY_NO_HAP_BUTTON_NAME) != g_resourceMap.end()) { in GetButtonName()
283 return g_resourceMap[KEY_NO_HAP_BUTTON_NAME]; in GetButtonName()
287 if (g_resourceMap.find(KEY_ACTION_BUTTON_NAME) != g_resourceMap.end()) { in GetButtonName()
288 return g_resourceMap[KEY_ACTION_BUTTON_NAME]; in GetButtonName()