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