Returning Home(CodeForces - 1422D)

本文介绍了一种在城市地图中利用瞬移点快速返回家的方法,通过拆分瞬移点并构建特殊图,利用Dijkstra算法找到从初始位置到家的最短路径,帮助Yura计算出最少的时间。

Returning Home

Yura has been walking for some time already and is planning to return home. He needs to get home as fast as possible. To do this, Yura can use the instant-movement locations around the city.

Let’s represent the city as an area of n×n square blocks. Yura needs to move from the block with coordinates (sx,sy) to the block with coordinates (fx,fy). In one minute Yura can move to any neighboring by side block; in other words, he can move in four directions. Also, there are mm instant-movement locations in the city. Their coordinates are known to you and Yura. Yura can move to an instant-movement location in no time if he is located in a block with the same coordinate x or with the same coordinate y as the location.

Help Yura to find the smallest time needed to get home.

Input

The first line contains two integers n and mm — the size of the city and the number of instant-movement locations (1≤n≤109, 0≤m≤105).

The next line contains four integers sx sy fx fy — the coordinates of Yura’s initial position and the coordinates of his home (1≤sx,sy,fx,fy≤n).

Each of the next mm lines contains two integers xi yi — coordinates of the i-th instant-movement location (1≤xi,yi≤n).

Output

In the only line print the minimum time required to get home.

Examples

Input

5 3
1 1 5 5
1 2
4 1
3 3

Output

5

Input

84 5
67 59 41 2
39 56
7 2
15 3
74 18
22 7

Output

42

Note

In the first example Yura needs to reach (5,5) from (1,1). He can do that in 5 minutes by first using the second instant-movement location (because its y coordinate is equal to Yura’s y coordinate), and then walking (4,1)→(4,2)→(4,3)→(5,3)→(5,4)→(5,5).

题意

在一个n*n大小的地图中,初始在位置 ( s x , s y ) (s_x,s_y) ,目标位置为 ( f x , f y )。每分钟可以向上下左右的地图内区域移动一格。在地图中有m个瞬移位置,当与这些位置处于同一行或同一列时,可以选择瞬间传送到该位置。求最快需要多久到达目标位置。

思路

一开始想到的是暴力建图跑最短路,但是发现那样是一个1e5的完全图肯定 不行。
那么我们把每个瞬移点拆成x点和y点两个点,最后再将这两个点之间连上一条边权为0的边即可。
对于两个瞬移点x:彼此之间距离为abs(x[i]-x[i-1]) y同理
最后跑最短路即可。

Code

