// Token: 0x060000BF RID: 191 RVA: 0x0000B384 File Offset: 0x00009584
		public static FlashResult SetFlashResultD(string deivce, bool reuslt)
		{
			Log.w(deivce, "start SetFlashResultD");
			FlashResult flashResult = new FlashResult();
			flashResult.Result = false;
			flashResult.Msg = "upload result failed";
			try
			{
				string text = "";
				if (string.IsNullOrEmpty(deivce))
				{
					flashResult.Result = false;
					flashResult.Msg = "device is null";
					return flashResult;
				}
				Log.w(deivce, "upload flash result");
				TPUB_TEST_FUNC_DLL factoryObject = FactoryCtrl.GetFactoryObject(deivce, out text);
				if (factoryObject == null)
				{
					flashResult.Result = false;
					flashResult.Msg = "error:couldn't get TPUB_TEST_FUNC_DLL";
				}
				else
				{
					bool flag = factoryObject.SaveDataByCPUID(deivce, reuslt, out text);
					text = string.Format("SaveDataByCPUID result {0} status {1}", flag.ToString(), text);
					flashResult.Result = flag;
					flashResult.Msg = text;
					Log.w(deivce, text);
					if (flag)
					{
						Log.w(deivce, "upload result success");
					}
					else
					{
						Log.w(deivce, "upload result failed");
					}
				}
			}
			catch (Exception ex)
			{
				Log.w(string.Concat(new string[]
				{
					deivce,
					" ",
					ex.Message,
					"  ",
					ex.StackTrace
				}));
				FlashResult flashResult2 = flashResult;
				flashResult2.Msg = flashResult2.Msg + " " + ex.Message;
			}
			Log.w(deivce, flashResult.Msg);
			return flashResult;
		}
		// Token: 0x060000C0 RID: 192 RVA: 0x0000B4DC File Offset: 0x000096DC
		public static CheckCPUIDResult GetSearchPathD(string deivce, string swPath)
		{
			CheckCPUIDResult checkCPUIDResult = new CheckCPUIDResult();
			Log.w(deivce, "GetSearchPath");
			bool flag = false;
			string text = "";
			string text2 = "";
			try
			{
				TPUB_TEST_FUNC_DLL factoryObject = FactoryCtrl.GetFactoryObject(deivce, out text2);
				if (factoryObject == null)
				{
					if (string.IsNullOrEmpty(text2))
					{
						text2 = "can not GetFactoryObject";
					}
					Log.w(deivce + " CheckCPUID failed!");
				}
				else
				{
					flag = factoryObject.CheckCPUID(deivce, out text, out text2);
					foreach (Device device in FlashingDevice.flashDeviceList)
					{
						if (device.Name == deivce)
						{
							device.CheckCPUID = flag;
						}
					}
					Log.w(string.Format("{0} CheckCPUID result {1} status {2} imgPath {3}", new object[]
					{
						deivce,
						flag.ToString(),
						text2,
						text
					}));
				}
				checkCPUIDResult.Msg = text2;
			}
			catch (Exception ex)
			{
				checkCPUIDResult.Msg = ex.Message;
			}
			checkCPUIDResult.Device = deivce;
			checkCPUIDResult.Result = flag;
			checkCPUIDResult.Path = text;
			Log.w(deivce, string.Format("device {0} CheckCPUID result {1} status {2}", deivce, checkCPUIDResult.Result.ToString(), checkCPUIDResult.Msg));
			return checkCPUIDResult;
		}