kerneltest/e32test/video/t_video.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
   418 /*DISPLAY MODES*/
   418 /*DISPLAY MODES*/
   419 	test.Next(_L("loop through the display modes getting the info"));
   419 	test.Next(_L("loop through the display modes getting the info"));
   420 
   420 
   421 	TInt count;
   421 	TInt count;
   422 
   422 
   423 	TInt fourBppMode = -1;
       
   424 
   423 
   425 	for (count = 0; count < totalModes; count++)
   424 	for (count = 0; count < totalModes; count++)
   426 		{
   425 		{
   427 
   426 
   428 		test.Next(_L("Offset To first pixel"));
   427 		test.Next(_L("Offset To first pixel"));
   453 
   452 
   454 		test.Next(_L("bits per pixel"));
   453 		test.Next(_L("bits per pixel"));
   455 		HALArg = count;
   454 		HALArg = count;
   456 		ret = HAL::Get(HAL::EDisplayBitsPerPixel, HALArg);
   455 		ret = HAL::Get(HAL::EDisplayBitsPerPixel, HALArg);
   457 		test (KErrNone == ret);
   456 		test (KErrNone == ret);
   458 
       
   459 		if (HALArg == 4)
       
   460 			fourBppMode = count;
       
   461 
   457 
   462 		}
   458 		}
   463 
   459 
   464 
   460 
   465 	test.Next(_L("switch display modes must be supported if > 1 display mode"));
   461 	test.Next(_L("switch display modes must be supported if > 1 display mode"));
  1033 /*DISPLAY MODES*/
  1029 /*DISPLAY MODES*/
  1034 	test.Next(_L("loop through the display modes getting the info"));
  1030 	test.Next(_L("loop through the display modes getting the info"));
  1035 
  1031 
  1036 	TInt count;
  1032 	TInt count;
  1037 
  1033 
  1038 	TInt fourBppMode = -1;
       
  1039 
       
  1040 	for (count = 0; count < totalModes; count++)
  1034 	for (count = 0; count < totalModes; count++)
  1041 		{
  1035 		{
  1042 
  1036 
  1043 		test.Next(_L("Offset To first pixel"));
  1037 		test.Next(_L("Offset To first pixel"));
  1044 		HALArg = count;
  1038 		HALArg = count;
  1068 
  1062 
  1069 		test.Next(_L("bits per pixel"));
  1063 		test.Next(_L("bits per pixel"));
  1070 		HALArg = count;
  1064 		HALArg = count;
  1071 		ret = HAL::Get(screen, HAL::EDisplayBitsPerPixel, HALArg);
  1065 		ret = HAL::Get(screen, HAL::EDisplayBitsPerPixel, HALArg);
  1072 		test (KErrNone == ret);
  1066 		test (KErrNone == ret);
  1073 
       
  1074 		if (HALArg == 4)
       
  1075 			fourBppMode = count;
       
  1076 
  1067 
  1077 		}
  1068 		}
  1078 
  1069 
  1079 
  1070 
  1080 	test.Next(_L("switch display modes must be supported if > 1 display mode"));
  1071 	test.Next(_L("switch display modes must be supported if > 1 display mode"));