diff options
author | Jizhou Liao <jizhou.liao@nxp.com> | 2014-06-06 16:07:41 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2014-10-29 20:26:48 +0000 |
commit | d3de35bed994a7417cd53f64061942fa4bb971a1 (patch) | |
tree | 830ea3b84cf3843b74e4b5be4dd9883c9ba60d16 /nci/jni/NfcTag.h | |
parent | 37ac893ec26d61904804b6f1c1588daecf667534 (diff) | |
download | android_packages_apps_Nfc-d3de35bed994a7417cd53f64061942fa4bb971a1.tar.gz android_packages_apps_Nfc-d3de35bed994a7417cd53f64061942fa4bb971a1.tar.bz2 android_packages_apps_Nfc-d3de35bed994a7417cd53f64061942fa4bb971a1.zip |
Adding MiFARE DESFire format supportcm-11.0-XNPH44S-bacon-5fa8c79c0b
Fix semantic error when deregister P2P if discovery has started
This patch is to disable discovery before deregister P2P and re-enable discovery after that.
Code inspection fixes
Remove unused class memeber and avoid variable uninitialized.
Change-Id: I2da3a37c98de3e4f36cfcd1061d060ef14f4e00a
(cherry picked from commit 38be878b6f068634ea53ab6ccf6b336acd42ec97)
Diffstat (limited to 'nci/jni/NfcTag.h')
-rwxr-xr-x | nci/jni/NfcTag.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/nci/jni/NfcTag.h b/nci/jni/NfcTag.h index 6fc87bad..de15bd1f 100755 --- a/nci/jni/NfcTag.h +++ b/nci/jni/NfcTag.h @@ -13,7 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +/****************************************************************************** + * + * The original Work has been changed by NXP Semiconductors. + * + * Copyright (C) 2013-2014 NXP Semiconductors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ******************************************************************************/ /* * Tag-reading, tag-writing operations. */ @@ -219,6 +237,16 @@ public: *******************************************************************************/ bool isMifareUltralight (); + /******************************************************************************* + ** + ** Function: isMifareDESFire + ** + ** Description: Whether the currently activated tag is Mifare Ultralight. + ** + ** Returns: True if tag is Mifare Ultralight. + ** + *******************************************************************************/ + bool isMifareDESFire (); /******************************************************************************* ** |