Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78c2ee57 authored by Etan Cohen's avatar Etan Cohen Committed by Android Partner Code Review
Browse files

Merge "[NAN] Add COARSE_LOCATION permission check to NAN discovery [DO NOT...

Merge "[NAN] Add COARSE_LOCATION permission check to NAN discovery [DO NOT MERGE]" into mm-wireless-dev
parents 3a9de109 e1d8a5a6
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -113,6 +113,8 @@ public class WifiNanSession {
     *      An application must use the {@link WifiNanDiscoveryBaseSession#destroy()} to
     *      An application must use the {@link WifiNanDiscoveryBaseSession#destroy()} to
     *      terminate the publish discovery session once it isn't needed. This will free
     *      terminate the publish discovery session once it isn't needed. This will free
     *      resources as well terminate any on-air transmissions.
     *      resources as well terminate any on-air transmissions.
     * <p>The application must have the {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}
     * permission to start a publish discovery session.
     *
     *
     * @param handler The Handler on whose thread to execute the callbacks of the {@code
     * @param handler The Handler on whose thread to execute the callbacks of the {@code
     * callback} object. If a null is provided then the application's main thread will be used.
     * callback} object. If a null is provided then the application's main thread will be used.
@@ -156,6 +158,8 @@ public class WifiNanSession {
     *      An application must use the {@link WifiNanDiscoveryBaseSession#destroy()} to
     *      An application must use the {@link WifiNanDiscoveryBaseSession#destroy()} to
     *      terminate the subscribe discovery session once it isn't needed. This will free
     *      terminate the subscribe discovery session once it isn't needed. This will free
     *      resources as well terminate any on-air transmissions.
     *      resources as well terminate any on-air transmissions.
     * <p>The application must have the {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}
     * permission to start a subscribe discovery session.
     *
     *
     * @param handler The Handler on whose thread to execute the callbacks of the {@code
     * @param handler The Handler on whose thread to execute the callbacks of the {@code
     * callback} object. If a null is provided then the application's main thread will be used.
     * callback} object. If a null is provided then the application's main thread will be used.