summaryrefslogtreecommitdiff
path: root/nci/jni/NativeNfcManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nci/jni/NativeNfcManager.cpp')
-rwxr-xr-xnci/jni/NativeNfcManager.cpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp
index 0c7ba8bb..0c82e200 100755
--- a/nci/jni/NativeNfcManager.cpp
+++ b/nci/jni/NativeNfcManager.cpp
@@ -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.
+ *
+ ******************************************************************************/
#include <semaphore.h>
#include <errno.h>
#include "OverrideLog.h"
@@ -100,6 +118,7 @@ namespace android
void doStartupConfig ();
void startStopPolling (bool isStartPolling);
void startRfDiscovery (bool isStart);
+ bool isDiscoveryStarted();
void setUiccIdleTimeout (bool enable);
void restartPollingWithTechMask(int mask);
}
@@ -2018,6 +2037,20 @@ void startRfDiscovery(bool isStart)
}
}
+/*******************************************************************************
+**
+** Function: isDiscoveryStarted
+**
+** Description: Ask if polling and listening has started on device.
+**
+** Returns: True - if started, False - if not.
+**
+*******************************************************************************/
+bool isDiscoveryStarted()
+{
+ return sRfEnabled;
+}
+
/*******************************************************************************
**