#include<string>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<vector>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
using namespace std;
#define LL long long
#define MOD 1000000007
#define PI 3.1415926535898
#define INF 1000055
#define MAXN 80000080
const double EPS = 1e-8;
LL read()
{
	LL x = 0, w = 1;
	char ch = 0;
	while (ch < '0' || ch>'9')
	{
		if (ch == '-')
		{
			w = -1;
		}
		ch = getchar();
	}
	while (ch >= '0' && ch <= '9')
	{
		x = x * 10 + ch - '0';
		ch = getchar();
	}
	return w * x;
}
LL n, m, sx, sy, ex, ey;
LL s;
LL cnt, head[INF *2], d[INF * 2];
struct node {
	LL to=0, next=0, w=0;
};
node edge[INF * 4];
void add(LL x, LL y, LL w)
{
	//cout<<x<<' '<<y<<' '<<w<<endl; 
	edge[++cnt].to = y;
	edge[cnt].next = head[x];
	edge[cnt].w = w;
	head[x] = cnt;
	edge[++cnt].to = x;
	edge[cnt].next = head[y];
	edge[cnt].w = w;
	head[y] = cnt;
}
struct nn {
	LL x, dis;
	bool operator <(const nn& b)const//重载运算符'<' 
	{
		return dis > b.dis;//顺序按照dis从小到大排(此处与sort的cmp恰好相反) 
	}
};//记录入队的节点和距离 
priority_queue < nn > q;
inline nn init(LL xx, LL dd)
{
	nn t;
	t.x = xx;
	t.dis = dd;
	return t;
}
nn now;
void dij(LL s)
{
	for (register LL i = 1; i <= INF; i++)//初始化 这里不能用m因为m可以等于0
	{
		d[i] = 0x3f3f3f3f3f;
	}
	d[s] = 0;//d[x]代表点s到 x的距离 
	now.x = s;
	now.dis = 0;
	q.push(now);
	while (!q.empty())
	{
		now = q.top();
		q.pop();
		if (now.dis > d[now.x])//优化 如果该边权大于到点now.x的距离 说明该边比已有点更差就没有必要去遍历该点了  
			continue;
		for (register LL i = head[now.x]; i != 0; i = edge[i].next)//遍历当前now点所连接的所有边 
		{
			if (d[edge[i].to] > d[now.x] + edge[i].w)//如果该边比已有点更优 则对该边所连的点进行松弛,并将该点入列 
			{
				d[edge[i].to] = d[now.x] + edge[i].w;
				q.push(init(edge[i].to, d[edge[i].to]));
			}
		}
	}
}
LL a[INF], b[INF], aa[INF], bb[INF];
bool cmp(LL xxx, LL yyy)
{
	return xxx < yyy;
}
int main()
{
	n = read();
	m = read();
	sx = read();
	sy = read();
	ex = read();
	ey = read();
	for (register LL i = 1; i <= m; i++)
	{
		a[i] = read();
		b[i] = read();
		aa[i] = a[i];
		bb[i] = b[i];
	}
	sort(a + 1, a + m + 1, cmp);
	sort(b + 1, b + m + 1, cmp);
	LL ss, ee;
	ss = m * 4 + 1;
	ee = m * 4 + 2;
	add(ss, ee, abs(sx - ex) + abs(sy - ey));
	for (register LL i = 2; i <= m; i++)
	{
		add(i, i - 1, abs(a[i] - a[i - 1]));
		add(i + m, i + m - 1, abs(b[i] - b[i - 1]));
	}
	for (register LL i = 1; i <= m; i++)
	{
		add(ss, i, abs(sx - a[i]));
		add(ss, m+i, abs(sy - b[i]));
		LL pos1 = lower_bound(a + 1, a + m + 1, aa[i]) - a;
		LL pos2 = lower_bound(b + 1, b + m + 1, bb[i]) - b;
		add(pos1, pos2 + m, 0);
		//add(ss, pos1, abs(sx - a[pos1]));
		//add(ss, pos2 + m, abs(sy - b[pos2]));
		add(ee, pos1, abs(ex - a[pos1]) + abs(ey - b[pos2]));
		//add(ee, pos2 + m, abs(ex - a[pos1]) + abs(ey - b[pos2]));
	}
	dij(ss);
	cout << d[ee] << endl;
	return 0;
}
09-24 18:58:19.030560 1756 1941 E BluetoothAdapter: getControllerActivityEnergyInfoCallback: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.lambda$onError$2(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.onError(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter.requestControllerActivityEnergyInfo(BluetoothAdapter.java:2941) 09-24 18:58:21.911603 5584 7431 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:00:00.258103 1756 1941 E BluetoothAdapter: getControllerActivityEnergyInfoCallback: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.lambda$onError$2(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.onError(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter.requestControllerActivityEnergyInfo(BluetoothAdapter.java:2941) 09-24 19:00:00.733691 1756 1941 E BluetoothAdapter: getControllerActivityEnergyInfoCallback: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.lambda$onError$2(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.onError(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter.requestControllerActivityEnergyInfo(BluetoothAdapter.java:2941) 09-24 19:02:08.729426 5584 8645 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:08.732878 5584 8645 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:09.994619 5584 7430 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:14.649910 5584 7430 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:14.808511 5584 5368 D BluetoothAdapter: getLeState() returning ON 09-24 19:02:14.818712 5584 5368 D BluetoothAdapter: getLeState() returning ON 09-24 19:02:14.819790 5584 5368 D BluetoothAdapter: isLeEnabled(): ON 09-24 19:02:14.826108 5584 5368 E BluetoothAdapter: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getBluetoothGatt(BluetoothAdapter.java:4309) 09-24 19:02:14.837846 5584 5368 E BluetoothAdapter: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getBluetoothGatt(BluetoothAdapter.java:4309) at android.bluetooth.BluetoothAdapterExtImpl.registerFilteredBluetoothRssiDetectCallback(BluetoothAdapterExtImpl.java:841) at android.bluetooth.OplusBluetoothAdapter.registerFilteredBluetoothRssiDetectCallback(OplusBluetoothAdapter.java:399) at oe.c.v(BluetoothAdapterWrapper.kt:79) 09-24 19:02:14.837946 5584 5368 W BluetoothAdapterExtImpl: iGatt null! 09-24 19:02:14.849719 5584 5368 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:14.945991 5584 8649 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:15.132976 27954 27617 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getLeState(BluetoothAdapter.java:1592) at android.bluetooth.BluetoothAdapter.getLeAccess(BluetoothAdapter.java:1601) at android.bluetooth.BluetoothAdapter.getBluetoothLeScanner(BluetoothAdapter.java:1283) 09-24 19:02:15.133054 27954 27617 D BluetoothAdapter: getLeState() returning OFF 09-24 19:02:15.134029 27954 27617 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getLeState(BluetoothAdapter.java:1592) at android.bluetooth.BluetoothAdapter.getLeAccess(BluetoothAdapter.java:1603) at android.bluetooth.BluetoothAdapter.getBluetoothLeScanner(BluetoothAdapter.java:1283) 09-24 19:02:15.134092 27954 27617 D BluetoothAdapter: getLeState() returning OFF 09-24 19:02:15.221845 5584 32538 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:15.251914 5584 5368 D BluetoothAdapter: getLeState() returning ON 09-24 19:02:15.252860 5584 5368 D BluetoothAdapter: getLeState() returning ON 09-24 19:02:15.252908 5584 5368 D BluetoothAdapter: isLeEnabled(): ON 09-24 19:02:15.253721 5584 5368 E BluetoothAdapter: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getBluetoothGatt(BluetoothAdapter.java:4309) 09-24 19:02:15.255397 5584 5368 E BluetoothAdapter: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getBluetoothGatt(BluetoothAdapter.java:4309) at android.bluetooth.BluetoothAdapterExtImpl.registerFilteredBluetoothRssiDetectCallback(BluetoothAdapterExtImpl.java:841) at android.bluetooth.OplusBluetoothAdapter.registerFilteredBluetoothRssiDetectCallback(OplusBluetoothAdapter.java:399) at oe.c.v(BluetoothAdapterWrapper.kt:79) 09-24 19:02:15.255438 5584 5368 W BluetoothAdapterExtImpl: iGatt null! 09-24 19:02:15.258341 5584 5368 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:02:15.972042 27954 23528 I NearbyMediums: BluetoothAdapter's name was not set by Nearby Connections, ignoring call to restore default scan mode. 09-24 19:02:15.974864 27954 23528 I NearbyMediums: BluetoothAdapter's name was not set by Nearby Connections, ignoring call to restore device name 09-24 19:02:16.319666 27954 27617 I NearbyMediums: BluetoothAdapter's name was not set by Nearby Connections, ignoring call to restore default scan mode. 09-24 19:02:16.324277 27954 27617 I NearbyMediums: BluetoothAdapter's name was not set by Nearby Connections, ignoring call to restore device name 09-24 19:03:24.203516 1756 1941 E BluetoothAdapter: getControllerActivityEnergyInfoCallback: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.lambda$onError$2(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.onError(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter.requestControllerActivityEnergyInfo(BluetoothAdapter.java:2941) 09-24 19:04:47.225152 2424 2424 D BluetoothAdapter: 158948037: getState(). Returning ON 09-24 19:04:47.257232 2424 2424 D BluetoothAdapter: 158948037: getState(). Returning ON 09-24 19:04:47.312684 2424 2424 D BluetoothAdapter: 158948037: getState(). Returning ON 09-24 19:04:52.917173 2424 2424 D BluetoothAdapter: 158948037: getState(). Returning ON 09-24 19:04:52.920589 2424 2424 D BluetoothAdapter: 158948037: getState(). Returning ON 09-24 19:07:27.352718 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:07:27.968794 5584 32537 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:07:28.045290 5584 21660 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:07:29.202969 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:07:29.260482 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:08:16.039898 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:08:16.042197 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:08:16.230494 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:08:16.231275 5584 11346 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:08:26.044307 1756 1941 E BluetoothAdapter: getControllerActivityEnergyInfoCallback: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.lambda$onError$2(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.bluetooth.BluetoothAdapter$OnBluetoothActivityEnergyInfoProxy.onError(BluetoothAdapter.java:1096) at android.bluetooth.BluetoothAdapter.requestControllerActivityEnergyInfo(BluetoothAdapter.java:2941) 09-24 19:09:20.384981 5584 11862 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:09:20.385134 5584 11837 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:09:22.196759 5584 21660 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:09:22.892208 5584 32537 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:09:22.908842 5584 11862 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:09:22.978543 5584 5368 D BluetoothAdapter: getLeState() returning ON 09-24 19:09:22.979288 5584 5368 D BluetoothAdapter: getLeState() returning ON 09-24 19:09:22.979335 5584 5368 D BluetoothAdapter: isLeEnabled(): ON 09-24 19:09:22.988128 5584 5368 E BluetoothAdapter: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getBluetoothGatt(BluetoothAdapter.java:4309) 09-24 19:09:22.989193 5584 5368 E BluetoothAdapter: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getBluetoothGatt(BluetoothAdapter.java:4309) at android.bluetooth.BluetoothAdapterExtImpl.registerFilteredBluetoothRssiDetectCallback(BluetoothAdapterExtImpl.java:841) at android.bluetooth.OplusBluetoothAdapter.registerFilteredBluetoothRssiDetectCallback(OplusBluetoothAdapter.java:399) at oe.c.v(BluetoothAdapterWrapper.kt:79) 09-24 19:09:22.989247 5584 5368 W BluetoothAdapterExtImpl: iGatt null! 09-24 19:09:23.004315 5584 5368 D BluetoothAdapter: 227852177: getState(). Returning ON 09-24 19:09:23.176457 27954 23528 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getLeState(BluetoothAdapter.java:1592) at android.bluetooth.BluetoothAdapter.getLeAccess(BluetoothAdapter.java:1601) at android.bluetooth.BluetoothAdapter.getBluetoothLeScanner(BluetoothAdapter.java:1283) 09-24 19:09:23.176575 27954 23528 D BluetoothAdapter: getLeState() returning OFF 09-24 19:09:23.177581 27954 23528 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getLeState(BluetoothAdapter.java:1592) at android.bluetooth.BluetoothAdapter.getLeAccess(BluetoothAdapter.java:1603) at android.bluetooth.BluetoothAdapter.getBluetoothLeScanner(BluetoothAdapter.java:1283) 09-24 19:09:23.177632 27954 23528 D BluetoothAdapter: getLeState() returning OFF 09-24 19:09:23.328581 27954 24751 I NearbyMediums: BluetoothAdapter's name was not set by Nearby Connections, ignoring call to restore default scan mode. 09-24 19:09:23.337848 27954 24751 I NearbyMediums: BluetoothAdapter's name was not set by Nearby Connections, ignoring call to restore device name 09-24 19:09:25.762897 1756 2236 E BluetoothAdapterExtImpl: android.os.DeadObjectException at android.bluetooth.BluetoothAdapterExtImpl.getBluetoothMonitorReport(BluetoothAdapterExtImpl.java:676) 09-24 19:09:25.763738 1756 2236 E BluetoothAdapterExtImpl: android.os.DeadObjectException at android.bluetooth.BluetoothAdapterExtImpl.getBluetoothMonitorReport(BluetoothAdapterExtImpl.java:676) 09-24 19:09:38.945554 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.syncBluetoothState(Unknown Source:2) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBluetoothState(Unknown Source:1) 09-24 19:09:38.945663 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:38.966596 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:09:38.966673 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:38.980494 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:09:38.982252 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.085033 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isDiscovering(Unknown Source:2) 09-24 19:09:43.085069 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.092157 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.syncBluetoothState(Unknown Source:2) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBluetoothState(Unknown Source:1) 09-24 19:09:43.092188 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.099298 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.syncBluetoothState(Unknown Source:2) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBluetoothState(Unknown Source:1) 09-24 19:09:43.099339 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.103582 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.syncBluetoothState(Unknown Source:2) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBluetoothState(Unknown Source:1) 09-24 19:09:43.103619 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.105452 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:09:43.105480 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.106081 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:09:43.106110 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.107583 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.syncBluetoothState(Unknown Source:2) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBluetoothState(Unknown Source:1) 09-24 19:09:43.107610 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.109566 11108 11108 D WS_BT_WirelessLocalBluetoothAdapter: getScanMode() mode is 21 09-24 19:09:43.110052 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getScanMode(BluetoothAdapter.java:1968) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getScanMode(SourceFile:2) 09-24 19:09:43.110077 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.110094 11108 11108 D WS_BT_WirelessLocalBluetoothAdapter: getScanMode() reset mode 09-24 19:09:43.110568 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.setScanMode(BluetoothAdapter.java:2015) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.setScanMode(SourceFile:1) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getScanMode(SourceFile:2) 09-24 19:09:43.110597 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.112686 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.setScanMode(BluetoothAdapter.java:2015) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.setScanMode(SourceFile:1) 09-24 19:09:43.112711 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.183153 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:09:43.183173 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:43.185706 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:09:43.185732 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.898780 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:09:44.898809 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.899430 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:09:44.899451 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.902267 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isDiscovering(Unknown Source:2) 09-24 19:09:44.902284 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.907242 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isDiscovering(Unknown Source:2) 09-24 19:09:44.907285 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.908192 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.syncBluetoothState(Unknown Source:2) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBluetoothState(Unknown Source:1) 09-24 19:09:44.908316 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.908443 11108 11108 D BluetoothAdapter: enable(): called by: com.oplus.wirelesssettings 09-24 19:09:44.908866 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isEnabled(BluetoothAdapter.java:1338) at android.bluetooth.BluetoothAdapter.enable(BluetoothAdapter.java:1655) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.setBluetoothEnabled(Unknown Source:4) 09-24 19:09:44.908886 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.913471 11108 11108 D BluetoothAdapter: checkPermission: android.permission.BLUETOOTH_ADMIN, pid=11108, uid=1000, ret=true 09-24 19:09:44.961172 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.startScanning(Unknown Source:2) 09-24 19:09:44.964629 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:44.964710 11108 11108 D BluetoothAdapter: startDiscovery(): called by: com.oplus.wirelesssettings 09-24 19:09:44.965202 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:2198) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.startScanning(Unknown Source:65) 09-24 19:09:44.965234 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:46.348688 12386 12500 W cr_media: getBluetoothAdapter() requires BLUETOOTH permission 09-24 19:09:52.930196 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isEnabled(BluetoothAdapter.java:1338) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isEnabled(Unknown Source:2) 09-24 19:09:52.930217 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:52.934393 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:09:52.934419 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:52.935337 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:09:52.935360 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.147730 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:09:54.147751 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.148244 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:09:54.148267 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.153472 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isDiscovering(Unknown Source:2) 09-24 19:09:54.154411 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.158597 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isDiscovering(Unknown Source:2) 09-24 19:09:54.158618 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.158706 11108 11108 D BluetoothAdapter: enable(): called by: com.oplus.wirelesssettings 09-24 19:09:54.161606 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isEnabled(BluetoothAdapter.java:1338) at android.bluetooth.BluetoothAdapter.enable(BluetoothAdapter.java:1655) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.setBluetoothEnabled(Unknown Source:4) 09-24 19:09:54.161658 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.162305 11108 11108 D BluetoothAdapter: checkPermission: android.permission.BLUETOOTH_ADMIN, pid=11108, uid=1000, ret=true 09-24 19:09:54.185700 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.startScanning(Unknown Source:2) 09-24 19:09:54.185735 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:09:54.185765 11108 11108 D BluetoothAdapter: startDiscovery(): called by: com.oplus.wirelesssettings 09-24 19:09:54.186108 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:2198) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.startScanning(Unknown Source:65) 09-24 19:09:54.186138 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:10:02.166026 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isEnabled(BluetoothAdapter.java:1338) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.isEnabled(Unknown Source:2) 09-24 19:10:02.166118 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:10:02.169518 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:2277) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.stopScanning(Unknown Source:2) 09-24 19:10:02.169614 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF 09-24 19:10:02.170733 11108 11108 E BluetoothAdapter: java.lang.RuntimeException: android.os.DeadObjectException at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1533) at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1551) at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2996) at com.android.settingslib.bluetooth.LocalBluetoothAdapter.getBondedDevices(Unknown Source:2) 09-24 19:10:02.170790 11108 11108 D BluetoothAdapter: 207235373: getState(). Returning OFF
10-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值