This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun getAllWifiSubnetIpAddresses(): List<InetAddress> { | |
val wifiMgr = getSystemService(WIFI_SERVICE) as WifiManager | |
val wlanAddr = NetworkUtils.intToInetAddress(wifiMgr.dhcpInfo.ipAddress) | |
return NetworkInterface.getNetworkInterfaces().toList() | |
.flatMap { it.interfaceAddresses } | |
.filter { it.address == wlanAddr } | |
.map { SubnetUtils(it.address.hostAddress + "/" + it.networkPrefixLength) } | |
.flatMap { it.info.allAddresses.asList() } | |
.map { Inet4Address.getByName(it) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curio@carton:~/dev/voodoo/nexuss$ git checkout android-samsung-2.6.35-gingerbread-for-merge | |
Switched to branch 'android-samsung-2.6.35-gingerbread-for-merge' | |
curio@carton:~/dev/voodoo/nexuss$ git merge android-samsung-3.0-ics-mr1 | |
Auto-merging virt/kvm/kvm_main.c | |
Removing usr/initramfs_data.lzo.S | |
Removing usr/initramfs_data.lzma.S | |
Removing usr/initramfs_data.gz.S | |
Removing usr/initramfs_data.bz2.S | |
Removing tools/perf/util/newt.c | |
Auto-merging tools/perf/util/callchain.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.levelup.foxyring; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.Cursor; | |
import java.util.Map; | |
import android.util.Log; |