Search in sources :

Example 1 with WifiDisplaySessionInfo

use of android.hardware.display.WifiDisplaySessionInfo in project platform_frameworks_base by android.

the class WifiDisplayController method getSessionInfo.

private WifiDisplaySessionInfo getSessionInfo(WifiP2pGroup info, int session) {
    if (info == null) {
        return null;
    }
    Inet4Address addr = getInterfaceAddress(info);
    WifiDisplaySessionInfo sessionInfo = new WifiDisplaySessionInfo(!info.getOwner().deviceAddress.equals(mThisDevice.deviceAddress), session, info.getOwner().deviceAddress + " " + info.getNetworkName(), info.getPassphrase(), (addr != null) ? addr.getHostAddress() : "");
    if (DEBUG) {
        Slog.d(TAG, sessionInfo.toString());
    }
    return sessionInfo;
}
Also used : Inet4Address(java.net.Inet4Address) WifiDisplaySessionInfo(android.hardware.display.WifiDisplaySessionInfo)

Example 2 with WifiDisplaySessionInfo

use of android.hardware.display.WifiDisplaySessionInfo in project android_frameworks_base by DirtyUnicorns.

the class WifiDisplayController method getSessionInfo.

private WifiDisplaySessionInfo getSessionInfo(WifiP2pGroup info, int session) {
    if (info == null) {
        return null;
    }
    Inet4Address addr = getInterfaceAddress(info);
    WifiDisplaySessionInfo sessionInfo = new WifiDisplaySessionInfo(!info.getOwner().deviceAddress.equals(mThisDevice.deviceAddress), session, info.getOwner().deviceAddress + " " + info.getNetworkName(), info.getPassphrase(), (addr != null) ? addr.getHostAddress() : "");
    if (DEBUG) {
        Slog.d(TAG, sessionInfo.toString());
    }
    return sessionInfo;
}
Also used : Inet4Address(java.net.Inet4Address) WifiDisplaySessionInfo(android.hardware.display.WifiDisplaySessionInfo)

Example 3 with WifiDisplaySessionInfo

use of android.hardware.display.WifiDisplaySessionInfo in project android_frameworks_base by crdroidandroid.

the class WifiDisplayController method getSessionInfo.

private WifiDisplaySessionInfo getSessionInfo(WifiP2pGroup info, int session) {
    if (info == null || info.getOwner() == null) {
        return null;
    }
    Inet4Address addr = getInterfaceAddress(info);
    WifiDisplaySessionInfo sessionInfo = new WifiDisplaySessionInfo(!info.getOwner().deviceAddress.equals(mThisDevice.deviceAddress), session, info.getOwner().deviceAddress + " " + info.getNetworkName(), info.getPassphrase(), (addr != null) ? addr.getHostAddress() : "");
    if (DEBUG) {
        Slog.d(TAG, sessionInfo.toString());
    }
    return sessionInfo;
}
Also used : Inet4Address(java.net.Inet4Address) WifiDisplaySessionInfo(android.hardware.display.WifiDisplaySessionInfo)

Example 4 with WifiDisplaySessionInfo

use of android.hardware.display.WifiDisplaySessionInfo in project android_frameworks_base by AOSPA.

the class WifiDisplayController method getSessionInfo.

private WifiDisplaySessionInfo getSessionInfo(WifiP2pGroup info, int session) {
    if (info == null || info.getOwner() == null) {
        return null;
    }
    Inet4Address addr = getInterfaceAddress(info);
    WifiDisplaySessionInfo sessionInfo = new WifiDisplaySessionInfo(!info.getOwner().deviceAddress.equals(mThisDevice.deviceAddress), session, info.getOwner().deviceAddress + " " + info.getNetworkName(), info.getPassphrase(), (addr != null) ? addr.getHostAddress() : "");
    if (DEBUG) {
        Slog.d(TAG, sessionInfo.toString());
    }
    return sessionInfo;
}
Also used : Inet4Address(java.net.Inet4Address) WifiDisplaySessionInfo(android.hardware.display.WifiDisplaySessionInfo)

Example 5 with WifiDisplaySessionInfo

use of android.hardware.display.WifiDisplaySessionInfo in project android_frameworks_base by ResurrectionRemix.

the class WifiDisplayController method getSessionInfo.

private WifiDisplaySessionInfo getSessionInfo(WifiP2pGroup info, int session) {
    if (info == null || info.getOwner() == null) {
        return null;
    }
    Inet4Address addr = getInterfaceAddress(info);
    WifiDisplaySessionInfo sessionInfo = new WifiDisplaySessionInfo(!info.getOwner().deviceAddress.equals(mThisDevice.deviceAddress), session, info.getOwner().deviceAddress + " " + info.getNetworkName(), info.getPassphrase(), (addr != null) ? addr.getHostAddress() : "");
    if (DEBUG) {
        Slog.d(TAG, sessionInfo.toString());
    }
    return sessionInfo;
}
Also used : Inet4Address(java.net.Inet4Address) WifiDisplaySessionInfo(android.hardware.display.WifiDisplaySessionInfo)

Aggregations

WifiDisplaySessionInfo (android.hardware.display.WifiDisplaySessionInfo)5 Inet4Address (java.net.Inet4Address)5